avalondock

Dynamic horizontal/vertical split change with AvalonDock

送分小仙女□ 提交于 2019-12-06 15:02:26
I have two areas on my interface (using WPF) that I want to be splitted. And a button to change between horisontal and vertical split. I'm using AvalonDock. When I change Orientation parameter in code before running it all works. <ad:DockingManager Grid.Row="1"> <ad:LayoutRoot> <ad:LayoutPanel x:Name="LayoutPanel1" Orientation="Vertical" IsMaximized="True"> <ad:LayoutDocumentPane x:Name="DocPane1" ShowHeader="True"> <ad:LayoutDocument Title="Spectrogram" CanClose="False" CanFloat="False"> <wpf:CartesianChart Series="{Binding MySeries}" Zoom="X"/> </ad:LayoutDocument> </ad:LayoutDocumentPane>

Binding to LayoutAnchorableItem Visibility in AvalonDock 2

耗尽温柔 提交于 2019-12-06 13:51:56
问题 I am attempting to bind the Visibility of LayoutAnchorableItem to a boolean in the ViewModel so that I can programmatically show and hide the anchorable: <UserControl.Resources> <avalon:BoolToVisibilityConverter x:Key="btvc"/> </UserControl.Resources> <avalon:DockingManager> <avalon:DockingManager.LayoutItemContainerStyleSelector> <ws:WorkspaceStyleSelector> <ws:WorkspaceStyleSelector.AnchorableStyle> <Style TargetType="{x:Type avalon:LayoutAnchorableItem}"> <!-- ... --> <Setter Property=

Unhandled 'System.ComponentModel.Win32Exception' when using AvalonDock 2.0

时光毁灭记忆、已成空白 提交于 2019-12-05 07:05:25
I'm using AvalonDock 2.0 , and when ever I open a dock container, while on debugging mode the application crash (it works fine when running without debugging). I get the below exception: An unhandled exception of type 'System.ComponentModel.Win32Exception' occurred in WindowsBase.dll Additional information: The operation completed successfully I came across this answer , which suggest to uncheck the boxes from the Exception Settings. The wired thing is that it worked the first time used it. but it doesn't any more. I've tried on other machines it doesn't work either. any suggestions to how to

Does the DockingManager come with a built-in method for handling Anchorables

谁都会走 提交于 2019-12-05 02:43:19
When setting up AvalonDock with a set of Anchorables, for example: <a:LayoutRoot> <a:LayoutPanel Orientation="Horizontal"> <a:LayoutAnchorablePane> <a:LayoutAnchorable Title="A1"> <!-- content --> </a:LayoutAnchorable> <a:LayoutAnchorable Title="A2"> <!-- content --> </a:LayoutAnchorable> </a:LayoutAnchorablePane> <!-- ... --> Does the DockingManager (or something else in AvalonDock) come with a built-in way of managing Anchorables that are closed? Are they stored in a collection somewhere so they can be retrieved and shown again? For example, the user closes the first one from the code above

How do I automatically load a layout into my AvalonDock instance?

一笑奈何 提交于 2019-12-03 09:39:07
I have integrated AvalonDock 2.0 into my application. I've bound the document and anchor-able sources to my view-model which are rendered with the proper user controls via DataTemplate s. I can load and save layouts with the XmlLayoutSerializer . I need to support loading predefined layouts on demand (via Button s and ICommand s). That works as well. The thing I can't get working is loading a serialized layout automatically when the DockingManager is done loading the view-models and their views (user controls). I've tried loading my layout on DockingManager.DataContextChanged but I think it

AvalonDock dock a window

十年热恋 提交于 2019-12-02 04:36:39
问题 I am trying to convert my app in WPF to work with AvalonDock . I have a few windows(about 10) and main form that has DockingManager . I would like to put those windows inside that DockingManager . I've tried this: <ad:DockingManager x:Name="MainWindow"> <ad:DocumentPane x:Name="Windows" /> </ad:DockingManager> FormDocumentSearch formDocumentSearch = new FormDocumentSearch(dc, this); //create window DockableContent dct = new DockableContent() { Title = "Window" }; //create DockableContent dct

How to place instance of window in LayoutAnchorable AvalonDock 2

别等时光非礼了梦想. 提交于 2019-12-02 01:03:46
问题 I'm upgrading AvalonDock in a WPF C# application (not MVVM) from 1.3 to 2.0. In 1.3 I was able to place custom windows as long as used DockableContent: XAML: <!--<Window--> <ad:DockableContent x:Class="Test.JournalWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:ad="clr-namespace:AvalonDock;assembly=AvalonDock" xmlns:local="clr-namespace:Test" xmlns:sys="clr-namespace:System;assembly=mscorlib" Loaded=

AvalonDock Now Loses Alt Key Adornments

喜夏-厌秋 提交于 2019-12-01 21:37:35
问题 I've been using AvalonDock (2.0) for some time now, being key for managing documents in an IDE. In the last month or so, I've noticed that Alt key adornments are no longer showing up for controls within AvalonDock, though the Alt key commands are executing as expected. See the image below where the Alt key adornments are showing up in the menu, but not for the buttons inside AvalonDock: What is particularly interesting about this issue, that it appears to be triggered by an environmental

AvalonDock Now Loses Alt Key Adornments

耗尽温柔 提交于 2019-12-01 18:36:27
I've been using AvalonDock (2.0) for some time now, being key for managing documents in an IDE. In the last month or so, I've noticed that Alt key adornments are no longer showing up for controls within AvalonDock, though the Alt key commands are executing as expected. See the image below where the Alt key adornments are showing up in the menu, but not for the buttons inside AvalonDock: What is particularly interesting about this issue, that it appears to be triggered by an environmental setting or condition. As demonstrated in this video (at 2:07), the alt key adornments are working for a

Avalondock MVVM Layout

一笑奈何 提交于 2019-12-01 09:17:43
So The Question has been asked before but not answered or not answered the way I would like I know how to create the Layout I want to achive, using LayoutAnchorablePaneGroup , LayoutAnchorablePane and LayoutDocument in XAML, but I wanted to use Avalondock in a MVVM way, reducing my XAML to: <avalonDock:DockingManager x:Name="dockingManager" DataContext="{Binding DockManagerViewModel}" DocumentsSource="{Binding Documents}" AnchorablesSource="{Binding Anchorables}" Loaded="dockingManager_Loaded" Unloaded="dockingManager_Unloaded"> Filling the Documents and Anchorables makes the desired windows