Skip to content

Commit

Permalink
Merge pull request #100 from FabianNitsche/wpfDataTemplateIssue
Browse files Browse the repository at this point in the history
Moved MenuItem DataTemplate to resources to fix issue #98.
  • Loading branch information
Wouterdek authored Dec 6, 2020
2 parents 42c85aa + 9a3f645 commit 43dfe09
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 43dfe09

Please sign in to comment.