|
1 |
| -<Window x:Class="Nimble.Views.StartView" |
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:shell="https://github.com/WPFDevelopersOrg/WPFDevelopers" |
7 |
| - xmlns:po="http://schemas.microsoft.com/winfx/2006/xaml/presentation/options" |
8 |
| - xmlns:local="clr-namespace:Nimble.Views" |
9 |
| - mc:Ignorable="d" |
10 |
| - Title="启动页" Height="320" Width="500" |
11 |
| - ResizeMode="NoResize" WindowStartupLocation="CenterScreen" |
12 |
| - Background="#00FFFFFF" WindowStyle="None" |
13 |
| - TextOptions.TextFormattingMode="Display" UseLayoutRounding="True" |
14 |
| - SnapsToDevicePixels="True" x:Name="mainView" ShowInTaskbar="False"> |
| 1 | +<Window |
| 2 | + x:Class="Nimble.Views.StartView" |
| 3 | + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 4 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 5 | + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| 6 | + xmlns:local="clr-namespace:Nimble.Views" |
| 7 | + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| 8 | + xmlns:po="http://schemas.microsoft.com/winfx/2006/xaml/presentation/options" |
| 9 | + xmlns:shell="https://github.com/WPFDevelopersOrg/WPFDevelopers" |
| 10 | + x:Name="mainView" |
| 11 | + Title="启动页" |
| 12 | + Width="500" |
| 13 | + Height="320" |
| 14 | + Background="#00FFFFFF" |
| 15 | + ResizeMode="NoResize" |
| 16 | + ShowInTaskbar="False" |
| 17 | + SnapsToDevicePixels="True" |
| 18 | + TextOptions.TextFormattingMode="Display" |
| 19 | + UseLayoutRounding="True" |
| 20 | + WindowStartupLocation="CenterScreen" |
| 21 | + WindowStyle="None" |
| 22 | + mc:Ignorable="d"> |
15 | 23 | <shell:WindowChrome.WindowChrome>
|
16 |
| - <shell:WindowChrome GlassFrameThickness="-1" |
17 |
| - CaptionHeight="{Binding ElementName=mainView,Path=ActualHeight}"/> |
| 24 | + <shell:WindowChrome CaptionHeight="{Binding ElementName=mainView, Path=ActualHeight}" GlassFrameThickness="-1" /> |
18 | 25 | </shell:WindowChrome.WindowChrome>
|
19 | 26 | <Window.Resources>
|
20 |
| - <ImageBrush x:Key="freeMachineImageBrush" |
21 |
| - ImageSource="/Nimble;component/Images/airplane.png" |
22 |
| - Stretch="None" AlignmentY="Center" |
23 |
| - po:Freeze="True"/> |
| 27 | + <ImageBrush |
| 28 | + x:Key="freeMachineImageBrush" |
| 29 | + po:Freeze="True" |
| 30 | + AlignmentY="Center" |
| 31 | + ImageSource="/Nimble;component/Images/airplane.png" |
| 32 | + Stretch="None" /> |
24 | 33 | </Window.Resources>
|
25 | 34 | <Canvas Name="myCanvas" Focusable="True">
|
26 |
| - <Rectangle Name="background" Height="320" Width="1262"/> |
27 |
| - <Rectangle Name="background2" Height="320" Width="1262" Canvas.Left="1262"/> |
28 |
| - <Rectangle x:Name="freeRect" Fill="{StaticResource freeMachineImageBrush}" |
29 |
| - Height="48" Width="128" Canvas.Left="186" Canvas.Top="20"/> |
30 |
| - <TextBlock x:Name="tbMsg" FontSize="20" Canvas.Left="10" /> |
31 |
| - <TextBlock x:Name="tb1" Text="8866 微信公众号:WPF开发者" FontSize="20" Canvas.Left="100" Canvas.Top="120" Width="1262"/> |
32 |
| - <TextBlock x:Name="tb2" Text="2333哈哈哈哈" FontSize="20" Canvas.Left="800" Canvas.Top="80" Width="1262"/> |
33 |
| - <TextBlock x:Name="tb3" Text="66666 再接再厉" FontSize="20" Canvas.Left="450" Canvas.Top="160" Width="1262"/> |
34 |
| - <!-- Canvas.Left="122"--> |
| 35 | + <Rectangle |
| 36 | + Name="background" |
| 37 | + Width="1262" |
| 38 | + Height="320" /> |
| 39 | + <Rectangle |
| 40 | + Name="background2" |
| 41 | + Canvas.Left="1262" |
| 42 | + Width="1262" |
| 43 | + Height="320" /> |
| 44 | + <Rectangle |
| 45 | + x:Name="freeRect" |
| 46 | + Canvas.Left="186" |
| 47 | + Canvas.Top="20" |
| 48 | + Width="128" |
| 49 | + Height="48" |
| 50 | + Fill="{StaticResource freeMachineImageBrush}" /> |
| 51 | + <TextBlock |
| 52 | + x:Name="tbMsg" |
| 53 | + Canvas.Left="10" |
| 54 | + FontSize="20" /> |
| 55 | + <TextBlock |
| 56 | + x:Name="tb1" |
| 57 | + Canvas.Left="100" |
| 58 | + Canvas.Top="120" |
| 59 | + Width="1262" |
| 60 | + FontSize="20" |
| 61 | + Text="8866 微信公众号:WPF开发者" /> |
| 62 | + <TextBlock |
| 63 | + x:Name="tb2" |
| 64 | + Canvas.Left="800" |
| 65 | + Canvas.Top="80" |
| 66 | + Width="1262" |
| 67 | + FontSize="20" |
| 68 | + Text="2333哈哈哈哈" /> |
| 69 | + <TextBlock |
| 70 | + x:Name="tb3" |
| 71 | + Canvas.Left="450" |
| 72 | + Canvas.Top="160" |
| 73 | + Width="1262" |
| 74 | + FontSize="20" |
| 75 | + Text="66666 再接再厉" /> |
| 76 | + <!-- Canvas.Left="122" --> |
35 | 77 | </Canvas>
|
36 | 78 | </Window>
|
0 commit comments