Questions tagged [stackpanel]

A WPF component for displaying a list of elements in a horizontal or vertical stack.

629 questions
0
votes
1 answer

Button click event not responding after collapsing parent

I have a UserControl with a number of StackPanel's. I like to hide specific panels depending on the user action. A StackPanel which is visible on startup gives me a number of working buttons. The buttons have click events in the code behind file.…
Peter Schulz
  • 43
  • 1
  • 4
0
votes
1 answer

Auto scroll banner images in a windows phone 8 app

I'm trying to implement autoscrolling and snapping to images in a windows phone 8 app I currently have couple of images in a stackpanel inside a scrollviewer, and I'd like them to auto scroll horizontally every certain amount of time [5 seconds for…
Jimmar
  • 4,194
  • 2
  • 28
  • 43
0
votes
1 answer

Dynamically Bind Style to a StackPanel in Windows Phone 7

I have a ListBox that contains a StackPanel with elements for binding. Based on a value, for instance 'Overdue' = true, the style of the StackPanel and a few elements below should change. The only difference between each item is the background of…
0
votes
1 answer

WPF Remove Margin Animation Programmatically

How do I remove the margins of two sides of a stackpanel in an animation storyboard so it looks like the stackpanel has moved from the code behind? I need to do it in the code-behind because the number of stackpanels i use this animation on differs…
Becky Green
  • 625
  • 5
  • 21
0
votes
1 answer

Is it possible to turn off TabStop for all StackPanels in a single global place?

I have a number of UserControl that each contain a number of StackPanels. The problem I have is that each StackPanel seems to think that I'm interested in tabbing to it before I tab to the contents of the StackPanel. If I want to tab from a control…
DaveDev
  • 41,155
  • 72
  • 223
  • 385
0
votes
1 answer

StackPanel draws artifacts between each child control

i'm trying to draw a rectangle with semi-circles at either end. i'm also trying to split the rectangle where the left half is a different colour to that of the right half. i've managed to do this using a stack panel and CombinedGeometry, as in the…
user101663
0
votes
2 answers

Stack Overflow After 15 Recursions with Javascript Class Function

I have the following code sample to illustrate my point. When I load this in IE8 on Vista I get the error "Stack Overfow at line:16" If I recurse using a top level function (outside of the testClass object) I can recurse millions of times without a…
Marcus Pope
  • 2,293
  • 20
  • 25
0
votes
1 answer

Is WPF StackPanel freezable

I'm using StackPanel in WPF just for easy layouting horizontally aligned boxes and lines, but it seems the performance of application is getting slower when using StackPanel. All the Microsoft tutorials seems to talk only about freezing some…
Jaska
  • 1,412
  • 1
  • 18
  • 39
0
votes
0 answers

Textblock's text in button's stackpanel not showing

I have the following code:
0
votes
1 answer

Stackpanel with multiple expanders

I have a StackPanel with multiple Expanders:
Sys
  • 443
  • 1
  • 8
  • 28
0
votes
1 answer

XAML StackPanel divided

is it possible in XAML to separate in a StackPanel control (or any container in general) rows and columns with lines? So that it looks for example like a chessboard? And also when the user resizes the window, the panel would also resize.
jonjohnson
  • 413
  • 1
  • 5
  • 18
0
votes
2 answers

Winrt & Xaml: Grid with Scrollbar ... tried Stackpanel, Scrollviewer, can't see to get it to work

I am trying to get a scrollbar on on a grid for WinRT app with Xaml. Basic page setup has an overal grid for the top and middle sections. Inside the middle section I put another grid with 2 rows and 2 columns. Inside row 1 col 1 of that grid, I…
RallyRabbit
  • 433
  • 1
  • 8
  • 20
0
votes
3 answers

How can I set the MinHeight of a StackPanel to be the combined height of its contents?

I have a StackPanel with several CheckBox controls inside it. How do I prevent the StackPanel from shrinking and obscuring the CheckBox controls when the window is resized?
dthrasher
  • 40,656
  • 34
  • 113
  • 139
0
votes
2 answers

Reference a WPF Control added to a StackPanel

This is a problem I've been trying to solve for a couple of days but I'm yet to find a good solution. I have a main WPF window which contains a StackPanel. I also have a class called "MessageManagement" which contains a List of custom WPF controls…
0
votes
1 answer

How to make Listbox to not remember its last view

I have a Listbox that bind to an ObservableCollection. In my app, I need to clear this collection in OnNavigatedFrom and read it in OnNavigatedTo to reduced memory. However, I see that when using StackPanel as ItemsPanelTemplate, Listbox can…