stackpanel Questions
2
Solved
I have a HierarchicalDataTemplate which has some simple Items contained in a horizontal StackPanel.
A context menu is assigned to the root StackPanel container as well:
<HierarchicalDataTemplat...
Ingrained asked 12/9, 2011 at 16:38
2
Solved
I have the following XAML:
<UserControl.Resources>
<SolidColorBrush x:Key="Brush"></SolidColorBrush>
<Style TargetType="{x:Type StackPanel}" x:Key="ColourChangingStyle">...
Stagemanage asked 17/1, 2013 at 16:7
9
Solved
In the following WPF XAML the ScrollViewer does not work (it displays a scroll bar but you cannot scroll and the contents go off the window to the bottom).
I can change the outer StackPanel to a G...
Leucopenia asked 29/4, 2009 at 15:10
2
Solved
Say I have a StackPanel that gets dynamically filled with copy, changing the Y position of elements inside it. I have a specific element within that StackPanel that I want to find the Y position of...
Oversew asked 2/10, 2009 at 16:40
5
Solved
Is there an easy way to set default space between items inside StackPanel so I'll don't have to set Margin property on each item?
Arnulfo asked 14/3, 2011 at 23:54
5
Solved
I have the following code:
<DockPanel>
<StackPanel DockPanel.Dock="Top" Orientation="Horizontal">
<RadioButton Content="_Programs"
IsChecked="{Binding Path=ProgramBanksSelected}...
Demesne asked 27/8, 2012 at 23:28
11
Solved
Given a StackPanel:
<StackPanel>
<TextBox Height="30">Apple</TextBox>
<TextBox Height="80">Banana</TextBox>
<TextBox Height="120">Cherry</TextBox>
<...
Unifoliolate asked 31/5, 2009 at 17:34
4
Solved
I've got a StackPanel with a group of expanders in, how do I set it so that only expander is expanded at any one time?
Cheers
AW
Melchior asked 17/12, 2009 at 15:54
4
Solved
I'm making a toolbar. I want the width of the window to equal the total width of the buttons. StackPanel seems perfect for the job because it lines everything up, but it won't stretch.
<Window...
Tello asked 22/2, 2016 at 17:19
3
Solved
For example I could do something like this:
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width=...
Wellknit asked 29/8, 2012 at 12:17
5
Solved
I have a StackPanel in my WinRT C# Metro app that I want to use as container for a label/value pair (TextBlock and TextBox) like this:
<StackPanel Orientation="Horizontal" Width="400">
<...
Dior asked 21/6, 2012 at 12:13
3
Solved
Here's my XAML code:
<Window x:Class="CarFinder.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Se...
Schizoid asked 18/4, 2010 at 16:47
4
Is there a way in XAML to say that I want to center-align vertically all components inside a horizontal-oriented StackPanel?
I achieve the desired result with the below XAML:
<StackPanel Orien...
Owenism asked 15/4, 2015 at 8:4
3
Solved
What's the best control to arrange buttons horizontally across a window in WPF?
I am having trouble arranging the buttons evenly while resizing the window. I tried to use the stack panel but the bu...
Quits asked 15/12, 2009 at 20:37
7
Solved
For WPF/Silverlight layout, is it better to use a Grid with lots of rows and columns, or tons of Stackpanels?
Lott asked 16/1, 2009 at 21:15
1
Solved
I am attempting to create a png capture of a StackPanel, however when I save, I am getting a distorted view where all the content is black rectangles, and the size is not correct. The width and hei...
Brabble asked 23/1, 2019 at 15:41
6
Solved
I heard that UI Design with Stack panel is more promotable that Grids. Is there any fact present in that. I am usually using Grid for Designing my UI, recently in a document i read that the Grid co...
Transverse asked 15/3, 2011 at 5:29
9
Solved
I was wondering if I can have 2 controls in a horizontal-oriented StackPanel so that the right item should be docked to the right side of the StackPanel.
I tried the following but it didn't work:
...
Occupational asked 7/1, 2010 at 19:53
2
Solved
I need to handle multiple panels, containing variuous data masks. Each panel shall be visible using a TreeView control.
At this time, I handle the panels visibility manually, by making the selecte...
Adventitia asked 9/5, 2010 at 15:55
3
Solved
I'd like to build a custom StackPanel with a ReverseOrder property that I can declaratively set to true to have the elements in the StackPanel appear in the opposite order of normal (e.g. bottom to...
Tumblebug asked 7/8, 2010 at 0:11
3
Solved
I want to scroll the datagrid when it's length exceeds the stackpanel, so I tried this:
<StackPanel Orientation="Horizontal">
<ScrollViewer VerticalScrollBarVisibility="Auto" CanContent...
Lynch asked 17/7, 2017 at 2:43
2
Solved
I need to have two RadCharts inside a horizontal StackPanel and want both the charts to be of equal width. I don't want to give explicit length to the width of the charts. This can be easily achiev...
Leighton asked 3/6, 2013 at 15:1
7
Here's a trivial example of the problem I'm having:
<StackPanel Orientation="Horizontal">
<Label>Foo</Label>
<TextBox>Bar</TextBox>
<ComboBox>
<TextBlock...
Metrics asked 30/12, 2009 at 23:45
3
Solved
I am trying to toggle a small StackPanel on top of a large StackPanel: when the small StackPanel is toggled and show visible, the large StackPanel on the back is grey out with a opacity color. Does...
Arsenal asked 14/2, 2011 at 11:43
4
Solved
I have a WPF Window with a grid:
<Grid Name="mainGrid">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="20*" />
<ColumnDefinition Width="700*" />
<ColumnDefinition...
Hymie asked 4/5, 2011 at 3:40
1 Next >
© 2022 - 2025 — McMap. All rights reserved.