-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
37 lines (35 loc) · 2.62 KB
/
MainWindow.xaml
File metadata and controls
37 lines (35 loc) · 2.62 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
<Window x:Class="element_profiles.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:element_profiles"
mc:Ignorable="d"
ThemeMode="System"
DataContext="{Binding RelativeSource={RelativeSource Self}}"
Title="Element Profiles" Height="450" Width="350" ResizeMode="CanMinimize">
<Grid>
<Button x:Name="ButtonAddProfile" HorizontalAlignment="Left" Margin="5,10,0,0" VerticalAlignment="Top" Height="42" Width="50" Click="ButtonAddProfile_Click">
<Image HorizontalAlignment="Left" Height="24" VerticalAlignment="Center" Width="24" Source="/Assets/icons8-add-96.png"/>
</Button>
<Button x:Name="ButtonEditProfile" Margin="0,10,62,0" VerticalAlignment="Top" Height="42" HorizontalAlignment="Right" Width="50" Click="ButtonEditProfile_Click">
<Image HorizontalAlignment="Left" Height="24" VerticalAlignment="Center" Width="24" Source="/Assets/icons8-edit-96.png"/>
</Button>
<Button x:Name="ButtonRemoveProfile" HorizontalAlignment="Right" Margin="0,10,7,0" VerticalAlignment="Top" Height="42" Width="50" Click="ButtonRemoveProfile_Click">
<Image HorizontalAlignment="Left" Height="24" VerticalAlignment="Center" Width="24" Source="/Assets/icons8-remove-96.png"/>
</Button>
<ListBox x:Name="ListBoxProfiles" ItemsSource="{Binding ElementProfiles}" HorizontalContentAlignment="Stretch" Margin="0,57,0,25" Background="{x:Null}">
<ListBox.ItemTemplate>
<DataTemplate>
<Grid>
<Label Content="Profile: " VerticalAlignment="Center" HorizontalAlignment="Left" />
<Label Content="{Binding Name}" VerticalAlignment="Center" Margin="50,0,0,0" HorizontalAlignment="Left" />
<Button x:Name="ButtonLaunch" VerticalAlignment="Center" Content="Launch" Click="ButtonLaunch_Click" Margin="0,0,4,0" HorizontalAlignment="Right" />
</Grid>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
<Label Content="Element Version:" HorizontalAlignment="Left" Height="25" VerticalAlignment="Bottom" Margin="5,0,0,-5"/>
<Label x:Name="LabelElementVersion" Content="{Binding ElementVersion}" HorizontalAlignment="Left" Margin="103,0,0,-5" Width="63" Height="25" VerticalAlignment="Bottom"/>
</Grid>
</Window>