Below I say "DockPanel.Top" on Menu but it docks in the middle. (?)
If I take the Height attribute out of Menu it docks on top but is about 200px high. (?)
I thought that was what LastChildFill was for.
How can I get this child element of DockPanel to dock on the top with no other items in the dockpanel?
<Window x:Class="TestContain...
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 than that and the exception doesn't contain any more information.
I've looked at that met...
I am looking for a free task panel component similar to the Microsoft Office 2000/XP/2003/2007 task panel with customization options (Ribbons, Customizable Toolbars, Menus...) for a free/libre open source project (FLOSS).
I have found two commercial components:
Codejock.
Component Source. Here the images.
I have been looking at Dock...
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 manage so far is toggling a Panel from being hosted by the main form or by a toolwindow tha...
The following code puts the two text elements at the top even though the second one is marked "Bottom". The background color goes all the way to the bottom so the DockPanel seems to stretch to the bottom.
What am I not understanding about DockPanel?
<Window x:Class="TestIndexer934.Views.MainView"
xmlns="http://schemas.microsoft.com...
How do I get the bottom textblock to fill up the remaining space horizontally and vertically?
I've got a shell that has this region:
<DockPanel Grid.Column="0" Grid.Row="2" Grid.ColumnSpan="2" LastChildFill="True"
Background="Orange">
<ItemsControl x:Name="MainNavigationPanel"
Background="Yellow"
DockPanel.Doc...
In my Shell.xaml I want two modules to each take up half the height and be expandable. Why is the first module being cut off?
Shell:
<Window x:Class="HelloWorld.Desktop.Shell"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:cal="http://www.code...
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 the Width of the top StackPanel to the Width of the bottom StackPanel via ElementName ...
Hi,
I'm using the DockPanel Suite in my winforms app. The DockContent class is derived from System.Windows.Forms.Form class and my two forms, dockRounds and dockToolbox, inherit from the DockContent class.
This is the first time I've done this and this is probably a stupid question, but in runtime, how do I access the controls of the d...
When LastChildFill property of a DockPanel is set true, the last child added occupies the entire unused space. That works well, until I had to programmatically replace the last Child:
UIElementCollection children = myDockPanel.Children;
UIElement uie = new myBestControl();
children.RemoveAt(children.Count - 1);
...
I was planning to use a dock menu similiar in looks and behavior to the Mac OS X dock menu in an application. It seems that apple have patented their dock about a year ago.
I've seen some websites that use a similiar dock, the article also lists a few applications that use a similiar style. What is the legal stand of this? Is this a vio...
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 buttons just stay at their position and do not space out to fill up the window space. Tried to use the dock panel as well but no luck yet.
Can ...
Hi dudes,
I have a project using DevExpress docking components, I create forms in run-time, which are attached into dockpanels components, my problem is that OnClose event of these forms are suppressed when closing dockpanels and doesnot execute its code existing there, it is important TForm's OnClose event is executed 'cause there are ...
I have the following AvalonDock XAML:
<ad:DockingManager Name="DockManager" Background="White">
<ad:ResizingPanel Orientation="Horizontal">
<ad:DockablePane ad:ResizingPanel.ResizeWidth="300" Name="LeftSideBar" SelectedIndex="0">
<ad:DockableContent Name="Connection" Title="Connection" IsCloseable="False">
...
Hi!
I am currently trying to resize a Telerik graph by placing it within a DockPanel because the Y axis label text keeps getting clipped when the graph is resized using "this.RadChart1.DefaultView.ChartArea.Height" in hope that this formatting error will be corrected.
The problem I am currently experiencing with the "DockPanel" is that...
Hello!
I have a TabControl.
While clicking a button I want to add a new TabItems to the TabControl.
Among various techniques I've chosen to create UserControl inside of a DockPanel.
Everything works fine, except for the location of control on a new TabItem is not 0 and it is
not expanded on the main form resize.
Everything is quite simp...
I have the following Xaml (simplified for brevity, but will repro the problem in Xamlpad or Kaxaml):
<DockPanel Width="400">
<TextBlock DockPanel.Dock="Left" TextWrapping="Wrap">
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Vestibulum massa metus, ornare in fringilla nec, fringilla at orci.
Nunc p...
What do I have to do to get the inner TextBlock below to wrap its text without defining an absolute width?
I've tried Width=Auto, Stretch, TextWrapping, putting it in a StackPanel, nothing seems to work.
XAML:
<UserControl x:Class="Test5.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="ht...
I'm using the Expander control from the Silverlight toolkit, and I would like the header to have a specific background colour across the whole width. What I'm really aiming for is to mimic our old ASP.NET-based CollapsiblePanelExtender, from the AJAX control toolkit.
It should be mentioned that I want the expand/collapse icon to appear ...
I don't understand, I have a toolbar with buttons bind to custom commands.
Also I have an expandable control docked to the left of window - kinda NavPanel.
(Devcomponents' NavigationPane to be exact)
Now, everytime when it's collapsed or expanded, buttons in the toolbar become disabled and stay like that till the focus changes.
Of c...