【WPF】给Button一个LinkLabel的样式

<!--LinkButton Style [Start]-->
<Style x:Key="LinkButton" TargetType="{x:Type Button}">
	   <Setter Property="Template">
	    <Setter.Value>
	     <ControlTemplate TargetType="{x:Type Button}">
	      <Grid>
	       <Label Cursor="Hand" Foreground="#FF2D90EB">
	        <Underline><Run Text="查看"/></Underline>
	       </Label>
	      </Grid>
	     </ControlTemplate>
	    </Setter.Value>
	   </Setter>
</Style>
 <!--LinkButton Style [End]-->
<Button x:Name="btnDetail" Style="{DynamicResource ButtonStyle1}" />

你可能感兴趣的:(【WPF】给Button一个LinkLabel的样式)