Questions tagged [stackpanel]

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

629 questions
0
votes
1 answer

GWT: Tree widget inside a stackpanel shifts entire app up when clicked

I have a tree widget defined as follows: Tree tree = new Tree(); TreeItem root = new TreeItem("asdf"); root.setSelected(true); root.addItem(new TreeItem("blah")); root.addItem(new TreeItem("blue")); root.addItem(new…
Alex H
  • 1
0
votes
1 answer

How do I add a dynamic list of MediaElements to a StackPanel in Silverlight 5?

I am working in C# and Silverlight 5, and I am trying to display one or more audio and/or video files that have been retrieved from a database table as a byte array. I decided the best way to get those byte arrays into a usable format was to create…
0
votes
1 answer

Silverlight StackPanel (or UserControl) focus issue

I am deriving a custom control from StackPanel (or just using the usual UserControl class). This control should be focusable within the application by either tabbing or clicking the control. When focus occurs, based on other criterion the control…
Mr AH
  • 1,100
  • 3
  • 11
  • 23
0
votes
2 answers

WPF optimization: Insert/Delete child from StackPanel

I often insert/delete 20-30 very complicated UserControls into StackPanel. All UserControls already created and cached for reusing. Before reusing control I clean old parent and remember control. Operations like StackPanel.Children.Remove,…
Victor
  • 3,497
  • 3
  • 39
  • 51
0
votes
1 answer

WP7 Stackpanel/Canvas issue

so I have a question regarding my stackpanel I'm using. Basically when I keep adding items (expenses/earnings) the into the stackpanel I will eventually be short on navigational space and ultimately the older entries be overwritten. So at the moment…
AlexDuncan
  • 95
  • 1
  • 3
  • 12
0
votes
2 answers

I have a questions about window phones layout

I want to make a 2x2 of Rectangle in my xaml code. (I use a panorama control in windows phone layout) like this.. O O O O I use this code.
Cindy Kim
  • 11
  • 2
0
votes
2 answers

WPF Credits effect problem: StoryBoard to animate a StackPanel that extends the height of the window

This is my first WPF project. I'm trying to get a rolling credits effect with a bunch of banner-shaped PNG's stacked on top of each other vertically. My current approach is to have a bunch of images in a StackPanel. Each image is approx 1024x150,…
Jesse Buchanan
  • 1,099
  • 1
  • 9
  • 24
0
votes
3 answers

Databinding a StackPanel using Prism

Using Prism, I have implemented a View, Model and Presenter much like the StockTraderRI project. My issue is that I am trying to databind a stackpanel to an ObservableCollection object but no strings are being displayed. Here’s my…
rboarman
  • 8,248
  • 8
  • 57
  • 87
0
votes
1 answer

WPF binding mvvm StackPanel

I am beginner in wpf, and I have a problem with stackpanel binding. I have to dynamically generate labels, and add it to stackpanel. I had following code in .cs file: public DataImport() { labels.Add(new StringObject { Value = "tes"…
Karol_P
  • 265
  • 1
  • 3
  • 10
0
votes
1 answer

WPF: Change value of all textboxes nested inside expanders in a stackpanel

This is my first time using WPF. It has been a bit of a nightmare, but I've done enough of the project that I now don't want to start all over again with a forms application. My problem is this: I have 50 textboxes inside an expander, which in turn…
Arc
  • 329
  • 3
  • 11
0
votes
1 answer

WPF: Expanders stacked on top of each other where one should be expanded and take all remaining space

I think this is pretty known control but I couldn't find an WPF example/blog on the web. What I need is collection of Expander WPF controls stacked on top of each other just like in StackPanel. Difference though is that Expanders should be collapsed…
matori82
  • 3,669
  • 9
  • 42
  • 64
0
votes
1 answer

How to bind values Programatically created Textbox in a for loop

The Stack panels and Textbox are programmatically in a for-loop, by just changing the margins. Then these are inturn added to the Window context. Now, When the user enters the values in the TextBox, I need to bind them to seperate fields. But, for…
Mullaly
  • 320
  • 4
  • 18
0
votes
2 answers

WPF TreeviewItem header text is set to object type when using stackpanel

I'm trying to make a treeview with items that has both image and text. I have followed this example http://www.codeproject.com/Articles/124644/Basic-Understanding-of-Tree-View-in-WPF but I'm getting a strange behavior on the treeviewitem header. The…
bale3
  • 373
  • 2
  • 11
  • 21
0
votes
1 answer

Width of different elements in Xaml

I have a grid with two columns with width 3* and 1*. Inside the first column i have a stack panel with "width="Auto"" and with different grids inside it with vertical orientation. The grids have two columns with 15* and 1*. So my question is how to…
Buradi
  • 63
  • 1
  • 2
  • 9
0
votes
1 answer

Windows Phone 7 - ListBox and Stackpanel sizes

I Have a little problem with a ListBox and its elements. As you can see in my code, the stackpanel for both textblocks is set to 250. This is set like this because otherwise the text expands in 1 line and you cannot see the button. As obvious the…
Jatago
  • 725
  • 1
  • 8
  • 18