PopView.xaml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <UserControl x:Class="BlankApp1.Views.PopView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:BlankApp1.Views"
  7. xmlns:prism="http://prismlibrary.com/"
  8. Height="400" Width="400">
  9. <prism:Dialog.WindowStyle>
  10. <Style TargetType="Window">
  11. <Setter Property="SizeToContent" Value="WidthAndHeight" />
  12. <Setter Property="ResizeMode" Value="NoResize" />
  13. <Setter Property="prism:Dialog.WindowStartupLocation" Value="CenterScreen" />
  14. <Setter Property="WindowStyle" Value="None" />
  15. </Style>
  16. </prism:Dialog.WindowStyle>
  17. <Grid>
  18. <Grid.RowDefinitions>
  19. <RowDefinition Height="50"/>
  20. <RowDefinition />
  21. </Grid.RowDefinitions>
  22. <Grid Grid.Row="0" Cursor="Hand" >
  23. <StackPanel Orientation="Horizontal" Margin="10,5,0,0">
  24. <TextBlock Text="编辑" FontSize="15" />
  25. </StackPanel>
  26. <StackPanel HorizontalAlignment="Right" Margin="10,5,5,0">
  27. <Button Command="{Binding CloseCommand}" Background="Transparent" Content="✕" BorderThickness="0" Cursor="Hand" />
  28. </StackPanel>
  29. </Grid>
  30. <StackPanel Orientation="Horizontal" Grid.Row="1" Margin="10">
  31. <TextBlock Text="名称" Height="30" FontSize="20" Margin="0,0,20,0" />
  32. <TextBox Width="150" Height="30" Text="{Binding DisContent}" />
  33. <Button Content="确认" Width="100" Command="{Binding SureCommand}" Style="{DynamicResource NormalButtonStyle}"/>
  34. </StackPanel>
  35. </Grid>
  36. </UserControl>