代码拉取完成,页面将自动刷新
<Window x:Class="BluetoothPC.MessageWindow"
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:BluetoothPC"
mc:Ignorable="d"
Title="MessageWindow" Height="180" Width="360" WindowStyle="None"
AllowsTransparency="True" WindowStartupLocation="CenterOwner" Loaded="Window_Loaded" RenderTransformOrigin="0.5,0.5"
Background="Transparent" OpacityMask="White" ResizeMode="NoResize">
<Window.RenderTransform>
<ScaleTransform x:Name="Scale" ScaleX="1" ScaleY="{Binding ElementName=Scale,Path=ScaleX}"/>
</Window.RenderTransform>
<Border Background="White" Height="140" Width="270" BorderThickness="2" BorderBrush="Gray" CornerRadius="32,32,32,32" Name="top">
<Border.Effect>
<DropShadowEffect ShadowDepth="0" Color="White" BlurRadius="4"/>
</Border.Effect>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="1*"></RowDefinition>
<RowDefinition Height="1*"></RowDefinition>
<RowDefinition Height="1*"></RowDefinition>
</Grid.RowDefinitions>
<Grid.Resources>
<Style TargetType="TextBlock">
<Setter Property="HorizontalAlignment" Value="Center"/>
<Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="Foreground" Value="DarkGray"/>
</Style>
</Grid.Resources>
<TextBlock Text="{Binding Path=Header}" FontSize="36" Foreground="#FFF31111" FontWeight="Bold"></TextBlock>
<TextBlock Text="{Binding Path=Message}" Grid.Row="1" FontSize="18" Foreground="#FF6B6464"></TextBlock>
<Button Grid.Row="2" Content="OK" FontSize="28" Width="200" Height="40" Click="Button_Click">
<Button.Style>
<Style TargetType="Button">
<Setter Property="Background" Value="LightBlue"/>
<Setter Property="Foreground" Value="White"/>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="Black"/>
</Trigger>
</Style.Triggers>
</Style>
</Button.Style>
<Button.Template>
<ControlTemplate TargetType="Button">
<Border CornerRadius="15" Background="{TemplateBinding Background}">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
</ControlTemplate>
</Button.Template>
</Button>
</Grid>
</Border>
</Window>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。