Menu
  • HOME
  • TAGS

Binding the title of a LayoutDocument from a collection in AvalonDock 2.0

c#,wpf,mvvm,avalondock

What I ended up doing was as simple as this: <ad:DockingManager.DocumentHeaderTemplate> <DataTemplate> <TextBlock Text="{Binding Content.Name}" /> </DataTemplate> </ad:DockingManager.DocumentHeaderTemplate> Explanation: the DataContext for the binding inside the DocumentHeaderTemplate is the LayoutDocument itself. Turns out that it has a property, named Content, which represents de binding object inside each document (in this...

AvalonDock 2.0: adding LayoutDocument not working after Deserialize layout

c#,wpf,avalondock

Unfortunately, the (de-)serializing functionality is implemented not very nice in the AvalonDock suite. On deserializing, a completely new LayoutRoot object will be created. You define in XAML a LayoutDocumentPane with name workSpace and add the newly created LayoutDocument into this pane. But, after deserialization, this LayoutDocumentPane does not belong to...

Changing the Toolbox style in Windows re-hosted workflow designer

c#,wpf,workflow-foundation-4,wpftoolkit,avalondock

Take a look at this example, its not exactly what your after. But it explains how to customize the ToolboxControl style and alter the icons. The idea can be applied to alter the style of the ToolboxItems to your own means. (review step 3 specifically). If you need further assistance...

Avalon dock DocumentTitleTemplate vs DocumentHeaderDataTemplate

wpf,avalondock

DocumentTitleTemplate is use in the Template of FloatingDocumentWindow. DocumentHeaderTemplate is used in the Template of LayoutDocumentTabItem.

AvalonDock programmatically add control to LayoutAnchorable

c#,wpf,avalondock

To define the content of a LayoutAnchorable you do use the Content property : Take a look at the documentation : link...

AvalonDock cannot disable floating

c#,wpf,mvvm,avalondock

Simply try to create new test solution. I did it with your code you posted above and I’m not able to float that window: <Window x:Class="WpfApplication2.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:avalonDock="http://schemas.xceed.com/wpf/xaml/avalondock" Title="MainWindow" Height="350" Width="525"> <DockPanel> <ScrollViewer HorizontalScrollBarVisibility="Disabled"> <Grid> <avalonDock:DockingManager...

Binding to LayoutAnchorableItem Visibility in AvalonDock 2

c#,wpf,avalondock

tl;dr You need to add a ConverterParameter of value Visibility.Hidden to the Binding: <Setter Property="Visibility" Value="{Binding Model.IsVisible, ConverterParameter={x:Static Visibility.Hidden}, Converter={StaticResource btvc}, Mode=TwoWay}"/> The converter parameter is the Visibility that is returned when the boolean is false, and Hidden means the anchorable is hidden. Full Answer If we look at LayoutContent.Close(),...