|
5 | 5 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
6 | 6 | xmlns:local="clr-namespace:RoundedScreen" |
7 | 7 | mc:Ignorable="d" |
8 | | - Title="RoundedScreen" Height="450" Width="800" Topmost="True" ResizeMode="NoResize" WindowStartupLocation="CenterScreen" WindowState="Maximized" ShowInTaskbar="False" Focusable="False" IsTabStop="False" Closing="WndRoundedScreen_Closing" WindowStyle="None" AllowsTransparency="True"> |
| 8 | + Title="RoundedScreen" Loaded="WndRoundedScreen_Loaded" Height="{DynamicResource {x:Static SystemParameters.MaximizedPrimaryScreenHeightKey}}" Width="{DynamicResource {x:Static SystemParameters.MaximizedPrimaryScreenWidthKey}}" Topmost="True" ResizeMode="NoResize" WindowStartupLocation="Manual" ShowInTaskbar="False" Focusable="False" IsTabStop="False" Closing="WndRoundedScreen_Closing" WindowStyle="None" AllowsTransparency="True" LostFocus="WndRoundedScreen_LostFocus" Left="0" Top="0"> |
9 | 9 | <Window.Resources> |
10 | 10 | <Storyboard x:Key="Opening"> |
11 | 11 | <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="grid"> |
|
24 | 24 | Opacity="0.0" /> |
25 | 25 | </Window.Background> |
26 | 26 | <Grid x:Name="grid"> |
27 | | - <Image x:Name="imgCornerTL" HorizontalAlignment="Left" Margin="0" VerticalAlignment="Top" Width="12" Source="pack://siteoforigin:,,,/Resources/Corner.png"/> |
28 | | - <Image x:Name="imgCornerTR" HorizontalAlignment="Right" Margin="0" VerticalAlignment="Top" Width="12" Source="pack://siteoforigin:,,,/Resources/Corner.png" RenderTransformOrigin="0.5,0.5"> |
| 27 | + <Image x:Name="imgCornerTL" HorizontalAlignment="Left" Margin="0" VerticalAlignment="Top" Width="16" Source="Resources/Corner.png"/> |
| 28 | + <Image x:Name="imgCornerTR" HorizontalAlignment="Right" Margin="0" VerticalAlignment="Top" Width="16" Source="Resources/Corner.png" RenderTransformOrigin="0.5,0.5"> |
29 | 29 | <Image.RenderTransform> |
30 | 30 | <TransformGroup> |
31 | 31 | <ScaleTransform/> |
|
35 | 35 | </TransformGroup> |
36 | 36 | </Image.RenderTransform> |
37 | 37 | </Image> |
38 | | - <Image x:Name="imgCornerBR" HorizontalAlignment="Right" Margin="0" VerticalAlignment="Bottom" Width="12" Source="pack://siteoforigin:,,,/Resources/Corner.png" RenderTransformOrigin="0.5,0.5"> |
| 38 | + <Image x:Name="imgCornerBR" HorizontalAlignment="Right" Margin="0" VerticalAlignment="Bottom" Width="16" Source="Resources/Corner.png" RenderTransformOrigin="0.5,0.5"> |
39 | 39 | <Image.RenderTransform> |
40 | 40 | <TransformGroup> |
41 | 41 | <ScaleTransform/> |
|
45 | 45 | </TransformGroup> |
46 | 46 | </Image.RenderTransform> |
47 | 47 | </Image> |
48 | | - <Image x:Name="imgCornerBL" HorizontalAlignment="Left" Margin="0" VerticalAlignment="Bottom" Width="12" Source="pack://siteoforigin:,,,/Resources/Corner.png" RenderTransformOrigin="0.5,0.5"> |
| 48 | + <Image x:Name="imgCornerBL" HorizontalAlignment="Left" Margin="0" VerticalAlignment="Bottom" Width="16" Source="Resources/Corner.png" RenderTransformOrigin="0.5,0.5"> |
49 | 49 | <Image.RenderTransform> |
50 | 50 | <TransformGroup> |
51 | 51 | <ScaleTransform/> |
|
0 commit comments