Questions tagged [stackpanel]

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

629 questions
0
votes
1 answer

Nested Stackpanel Button Not working

I have a button nested inside two stack panels as shown by this code.
Bluto
  • 166
  • 1
  • 15
0
votes
3 answers

wpf textblock autosize/layout in stackpanel

I have the following stack panel
Chris
  • 1,241
  • 1
  • 14
  • 33
0
votes
1 answer

WP8 How to make listPicker "push away" other UI elements?

I have been struggling to make the listPicker "push away" the other UI elements so that the transparent background does not effect illegibility of what is inside. I thought putting it inside of a simple stackpanel, or even a grid would achieve this,…
Cole
  • 13
  • 4
0
votes
1 answer

ScaleTransform applied to elements in stackpanel causes "white" space

When I add UserControls that have a ScaleTransform applied to them to a StackPanel, I see that there is extra space in between the controls as though the transform was not applied. From what I understand, a transform doesn't actual change the…
David
  • 115
  • 9
0
votes
1 answer

Adding multiple stack panels through C# code

I have a mom with multiple children. Each child has a name already assigned and needs user input for the value. I am trying to generate a StackPanel with a TextBlock and TextBox for each child through code. The number of children are unknown so I…
user1186390
  • 85
  • 2
  • 12
0
votes
1 answer

IEnumerable and creating StackPanels in code-behind

Okay so this question is awesome and easy to understand. I would like to implement a StackPanel into a TreeViewItem in that exact way. However, when I try to set the Orientation of the panel, the comiler complains about implementing…
Eric after dark
  • 1,768
  • 4
  • 31
  • 79
0
votes
1 answer

Silverlight - How do I add textboxes to the stack panel in the code behind

This is just a test application to get it working My mainpage binds to my viewmodel that holds the code to create textboxes here is my xaml
CompiledIO
  • 160
  • 16
0
votes
1 answer

Autosizing controls in XAML to fit a stack panel / dock panel, where the middle control is what needs to fill the space

How can I create this... command http://img841.imageshack.us/img841/2631/46lc.jpg in WPF. I've read alot of other questions on using stack panel vs dock panel but can't seem to recreate what I want. This is what I currently have.. command2…
William Moore
  • 246
  • 2
  • 16
0
votes
1 answer

WPF what determines whether scrollviewer and stackpanel give infinite size to a child as opposed to a set size?

During Measure, I'm still really confused because this results in stackpanel's child (signalgraph) being given (292,Infinity) as the availableSize in Measure:
James Joshua Street
  • 3,259
  • 10
  • 42
  • 80
0
votes
1 answer

StackPanel SizeChanged event

I've added this event to a StackPanel for displaying a nice animation when I add new items to the StackPanel: expandableStack.SizeChanged += (s, e) => { DoubleAnimation expand = new DoubleAnimation(); expand.Duration…
Sturm
  • 3,968
  • 10
  • 48
  • 78
0
votes
1 answer

How can I use Tap event in empty part of StackPanel in WinRT?

I have a grid that has 4 Stackpanel child. I want to make visible other 3 stack panel with clicking first stackpanel and make collapsed them with clicking them. I am using Tap event in Stackpanel but it is not handled in empty parts of…
Tugrul Emre Atalay
  • 918
  • 1
  • 9
  • 28
0
votes
2 answers

WPF Stackpanel visible height

I have a StackPanel, which contains vertically more children than can fit on the visible part of the StackPanel. I need to know the real visible area's height of the StackPanel - but ActualHeight Property returns the actual size of all the children…
Jaska
  • 1,412
  • 1
  • 18
  • 39
0
votes
1 answer

How to create dynamically listbox of stackpanels that contains UserControls in WPF?

How can one create in WPF listbox of stackpanels that contains some custom usercontrols of same type? Listboxes and stackpanels should be scrollable. ListBox.Items are added dynamically and also UserControls to StackPanels. I tried google, nothing…
Adronius
  • 256
  • 2
  • 6
0
votes
1 answer

Showing a part of a brush on a Stackpanel

I want to show a brush on my stackpanel in the following behavior: Brush is an image 240x120 panel is 240x60 I want to show a part of the brush like rect(0, 30, 240, 60) (so that the image on the panel is moved down a bit) tried it with viewport…
user2367984
  • 107
  • 1
  • 1
  • 5