mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-01 01:14:59 +00:00
refactor: use DataTemplates
instead of create NamedHighlightedTextBlock
manually for menu item (#1216)
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
5fd074a9b6
commit
41416a6bed
7 changed files with 69 additions and 68 deletions
|
@ -838,7 +838,13 @@
|
|||
ContentTemplate="{TemplateBinding HeaderTemplate}"
|
||||
VerticalAlignment="Center"
|
||||
HorizontalAlignment="Stretch"
|
||||
RecognizesAccessKey="False"/>
|
||||
RecognizesAccessKey="False">
|
||||
<ContentPresenter.DataTemplates>
|
||||
<DataTemplate DataType="x:String">
|
||||
<v:NameHighlightedTextBlock Text="{Binding}" VerticalAlignment="Center"/>
|
||||
</DataTemplate>
|
||||
</ContentPresenter.DataTemplates>
|
||||
</ContentPresenter>
|
||||
|
||||
<TextBlock x:Name="PART_InputGestureText"
|
||||
Grid.Column="2"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue