-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
34 lines (30 loc) · 1.86 KB
/
MainWindow.xaml
File metadata and controls
34 lines (30 loc) · 1.86 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
<!-- This is the XAML markup that defines your application's user interface. -->
<!-- It creates a simple, clean layout with a list and buttons for managing profiles. -->
<Window
x:Class="MonPro.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:MonPro"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<StackPanel Orientation="Vertical" HorizontalAlignment="Center" VerticalAlignment="Center" Spacing="10" Margin="20">
<TextBlock Text="Monitor Profile Switcher" FontSize="24" FontWeight="Bold" HorizontalAlignment="Center"/>
<TextBlock Text="Saved Profiles" Margin="0,10,0,0"/>
<ListView x:Name="ProfileListView" Height="200" MinWidth="300" BorderBrush="Gray" BorderThickness="1">
<ListView.ItemContainerStyle>
<Style TargetType="ListViewItem">
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
</Style>
</ListView.ItemContainerStyle>
</ListView>
<Grid ColumnDefinitions="*,Auto" ColumnSpacing="10" Margin="0,10,0,0">
<TextBox x:Name="ProfileNameTextBox" Grid.Column="0" PlaceholderText="Enter new profile name"/>
<Button x:Name="SaveProfileButton" Grid.Column="1" Content="Save Current" Click="SaveProfileButton_Click"/>
</Grid>
<StackPanel Orientation="Horizontal" Spacing="10" HorizontalAlignment="Center" Margin="0,10,0,0">
<Button x:Name="LoadProfileButton" Content="Load Selected" Click="LoadProfileButton_Click"/>
<Button x:Name="DeleteProfileButton" Content="Delete Selected" Click="DeleteProfileButton_Click"/>
</StackPanel>
</StackPanel>
</Window>