25 lines
1.2 KiB
Plaintext
Raw Normal View History

2021-09-20 18:20:01 +02:00
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:local="clr-namespace:Example2.Extension"
xmlns:mvvm="clr-namespace:dnSpy.Contracts.MVVM;assembly=dnSpy.Contracts.DnSpy"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<DataTemplate DataType="{x:Type local:AssemblyChildNodeVM}">
<!-- InitDataTemplateAP.Initialize will initialize the context menu to prevent the default
tool window context menu from showing. -->
<Border Background="{DynamicResource EnvironmentBackground}" TextBlock.Foreground="{DynamicResource EnvironmentForeground}"
BorderThickness="1" BorderBrush="Red"
mvvm:InitDataTemplateAP.Initialize="True"
>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<TextBlock Grid.Row="0" Text="{Binding SomeMessage}" />
<TextBlock Grid.Row="1" Text="That's it, there's nothing more to see here" />
</Grid>
</Border>
</DataTemplate>
</ResourceDictionary>