基本信息
源码名称:WPF 漂亮的Button样式
源码大小:0.10M
文件格式:.zip
开发语言:C#
更新时间:2018-01-22
友情提示:(无需注册或充值,赞助后即可获取资源下载链接)
嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):78630559
本次赞助数额为: 2 元×
微信扫码支付:2 元
×
请留下您的邮箱,我们将在2小时内将文件发到您的邮箱
源码介绍
<Window x:Class="WpfApplication1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:WpfApplication1"
mc:Ignorable="d"
Title="MainWindow" Height="200" Width="500" Style="{StaticResource Window}" WindowStartupLocation="CenterOwner" ShowInTaskbar="False">
<Window.Resources>
</Window.Resources>
<Grid Background="Transparent" Margin="20">
<Grid.RowDefinitions>
<RowDefinition/>
</Grid.RowDefinitions>
<Border Background="White" CornerRadius="5">
<Border.Effect>
<DropShadowEffect ShadowDepth="0" Color="LightGray" BlurRadius="12" Opacity="0.5"/>
</Border.Effect>
</Border>
<Button Style="{StaticResource BUTTON_MENUBAR}" VerticalAlignment="Top" HorizontalAlignment="Right" Width="30" Height="30" Margin="0,0,30,0">
<Button.Background>
<ImageBrush ImageSource="Resources/setting.png"/>
</Button.Background>
</Button>
<Button Style="{StaticResource BUTTON_MENUBAR_MINI}" VerticalAlignment="Top" HorizontalAlignment="Right" Width="30" Height="30" Click="Button_Click">
<Button.Background>
<ImageBrush ImageSource="Resources/close.png"/>
</Button.Background>
</Button>
<Button Style="{StaticResource BUTTON_AGREE}" Content="HELLO" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="119" Height="40" Margin="0,0,146,10" BorderBrush="{x:Null}" Background="#FF36B5C1"/>
<Button Style="{StaticResource BUTTON_DISAGREE}" Content="DISMISS" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="119" Height="40" Margin="0,0,10,10" Foreground="Gray"/>
<Button Style="{StaticResource BUTTON_MENUBAR_PATH}" Background="{x:Null}" Content=" 我的文件 " Margin="21,0,0,0"/>
<Button Style="{DynamicResource BUTTON_ELLIPSE}" Width="30" Height="30" HorizontalAlignment="Left" Margin="33,110,0,0" VerticalAlignment="Top" />
</Grid>
</Window>