1 Star 0 Fork 7

特兰克斯-Peter/蓝牙转WIFI计步上位机

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
SuperButton.xaml 1.86 KB
一键复制 编辑 原始数据 按行查看 历史
小贝比 提交于 2021-06-17 15:58 . Tuyong Commit
<Button x:Class="BluetoothPC.SuperButton"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:BluetoothPC"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
<Button.Template>
<ControlTemplate TargetType="Button">
<Grid ClipToBounds="True" Background="{TemplateBinding Background}" MouseLeftButtonDown="Grid_MouseLeftButtonDown">
<Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="0" CornerRadius="30,30,30,30">
<Border.Background>
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
<GradientStop Offset="0.1" Color="#FF65E8D7" />
<GradientStop Offset="0.5" Color="#FFACF6F7" />
<GradientStop Offset="0.0" Color="#FF49FCFF" />
</LinearGradientBrush>
</Border.Background>
<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Content="{TemplateBinding ContentControl.Content}"/>
</Border>
<Path Fill="White" Name="MyPath">
<Path.Data>
<EllipseGeometry x:Name="MyEllipse" RadiusX="0" RadiusY="{Binding RelativeSource={RelativeSource Mode=Self},Path=RadiusX}">
</EllipseGeometry>
</Path.Data>
</Path>
</Grid>
</ControlTemplate>
</Button.Template>
</Button>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/fly1900/StepCountingUpperPC.git
git@gitee.com:fly1900/StepCountingUpperPC.git
fly1900
StepCountingUpperPC
蓝牙转WIFI计步上位机
master

搜索帮助