MessageWindow.xaml 2.1 KB

1234567891011121314151617181920212223242526272829303132
  1. <Window x:Class="NEIntelligentControl2.MessageWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:NEIntelligentControl2"
  7. mc:Ignorable="d"
  8. Title="MessageWindow" Height="150" Width="266.666667" WindowStartupLocation="CenterOwner" ResizeMode="NoResize">
  9. <Grid>
  10. <Grid.RowDefinitions>
  11. <RowDefinition/>
  12. <RowDefinition Height="Auto"/>
  13. </Grid.RowDefinitions>
  14. <Grid>
  15. <Grid.ColumnDefinitions>
  16. <ColumnDefinition Width="Auto"/>
  17. <ColumnDefinition/>
  18. </Grid.ColumnDefinitions>
  19. <Viewbox Width="35" Height="35" Margin="5">
  20. <Canvas Width="1024" Height="1024">
  21. <Path Data="M512 85.333333c235.648 0 426.666667 191.018667 426.666667 426.666667s-191.018667 426.666667-426.666667 426.666667S85.333333 747.648 85.333333 512 276.352 85.333333 512 85.333333z m0 170.666667a42.666667 42.666667 0 0 0-42.666667 42.666667v341.333333a42.666667 42.666667 0 0 0 85.333334 0V298.666667a42.666667 42.666667 0 0 0-42.666667-42.666667z m0 554.666667a42.666667 42.666667 0 1 0 0-85.333334 42.666667 42.666667 0 0 0 0 85.333334z" Fill="#FAAD14"/>
  22. </Canvas>
  23. </Viewbox>
  24. <TextBlock Grid.Column="1" Text="{Binding RelativeSource={RelativeSource AncestorType=Window, Mode=FindAncestor}, Path=Message}" VerticalAlignment="Center" TextWrapping="Wrap"/>
  25. </Grid>
  26. <StackPanel Grid.Row="1" Orientation="Horizontal" Margin="10,0,10,0" HorizontalAlignment="Right">
  27. <Button Content="确 定" Margin="10" Padding="12,3" Click="Button_Click" Tag="ok" Style="{StaticResource ConfirmButtonStyle}" IsDefault="True"/>
  28. <Button Content="取 消" Margin="10" Padding="12,3" Click="Button_Click" Tag="cancel" Style="{StaticResource CancelButtonStyle}" IsCancel="True"/>
  29. </StackPanel>
  30. </Grid>
  31. </Window>