47 lines
1.9 KiB
XML
47 lines
1.9 KiB
XML
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:converters="clr-namespace:CopaData.FileInspector.GUI.TilingPanels.Converters"
|
|
xmlns:local="clr-namespace:CopaData.FileInspector.GUI.TilingPanels.Controls"
|
|
xmlns:models="clr-namespace:CopaData.FileInspector.GUI.TilingPanels.Models">
|
|
|
|
<!-- NO TEMPLATE OVERRIDE (FALLBACK) -->
|
|
<DataTemplate DataType="{x:Type models:TilingFrame}">
|
|
<Border BorderBrush="{DynamicResource Brush_Text_Error}">
|
|
<StackPanel>
|
|
<TextBlock FontSize="14"
|
|
Foreground="{DynamicResource Brush_Text_Error}">
|
|
No Template override for the provided HostFrame model found.<LineBreak/>
|
|
You need to override the data template of your host frame like so:
|
|
</TextBlock>
|
|
<TextBlock xml:space="preserve"
|
|
FontSize="13"
|
|
FontFamily="Consolas"
|
|
Foreground="{DynamicResource Brush_Text_Primary}">
|
|
<DataTemplate DataType="{x:Type YourFrameModel}">
|
|
<TextBlock Text="This is my model view! :)" />
|
|
</DataTemplate>
|
|
</TextBlock>
|
|
</StackPanel>
|
|
</Border>
|
|
</DataTemplate>
|
|
|
|
<!-- EMPTY TEMPLATE -->
|
|
<DataTemplate DataType="{x:Type models:EmptyFrame}">
|
|
<Border Padding="8"
|
|
MaxHeight="64"
|
|
MaxWidth="256"
|
|
Margin="24"
|
|
CornerRadius="4"
|
|
Background="#10fefefe"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch">
|
|
<TextBlock FontSize="14"
|
|
VerticalAlignment="Center"
|
|
HorizontalAlignment="Center"
|
|
Foreground="{DynamicResource Brush_Text_Primary}">
|
|
Drag or Drop something here :)
|
|
</TextBlock>
|
|
</Border>
|
|
</DataTemplate>
|
|
|
|
</ResourceDictionary> |