24号24秒

导航

 

两种方法:

1.在Grid标签内添加资源样式。

<Grid.Resources>
<Style TargetType="Hyperlink">
<Setter Property="TextBlock.TextDecorations" Value="{x:Null}"></Setter>
</Style>
</Grid.Resources>

2.在windows.resource里面添加样式。

<Window.Resources>
<Style TargetType="Hyperlink">
<Setter Property="TextBlock.TextDecorations" Value="{x:Null}"></Setter>
</Style>
</Window.Resources>

当然也可以动态资源添加,或者单独样式引入等等。

posted on 2018-09-28 17:54  24号24秒  阅读(406)  评论(0编辑  收藏  举报