avalondock

AvalonDock2 : LayoutItemTemplate only for documents

僤鯓⒐⒋嵵緔 提交于 2020-01-15 01:22:33
问题 I am currently building a simple UI using AvalonDock2. If i understood correctly, LayoutItemTemplate can be used to set a template for all documents and achorables. Now here is my issue : I would like to have "hardcoded" anchorables templates. Anchorables all look like this : <avalonDock:LayoutAnchorable Title="Dialogs" CanClose="False" CanHide="False" CanFloat="False"> <integratorUI:Explorer DataContext="{Binding Path=Editor.ModelsDialogs}"/> </avalonDock:LayoutAnchorable> On the other side,

AvalonDock2 : LayoutItemTemplate only for documents

梦想与她 提交于 2020-01-15 01:22:06
问题 I am currently building a simple UI using AvalonDock2. If i understood correctly, LayoutItemTemplate can be used to set a template for all documents and achorables. Now here is my issue : I would like to have "hardcoded" anchorables templates. Anchorables all look like this : <avalonDock:LayoutAnchorable Title="Dialogs" CanClose="False" CanHide="False" CanFloat="False"> <integratorUI:Explorer DataContext="{Binding Path=Editor.ModelsDialogs}"/> </avalonDock:LayoutAnchorable> On the other side,

MVVM way to close document with possibility to cancel out

不羁岁月 提交于 2020-01-14 09:21:44
问题 I'm using Avalondock 2.x for one of my open source projects, if a document is dirty when you close it you should be able to cancel the close. I am using Caliburn Micro and Coroutine, only way I have been able to solve it is to use C.M to attach to the event <i:EventTrigger EventName="DocumentClosing"> <cal:ActionMessage MethodName="DocumentClosing"> <cal:Parameter Value="$documentcontext" /> <cal:Parameter Value="$eventArgs" /> </cal:ActionMessage> </i:EventTrigger> The event arg has a cancel

Turning off Virtualization for Tabcontrol without itemsource - WPF

社会主义新天地 提交于 2020-01-14 04:45:07
问题 I have a bug with Tabcontrols and Oxyplot. The Structure of my xaml is like this: I have an AvalonDock document and inside I have 3 harcoded tabs for each document. One of those tabs has another tabcontrol with an Oxyplot View inside each tab. Problem is when I open two (sometimes three) Avalondock Documents, I get the following exception: This PlotModel is already in use by some other PlotView control. I guess it is because the tabcontrol is virtualizing the tabs, and the plot model is being

Avalondock MVVM Layout

有些话、适合烂在心里 提交于 2020-01-11 06:40:12
问题 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

“AttachedProperty” PropertyChangedCallback never calls for my LayoutAnchorable, but works on DockingManager. AvalonDock

蹲街弑〆低调 提交于 2020-01-07 06:15:35
问题 I am trying to use AttachedProperty in my AvalonDock, I want it to be part of LayoutAnchorable but PropertyChangedCallback never get called. i have binded AttachedPropert and i am getting the control over ViewModel ie: when binded property changes it trigger my ViewModel Property. My AttachedProperty public static readonly DependencyProperty IsCanVisibleProperty = DependencyProperty.RegisterAttached("IsCanVisible", typeof(bool), typeof(AvalonDockBehaviour), new FrameworkPropertyMetadata(new

AvalonDock with Prism Region Adapter

最后都变了- 提交于 2020-01-01 03:17:14
问题 I have seen some questions on SO but none of them seemed applicable for me. I want to be able to use the great Avalondock 2.0 with Prism 4. However, all the sample region adapters for that is for Avalondock 1.x series, that I cannot get it working. Does anyone have sample code on how to create a Region Adapter for AvalonDock's LayoutDocumentPane and LayoutAnchorablePane? 回答1: Unfortunately, to the best of my knowledge, both the "LayoutDocumentPane" and the "LayoutAnchorablePane" do not allow