Questions tagged [dockpanel]

Defines an area where you can arrange child elements either horizontally or vertically, relative to each other.

Defines an area where you can arrange child elements either horizontally or vertically, relative to each other.

224 questions
5
votes
1 answer

Fill StackPanel inside DockPanel

This should be easy: how can I stretch StackPanel inside the DockPanel, so that it would fill the whole parent's content and also maintain it's HorizontalAlignment? Example:
sventevit
  • 4,766
  • 10
  • 57
  • 89
4
votes
2 answers

Need a Mono-compatible WinForms docking library

I've been looking for a Visual Studio-like docking library for WinForms, but the two most popular and complete options (WeifenLuo.WinFormsUI.Docking and the MagicLibrary) both use P/Invokes extensively, so I can't use them in Mono. The best I can…
Kawa
  • 1,478
  • 1
  • 15
  • 20
4
votes
1 answer

Wpf controls overlay?

I have Dockpanel on which there are two buttons (left and right sides) and a scrollviewer at the bottom. Is it possible to hide the left and right sides of this scrollviewer UNDER this buttons?
curiousity
  • 4,703
  • 8
  • 39
  • 59
4
votes
3 answers

How do I find out what originally caused an exception, if it gets thrown from Microsoft's code?

I have two controls containing DataGridViews on different panes in a DockPanel. If one is in edit mode and I switch pane, I get a NullReferenceException thrown from within the DataGridView's EndEdit() method. The stack trace doesn't go any deeper…
Simon
  • 25,468
  • 44
  • 152
  • 266
4
votes
1 answer

Make ComboBox stretch to available space with maxwidth and right-aligned parent

I'm having a problem achieving the layout i want. This is my code:
4
votes
2 answers

State and status of AvalonDock, options to AvalonDock

I'm working on a WPF interface that could use AvalonDock, or a similar dockable windows interface. My understanding is that AvalonDock is a pretty good dockable window interface, but I'm a bit worried about the ongoing status of it. Is it honestly…
JohnMetta
  • 18,782
  • 5
  • 31
  • 57
4
votes
2 answers

WPF ScrollViewer pushing control out of window

I have a DockPanel, which contains some controls including a ScrollViewer. What I WANT to happen, is for the ScrollViewer to allow the grid to be scrolled, without pushing other controls off the bottom of the form. Instead, the ScrollViewer expands…
Interminable
  • 1,338
  • 3
  • 21
  • 52
4
votes
1 answer

WPF: Align last TWO controls in StackPanel/DockPanel on the very right side

Thats my code so far which does not work:
Elisabeth
  • 20,496
  • 52
  • 200
  • 321
4
votes
1 answer

WPF4 TabControl/Grid in a DockPanel is hiding StatusBar

I have a window filled with a DockPanel containing 3 elements, a MenuBar docked at the top, a StatusBar docked at the bottom and a TabControl filling the body. At least, I would like the TabControl to fill the body. In the visual designer, the…
Paul Chavez
  • 895
  • 2
  • 13
  • 22
4
votes
2 answers

WPF: DockPanel.Dock = "Bottom" doesn't work as expected

This concerns WPF. As a simple test, I have a grid with 3 columns, the third column containing a Dock panel. In turn, this Dockpanel contains a TextBlock and a StatusBar, with the StatusBar having the (attached) attribute Dockpanel.Dock =…
Holland
  • 395
  • 9
  • 22
4
votes
1 answer

Fill remaining space of parent with 2 or more expanders WPF

I have 2 expanders inside a dockPanel, i need to fill all the height available inside de dockPanel when a expander is opened and if both of them are open, i need each expander to take the half of the available height so they can fill all the space.…
Fernando Santiago
  • 2,128
  • 10
  • 44
  • 75
4
votes
1 answer

How to: Create a GridSplitter, that customizes the size of a DockPanel (C#, WPF)

How to: Create a GridSplitter, that customizes the size of a DockPanel (C#, WPF) This is my GridSplitter code, but unfortunately it is not working: I am not allowed to change the size of my grid. I can see the GridSplitter, but I cannot use…
sjantke
  • 605
  • 4
  • 9
  • 35
4
votes
3 answers

WPF DockPanel with Toolbar and Statusbar

I'm learning WPF and am trying to have a form that consists of a toolbar at the top, a statusbar at the bottom and the rest will be occupied by controls used for data entry. This is what I have so far:
Ivan-Mark Debono
  • 15,500
  • 29
  • 132
  • 263
4
votes
1 answer

Is it possible to style the contents of a DockPanel to fill the last *visible* child?

Consider this XAML snippet...
Mark A. Donohoe
  • 28,442
  • 25
  • 137
  • 286
4
votes
2 answers

How to make a StackPanel Width that of another StackPanel?

I have two dockpanels which each have a left StackPanel. The width of the bottom StackPanel is determined by the width of the text is in it. The width of the top StackPanel should be the same as the width of the bottom StackPanel. I've tried to bind…
Edward Tanguay
  • 189,012
  • 314
  • 712
  • 1,047
1
2
3
14 15