-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
24 lines (21 loc) · 1.63 KB
/
Copy pathMainWindow.xaml
File metadata and controls
24 lines (21 loc) · 1.63 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
<Window x:Class="CustomBorderExample.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Height="250" Width="400" Loaded="Window_Loaded" WindowStyle="SingleBorderWindow">
<Border BorderBrush="Purple" BorderThickness="5">
<Grid x:Name="grid" >
<TextBlock x:Name="title" Text="MainWindow" HorizontalAlignment="Left" Margin="0,0,0,0" Foreground="White" Background="Blue"
VerticalAlignment="Top" Height="25" Padding="5 5 5 5" Width="89"/>
<Button x:Name="bMinimize" Content="_" HorizontalAlignment="Right" Height="25" Margin="0,0,50,0" VerticalAlignment="Top"
Background="Yellow" Width="25" Click="bMinimize_Click" />
<Button x:Name="bMaximize" Content="□" HorizontalAlignment="Right" Height="25" Margin="0,0,25,0" VerticalAlignment="Top"
Background="Orange" Width="25" Click="bMaximize_Click" />
<Button x:Name="bClose" Content="X" HorizontalAlignment="Right" Height="25" Margin="0,0,0,0" VerticalAlignment="Top"
Background="Green" Width="25" Click="bClose_Click"/>
<Button x:Name="button1" Content="Button1" HorizontalAlignment="Left" Height="25" Margin="100,0,0,0" VerticalAlignment="Top"
Background="Red" Width="80" Click="Button_Click"/>
<Button x:Name="button2" Content="Button2" HorizontalAlignment="Left" Height="25" Margin="190,0,0,0" VerticalAlignment="Top"
Background="Magenta" Width="80" Click="button2_Click"/>
</Grid>
</Border>
</Window>