Skip to content

Instantly share code, notes, and snippets.

@leemean
Created May 13, 2019 13:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leemean/977740681c423576b02ea12835fbf905 to your computer and use it in GitHub Desktop.
Save leemean/977740681c423576b02ea12835fbf905 to your computer and use it in GitHub Desktop.
DevExpressDockingMVVM
<dxdo:DockLayoutManager x:Name="dockManager" ItemsSource="{Binding Documents}">
<dxdo:LayoutGroup x:Name="documentHost" >
<dxdo:LayoutGroup.ItemContentTemplateSelector>
<dxi:TypeTemplateSelector FindDescendants="True">
<dxi:TemplatesDictionary>
<DataTemplate x:Key="FlightListViewModel">
<view:FlightListView />
</DataTemplate>
</dxi:TemplatesDictionary>
</dxi:TypeTemplateSelector>
</dxdo:LayoutGroup.ItemContentTemplateSelector>
<dxdo:LayoutGroup.ItemStyle>
<Style TargetType="dxdo:LayoutPanel">
<Setter Property="Caption" Value="{Binding Caption}" />
<Setter Property="MinWidth" Value="300" />
<Setter Property="MinHeight" Value="200" />
<Setter Property="CloseCommand" Value="{Binding CloseCommand}" />
<Setter Property="IsActive" Value="{Binding IsActive, Mode=TwoWay}" />
</Style>
</dxdo:LayoutGroup.ItemStyle>
</dxdo:LayoutGroup>
</dxdo:DockLayoutManager>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment