HyperlinkerButton.xaml 863 B

123456789101112131415161718
  1. <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. xmlns:controls="clr-namespace:FWindSoft.Wpf.Controls"
  4. xmlns:customControl="clr-namespace:FWindSoft.Wpf.Controls.CustomControl">
  5. <Style TargetType="{x:Type customControl:HyperlinkButton}">
  6. <Setter Property="Template">
  7. <Setter.Value>
  8. <ControlTemplate >
  9. <Border Background="Gray" Opacity="0.5">
  10. <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center">
  11. <Hyperlink>上传图片</Hyperlink>
  12. </TextBlock>
  13. </Border>
  14. </ControlTemplate>
  15. </Setter.Value>
  16. </Setter>
  17. </Style>
  18. </ResourceDictionary>