📄 window1.xaml
字号:
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="sms.Window1"
x:Name="Window"
Title="Window1"
Width="640" Height="480" WindowStyle="None" AllowsTransparency="True" Background="{x:Null}" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" OpacityMask="{x:Null}">
<Window.Resources>
<Style x:Key="ok" BasedOn="{x:Null}" TargetType="{x:Type Button}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<ControlTemplate.Resources>
<Storyboard x:Key="Storyboard1">
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ellipse" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
<SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0.8"/>
<SplineDoubleKeyFrame KeyTime="00:00:00.6000000" Value="1"/>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ellipse" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
<SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0.8"/>
<SplineDoubleKeyFrame KeyTime="00:00:00.6000000" Value="1"/>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="contentPresenter" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.75"/>
<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0.55"/>
<SplineDoubleKeyFrame KeyTime="00:00:00.6000000" Value="0.75"/>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="contentPresenter" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.7"/>
<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0.5"/>
<SplineDoubleKeyFrame KeyTime="00:00:00.6000000" Value="0.7"/>
</DoubleAnimationUsingKeyFrames>
</Storyboard>
</ControlTemplate.Resources>
<Grid>
<Ellipse Fill="#FFFFFFFF" Stroke="#FF000000" x:Name="ellipse" RenderTransformOrigin="0.5,0.5">
<Ellipse.RenderTransform>
<TransformGroup>
<ScaleTransform ScaleX="1" ScaleY="1"/>
<SkewTransform AngleX="0" AngleY="0"/>
<RotateTransform Angle="0"/>
<TranslateTransform X="0" Y="0"/>
</TransformGroup>
</Ellipse.RenderTransform>
<Ellipse.BitmapEffect>
<BevelBitmapEffect/>
</Ellipse.BitmapEffect>
</Ellipse>
<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" x:Name="contentPresenter" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" RenderTransformOrigin="0.5,0.5" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" RecognizesAccessKey="True">
<ContentPresenter.RenderTransform>
<TransformGroup>
<ScaleTransform ScaleX="0.75" ScaleY="0.7"/>
<SkewTransform AngleX="0" AngleY="0"/>
<RotateTransform Angle="0"/>
<TranslateTransform X="0" Y="0"/>
</TransformGroup>
</ContentPresenter.RenderTransform>
</ContentPresenter>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsFocused" Value="True"/>
<Trigger Property="IsDefaulted" Value="True"/>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="BitmapEffect" TargetName="ellipse">
<Setter.Value>
<OuterGlowBitmapEffect GlowSize="4" Noise="0.21" Opacity="0.735"/>
</Setter.Value>
</Setter>
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Trigger.EnterActions>
<BeginStoryboard Storyboard="{StaticResource Storyboard1}"/>
</Trigger.EnterActions>
</Trigger>
<Trigger Property="IsEnabled" Value="False"/>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Window.Resources>
<Grid x:Name="LayoutRoot">
<Grid Margin="159.377,71.241,185.623,91.759">
<Image Source="PNG-mobilephone.png-256x256.png" Stretch="Fill" Margin="-6,15,6,-15">
<Image.BitmapEffect>
<BevelBitmapEffect/>
</Image.BitmapEffect>
</Image>
<Rectangle Fill="#FFFFFFFF" Margin="63,0,117.022,17" VerticalAlignment="Bottom" Height="67">
<Rectangle.BitmapEffect>
<BlurBitmapEffect/>
</Rectangle.BitmapEffect>
</Rectangle>
<Path Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FF000000" Margin="131.099,0,117.022,96.681" VerticalAlignment="Bottom" Height="19.394" Data="M295.58916,234.58193 L335.97846,235.62161 C326.84033,249.6625 314.48797,254.83832 300.22186,252.38254 301.77224,244.22608 300.19094,238.30968 295.58916,234.58193 z">
<Path.BitmapEffect>
<BevelBitmapEffect/>
</Path.BitmapEffect>
</Path>
<Path Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FF000000" HorizontalAlignment="Left" Margin="69.795,0,0,96.689" VerticalAlignment="Bottom" Width="38.666" Height="19.386" Data="M107.98554,164.22651 L70.320024,163.20071 C71.394305,175.54066 82.81958,181.21721 102.49479,181.58291 99.979682,172.98583 101.65482,166.73076 107.98554,164.22651 z">
<Path.BitmapEffect>
<BevelBitmapEffect/>
</Path.BitmapEffect>
</Path>
<Button HorizontalAlignment="Left" Margin="106.668,0,0,90.806" Style="{DynamicResource ok}" VerticalAlignment="Bottom" Width="26.002" Height="25.269" Content="OK">
<Button.BitmapEffect>
<DropShadowBitmapEffect Opacity="0.375"/>
</Button.BitmapEffect>
</Button>
<Path Stretch="Fill" Margin="68.279,62.728,118.066,119.769" Data="M68.278922,66.366287 L68.278922,193.33476 173.76092,196.23225 175.93367,62.245288 z">
<Path.Fill>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#FF000000" Offset="0"/>
<GradientStop Color="#FFEC582E" Offset="1"/>
</LinearGradientBrush>
</Path.Fill>
</Path>
<TextBlock Margin="73,107.759,113.539,0" VerticalAlignment="Top" FontSize="36" Foreground="#FF5DFF07" TextWrapping="Wrap" d:LayoutOverrides="VerticalAlignment">
<TextBlock.BitmapEffect>
<DropShadowBitmapEffect/>
</TextBlock.BitmapEffect><Run FontFamily="Snap ITC" Text="SMS"/></TextBlock>
</Grid>
<TextBox Margin="223,0,303,111" VerticalAlignment="Bottom" Height="63" Background="{x:Null}" BorderBrush="{x:Null}" FontSize="16" Text="Tel Number" TextWrapping="Wrap"/>
</Grid>
</Window>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -