WinMessageTip.xaml 1.2 KB

123456789101112131415161718192021
  1. <Window x:Class="FWindSoft.Wpf.WinMessageTip"
  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. WindowStartupLocation="CenterOwner" Width="180" MinWidth="180" MaxWidth="400" Height="120" MinHeight="120" MaxHeight="300"
  7. ResizeMode="NoResize" SizeToContent="WidthAndHeight">
  8. <Grid >
  9. <Grid.RowDefinitions>
  10. <RowDefinition></RowDefinition>
  11. <RowDefinition Height="38"></RowDefinition>
  12. </Grid.RowDefinitions>
  13. <ScrollViewer VerticalScrollBarVisibility="Auto">
  14. <TextBlock x:Name="TxtMessage" Margin="20" VerticalAlignment="Center" HorizontalAlignment="Center" TextWrapping="Wrap"></TextBlock>
  15. </ScrollViewer>
  16. <Border Grid.Row="1" BorderBrush="Black" BorderThickness="0,1,0,0" >
  17. <StackPanel x:Name="StackButtons" Margin="4" Orientation="Horizontal" HorizontalAlignment="Right"></StackPanel>
  18. </Border>
  19. </Grid>
  20. </Window>