Hi
I'd like to use DockSite in the following way.
When there are documents, I show TabbedMdiHost and DockSite works as usual. And when there are no documents, I need to show my Workspace (for example with logo) without TabbedMdiHost.
I have tried to do it this way and also made different variants with Workspace:
<docking:DockSite DocumentItemsSource="{Binding Documents}"
ToolItemsSource="{Binding Tools}"
CanDocumentWindowsFloat="True"
AreDocumentWindowsDestroyedOnClose="False"
AreNewTabsInsertedBeforeExistingTabs="False"
DocumentItemContainerStyle="{StaticResource DocumentWindowStyle}"
ToolItemContainerStyle="{StaticResource ToolWindowStyle}">
<docking:DockSite.Style>
<Style TargetType="{x:Type docking:DockSite}">
<Setter Property="Child">
<Setter.Value>
<docking:Workspace>
<docking:TabbedMdiHost HasTabPinButtons="False" CanDocumentTabsDrag="True"/>
</docking:Workspace>
</Setter.Value>
</Setter>
<Style.Triggers>
<DataTrigger Binding="{Binding HasDocuments}" Value="False">
<Setter Property="Child">
<Setter.Value>
<docking:Workspace>
<Viewbox Margin="10" MaxWidth="400" Stretch="Uniform">
<shared:ActiproLogo/>
</Viewbox>
</docking:Workspace>
</Setter.Value>
</Setter>
</DataTrigger>
</Style.Triggers>
</Style>
</docking:DockSite.Style>
</docking:DockSite>
where:
- xmlns:docking="http://schemas.actiprosoftware.com/winfx/xaml/docking"
- xmlns:shared="http://schemas.actiprosoftware.com/winfx/xaml/shared"
DocumentWindowStyle, ToolWindowStyle - are not important in this case, they can be anything.
But the logo doesn't show up.
Thank you.
[Modified 7 months ago]