123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- <Window x:Class="GeekDesk.Control.Windows.UpdateWindow"
- 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:GeekDesk.Control.Windows"
- xmlns:hc="https://handyorg.github.io/handycontrol"
- mc:Ignorable="d"
- Height="460" Width="610"
- WindowStyle="None"
- AllowsTransparency="True"
- Title=""
- ResizeMode="NoResize"
- Background="Transparent" ShowInTaskbar="False"
- Focusable="True"
- KeyDown="OnKeyDown">
- <Grid Margin="20">
- <Grid.Effect>
- <DropShadowEffect BlurRadius="30" Direction="-90" Color="Gray"
- RenderingBias="Quality" ShadowDepth="2"/>
- </Grid.Effect>
- <Border CornerRadius="4" Background="White" BorderThickness="0" MouseDown="DragMove">
- <StackPanel HorizontalAlignment="Center">
- <hc:Card BorderThickness="0" Effect="{DynamicResource EffectShadow2}" Margin="20,20,20,0">
- <!--Card 的内容部分-->
- <Border CornerRadius="4,4,0,0">
- <StackPanel>
- <hc:SimplePanel VerticalAlignment="Center">
- <TextBlock Margin="10" x:Name="MsgTitle" TextWrapping="Wrap" FontSize="16" HorizontalAlignment="Left" Style="{DynamicResource TextBlockLargeBold}" Text="测试"/>
- <Button HorizontalAlignment="Right" Margin="0,0,10,0"
- Content="去点个Star" Click="StarBtnClick"
- Style="{StaticResource MyBtnStyle}"
- hc:IconElement.Geometry="M718.565517 863.126069c-7.344552 0-15.077517-2.189241-22.987034-6.285241L512 760.337655l-183.613793 96.503173c-18.785103 9.851586-37.499586 7.521103-48.16331-5.12-5.12-6.10869-10.557793-17.125517-7.485794-35.345656l35.063173-204.411586L159.249655 467.155862c-12.747034-12.393931-17.584552-27.153655-13.241379-40.430345 4.343172-13.312 16.913655-22.386759 34.568827-24.929103l205.223725-29.837242 91.806896-185.979586c7.874207-15.995586 20.409379-25.140966 34.392276-25.140965 13.947586 0 26.482759 9.145379 34.392276 25.140965l91.771586 185.979586 205.259035 29.837242c17.619862 2.577655 30.190345 11.652414 34.498206 24.964414 4.378483 13.27669-0.529655 28.001103-13.241379 40.430344l-148.51531 144.807725 35.063172 204.411586c3.10731 18.149517-2.365793 29.272276-7.485793 35.345655a32.273655 32.273655 0 0 1-25.176276 11.369931z"
- />
- </hc:SimplePanel>
- <hc:Divider LineStrokeDashArray="3,3" LineStroke="Black" Margin="20,0,20,0"/>
- <hc:ScrollViewer BorderThickness="0" Margin="0,5,1,5" Height="225">
- <StackPanel x:Name="MsgPanel">
- <TextBlock Width="430" FontSize="15" LineHeight="25" x:Name="Msg" TextWrapping="Wrap" VerticalAlignment="Center" Text="测试"/>
- </StackPanel>
- </hc:ScrollViewer>
- </StackPanel>
- </Border>
- <!--Card 的尾部部分-->
- <hc:Card.Footer>
- <StackPanel Margin="10" Width="520">
- <!--Card 的一级内容-->
- <TextBlock TextWrapping="NoWrap" x:Name="Title" Style="{DynamicResource TextBlockLargeBold}" TextTrimming="CharacterEllipsis"
- Text=""
- HorizontalAlignment="Left"/>
- <!--Card 的二级内容-->
- <TextBlock TextWrapping="NoWrap" x:Name="SubTitle" Style="{DynamicResource TextBlockDefault}" TextTrimming="CharacterEllipsis"
- Margin="0,6,0,0"
- HorizontalAlignment="Left"/>
- </StackPanel>
- </hc:Card.Footer>
- </hc:Card>
- <hc:UniformSpacingPanel Spacing="100" HorizontalAlignment="Center" Margin="0,10,0,0">
- <Button Style="{StaticResource MyBtnStyle}" Content="暂不更新" Click="Close_Click"/>
- <Button Style="{StaticResource MyBtnStyle}" Content="前往更新" Click="Confirm_Click"/>
- </hc:UniformSpacingPanel>
- </StackPanel>
- </Border>
- </Grid>
- </Window>
|