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...
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...
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...
DocumentTitleTemplate is use in the Template of FloatingDocumentWindow. DocumentHeaderTemplate is used in the Template of LayoutDocumentTabItem.
To define the content of a LayoutAnchorable you do use the Content property : Take a look at the documentation : link...
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...
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(),...