1.代码部分
<Window x:Class="MaintainExe.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:MaintainExe"
xmlns:Controls="clr-namespace:MaintainExe.Controls"
Title="MaitainHint"
WindowStyle="None"
mc:Ignorable="d"
Width="480" Height="450"
MinWidth="1280" MinHeight="1024"
WindowState="Maximized"
>
<!--<Grid Margin="10" DataContext="{StaticResource VMGlobalData}" Background="red" >-->
<Grid Margin="10" >
<!--<StackPanel VerticalAlignment="Center" Orientation="Vertical" Margin="0,94,-55.4,151.6" Height="752" >-->
<!--<TextBlock FontSize="270" Height="274" Name="ResetMaintainIconFont"
Foreground="Black" Margin="528,0,-0.2,0" >
<Run Text="" FontFamily="pack://application:,,,/fonts/#iconfont" BaselineAlignment="TextTop"/>
</TextBlock>-->
<!--<TextBlock FontSize="110" Height="260" Name="ResetMaintainWordFont"
Foreground="Black" Margin="278,0,-0.2,0" >
<Run Text="Machine"/>
<Run Text="maintain"/>
<Run Text="!" />
</TextBlock>-->
<!--<Button Width="200" Background="Transparent" BorderBrush="Transparent" Command="{Binding MaintainResetCmd.Cmd, Source={StaticResource VMMaintain1}}">-->
<!--<Image Source="..\Resource\ZhuHai.png" Stretch="UniformToFill"/>-->
<!--<Image Source="..\Resource\ZhuHai.png" Stretch="Uniform"/>-->
<Viewbox Stretch="Fill">
<Image Source="..\Resource\ZhuHai.png" />
</Viewbox>
<Button Margin="512,650,511.6,308.6" Name="ResetMaintain" Width="230" Background="Transparent" BorderBrush="Transparent" Click="Button_Click">
<TextBlock Foreground="Blue" FontSize="25" TextDecorations="Underline" Width="115" >
<Run Text="" FontFamily="pack://application:,,,/fonts/#iconfont" BaselineAlignment="Baseline" />
<Run Text="Reset" FontSize="28"/>
<!--<Run Text="maintain" />-->
</TextBlock>
</Button>
<!--<Controls:Songyu HorizontalAlignment="Center" Foreground="White" Height="106" Width="114" Margin="0,10"/>-->
<!--</StackPanel>-->
</Grid>
</Window>