Skip to content

Commit

Permalink
Moved MenuItem DataTemplate to resources to fix issue Wouterdek#98.
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianNitsche committed Dec 6, 2020
1 parent 717ada0 commit 9a3f645
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,10 @@
<Setter Property="CommandParameter" Value="{Binding CommandParameter}"/>
</Style.Setters>
</Style>
</ContextMenu.Resources>
<ContextMenu.ItemTemplate>
<DataTemplate DataType="{x:Type local:LabeledCommand}">
<TextBlock><Run Text="{Binding Label}"/></TextBlock>
</DataTemplate>
</ContextMenu.ItemTemplate>
</ContextMenu.Resources>
<ContextMenu.ItemsSource>
<CompositeCollection>
<MenuItem x:Name="SearchMenuItem" StaysOpenOnClick="True">
Expand Down

0 comments on commit 9a3f645

Please sign in to comment.