-
Notifications
You must be signed in to change notification settings - Fork 85
/
Copy pathSetupWindow.xaml
executable file
·40 lines (40 loc) · 3.71 KB
/
SetupWindow.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
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:RuntimeBinder="clr-namespace:Microsoft.CSharp.RuntimeBinder;assembly=Microsoft.CSharp" x:Class="NintendoSpy.SetupWindow"
Title="NintendoSpy" Height="419.966" Width="602" Foreground="White" Background="#FF252526">
<Grid>
<ComboBox Margin="145,17,10,0" SelectedIndex="0" VerticalAlignment="Top" BorderBrush="#FF252525" IsReadOnly="True"
SelectionChanged="SourceSelectComboBox_SelectionChanged"
ItemsSource="{Binding Sources.Items}"
DisplayMemberPath="Name"
SelectedValue="{Binding Sources.SelectedItem}" />
<Label Content="Controller Source:" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" Foreground="#FFCBCBCB" FontFamily="Calibri" FontSize="16"/>
<Label Name="ComPortLabel" Content="COM Port:" HorizontalAlignment="Left" Margin="59,45,0,0" VerticalAlignment="Top" Foreground="#FFCBCBCB" FontFamily="Calibri" FontSize="16"
Visibility="{Binding ComPortOptionVisibility}" />
<Label Name="ControllerIdLabel" Content="Controller:" HorizontalAlignment="Left" Margin="59,45,0,0" VerticalAlignment="Top" Foreground="#FFCBCBCB" FontFamily="Calibri" FontSize="16"
Visibility="{Binding XIAndGamepadOptionVisibility}" />
<ComboBox Name="ComPortCombo" Margin="145,51,10,0" VerticalAlignment="Top" BorderBrush="#FF252525" IsReadOnly="True"
ItemsSource="{Binding Ports.Items}"
SelectedValue="{Binding Ports.SelectedItem}"
Visibility="{Binding ComPortOptionVisibility}" />
<ComboBox Name="ControllerIdCombo" Margin="145,51,10,0" VerticalAlignment="Top" BorderBrush="#FF252525" IsReadOnly="True"
ItemsSource="{Binding XIAndGamepad.Items}"
SelectedValue="{Binding XIAndGamepad.SelectedItem}"
Visibility="{Binding XIAndGamepadOptionVisibility}" />
<Label Content="Viewer Skin:" HorizontalAlignment="Left" Margin="10,111,0,0" VerticalAlignment="Top" Foreground="#FFCBCBCB" FontFamily="Calibri" FontSize="16" />
<ListBox Margin="10,146,265.2,47.4" Background="#FF1D1D1D" Foreground="#FFCBCBCB" BorderBrush="#FF3E3E42" BorderThickness="2" FontFamily="Calibri" FontSize="16"
SelectedIndex="0"
ItemsSource="{Binding Skins.Items}"
DisplayMemberPath="Name"
SelectedValue="{Binding Skins.SelectedItem}" SelectionChanged="Skin_SelectionChanged" />
<TextBox Name="txtDelay" Margin="145,85,10,0" VerticalAlignment="Top" Height="24 " Text="{Binding DelayInMilliseconds}" FontSize="16" FontFamily="Calibri" Background="#FF3E3E42" Foreground="#FFCBCBCB" BorderBrush="#FF656565" TextAlignment="Right" />
<Button Name="goButton" Content="Go!" Margin="10,0,10,10" Height="23" VerticalAlignment="Bottom" FontSize="16" FontFamily="Calibri" Background="#FF3E3E42" Foreground="#FFCBCBCB" BorderBrush="#FF252526" Click="goButton_Click" />
<ListBox Margin="0,146,10.2,47.4" Background="#FF1D1D1D" Foreground="#FFCBCBCB" BorderBrush="#FF3E3E42" BorderThickness="2" FontFamily="Calibri" FontSize="16"
SelectedIndex="0"
ItemsSource="{Binding Backgrounds.Items}"
DisplayMemberPath="Name"
SelectedValue="{Binding Backgrounds.SelectedItem}" HorizontalAlignment="Right" Width="250" />
<Label x:Name="DelayLabel" Content="Delay (ms):" HorizontalAlignment="Left" Margin="54,81,0,0" VerticalAlignment="Top" Foreground="#FFCBCBCB" FontFamily="Calibri" FontSize="16" />
</Grid>
</Window>