CustomMessageBox.xaml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <Window x:Class="SonopostSearchTool.CustomMessageBox"
  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:SonopostSearchTool"
  7. mc:Ignorable="d" x:Name="main"
  8. Title="{DynamicResource Title}" Height="130" Width="280" Background="{x:Null}"
  9. WindowStyle="None" ResizeMode="NoResize" AllowsTransparency="True" WindowStartupLocation="CenterScreen">
  10. <Window.Resources>
  11. </Window.Resources>
  12. <Border Background="{StaticResource MainTheme}" Opacity="1" CornerRadius="3">
  13. <Canvas>
  14. <Border Canvas.Top="0" Height="25" Width="{Binding ElementName=main, Path=Width,UpdateSourceTrigger=PropertyChanged}"
  15. BorderThickness="0,0,0,1" BorderBrush="#FFEFE2E2">
  16. <TextBlock x:Name="lblTitle" Text="test" HorizontalAlignment="Left"
  17. Foreground="#FFCBBEBE" FontSize="14"
  18. VerticalAlignment="Center" Margin="5"/>
  19. </Border>
  20. <TextBlock x:Name="lblMsg"
  21. Foreground="White" FontSize="14"
  22. TextWrapping="Wrap" Text="test"
  23. HorizontalAlignment="Center" Canvas.Left="20"
  24. Canvas.Top="50" />
  25. <Border BorderBrush="#FF60C1C1" BorderThickness="0.5" Height="22"
  26. Canvas.Bottom="10" Canvas.Right="30" MouseLeftButtonDown="Yes_MouseLeftButtonDown"
  27. Name="border1" Width="49" Background="#FFC7C7C7" CornerRadius="2">
  28. <TextBlock Text="{DynamicResource Confirm}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  29. </Border>
  30. </Canvas>
  31. </Border>
  32. </Window>