-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathInfoWindow.xaml
More file actions
57 lines (52 loc) · 2.52 KB
/
Copy pathInfoWindow.xaml
File metadata and controls
57 lines (52 loc) · 2.52 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<Window x:Class="Auto_Clicker.InfoWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Information"
SizeToContent="Height"
Width="400"
WindowStyle="None"
AllowsTransparency="True"
Background="Transparent"
ResizeMode="NoResize"
WindowStartupLocation="CenterOwner"
FontFamily="Segoe UI"
FontSize="13">
<Window.Resources>
<Style x:Key="PrimaryBtn" TargetType="Button">
<Setter Property="Background" Value="#2563EB"/>
<Setter Property="Foreground" Value="White"/>
<Setter Property="FontWeight" Value="Bold"/>
<Setter Property="Cursor" Value="Hand"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border Background="{TemplateBinding Background}" CornerRadius="6">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="#1D4ED8"/>
</Trigger>
</Style.Triggers>
</Style>
</Window.Resources>
<Border Background="#F9FAFB" CornerRadius="10" BorderBrush="#E5E7EB" BorderThickness="1" Margin="10">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="40"/>
<RowDefinition Height="*"/>
<RowDefinition Height="60"/>
</Grid.RowDefinitions>
<Border Grid.Row="0" MouseLeftButtonDown="TitleBar_MouseDown" Background="Transparent">
<TextBlock x:Name="txtTitle" FontWeight="Bold" Foreground="#111827" VerticalAlignment="Center" Margin="15,0,0,0"/>
</Border>
<Border Grid.Row="1" Background="White" CornerRadius="6" Margin="15,0,15,0" Padding="15" BorderBrush="#E5E7EB" BorderThickness="1">
<TextBlock x:Name="txtMessage" TextWrapping="Wrap" Foreground="#374151" LineHeight="20"/>
</Border>
<Button Grid.Row="2" Content="Got it!" Width="100" Height="35" Style="{StaticResource PrimaryBtn}" Click="BtnClose_Click" HorizontalAlignment="Right" Margin="0,0,15,0"/>
</Grid>
</Border>
</Window>