-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMain.xaml
43 lines (35 loc) · 1.97 KB
/
Main.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<Page
x:Class="vba.Main"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:vba"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
xmlns:WindowsUI="using:Windows.UI.Xaml.Media">
<Grid x:Name="G1">
<Grid.Resources>
<!-- 亮模式的 AcrylicBrush -->
<WindowsUI:AcrylicBrush x:Key="AcrylicBrushLight" BackgroundSource="HostBackdrop" TintColor="White" TintOpacity="0.6" FallbackColor="LightGray"/>
<!-- 暗模式的 AcrylicBrush -->
<WindowsUI:AcrylicBrush x:Key="AcrylicBrushDark" BackgroundSource="HostBackdrop" TintColor="Black" TintOpacity="0.6" FallbackColor="DarkGray"/>
</Grid.Resources>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Button HorizontalAlignment="Stretch" Margin="10,10,10,0" VerticalAlignment="Top" Click="Tongzhi">Windows通知伪装器</Button>
<muxc:TeachingTip x:Name="TongzhiTip" PreferredPlacement="Auto" PlacementMargin="20">
<StackPanel>
<TextBlock Text="Windows通知伪装器" Style="{StaticResource SubtitleTextBlockStyle}" Margin="0,0,0,10"/>
<!-- 第一个编辑框 -->
<TextBox x:Name="tb0" Margin="0,0,0,10" PlaceholderText="标题(禁止输入xml,html标签)"/>
<!-- 第二个编辑框 -->
<TextBox x:Name="tb1" Margin="0,0,0,10" PlaceholderText="内容(禁止输入xml,html标签)" />
<!-- 按钮 -->
<Button x:Name="b0" Click="b0_click" Content="生成" Margin="0,0,0,0"/>
</StackPanel>
</muxc:TeachingTip>
</Grid>
</Page>