-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
60 lines (60 loc) · 4.05 KB
/
Copy pathMainWindow.xaml
File metadata and controls
60 lines (60 loc) · 4.05 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
58
59
60
<Window
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:Radio"
xmlns:user_controls="clr-namespace:_4_UserControl.user_controls;assembly=4_UserControl" x:Class="Radio.MainWindow"
mc:Ignorable="d"
Title="Radio" Height="380" Width="710" ResizeMode="NoResize">
<Grid Background="#FFACD8FF">
<StackPanel>
<StackPanel Orientation="Horizontal">
<Button Background="#FF8BB0FF" x:Name="ButtonVolumeMinus" Width="60" Height="120" Content="-" FontSize="50" Click="ButtonVolumeMinus_Click"/>
<Label x:Name="LabelVolume" Width="580" BorderThickness="1"/>
<Button Background="#FF8BB0FF" x:Name="ButtonVolumePlus" Width="60" Height="120" Content="+" FontSize="50" Click="ButtonVolumePlus_Click"/>
</StackPanel>
<Label x:Name="LabelName" Content="" FontSize="18" HorizontalContentAlignment="Center"></Label>
<StackPanel Orientation="Horizontal">
<Button Background="#FF8BB0FF" x:Name="ButtonFrequenzMinus" Width="60" Height="120" Content="-" FontSize="50" Click="ButtonFrequenzMinus_Click"/>
<Canvas Width="580" x:Name="CanvasFrequenz"></Canvas>
<Button Background="#FF8BB0FF" x:Name="ButtonFrequenzPlus" Width="60" Height="120" Content="+" FontSize="50" Click="ButtonFrequenzPlus_Click"/>
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="0,40,0,0">
<Grid Width="610">
<!--ChatGPT Anfang-->
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<!-- Preset 1 -->
<ColumnDefinition Width="*"/>
<!-- Spacer -->
<ColumnDefinition Width="Auto"/>
<!-- Preset 2 -->
<ColumnDefinition Width="*"/>
<!-- Spacer -->
<ColumnDefinition Width="Auto"/>
<!-- Preset 3 -->
<ColumnDefinition Width="*"/>
<!-- Spacer -->
<ColumnDefinition Width="Auto"/>
<!-- Preset 4 -->
<ColumnDefinition Width="*"/>
<!-- Spacer -->
<ColumnDefinition Width="Auto"/>
<!-- Preset 5 -->
</Grid.ColumnDefinitions>
<!--ChatGPT Ende-->
<RadioButton Background="#FF8BB0FF" x:Name="Preset0" Grid.Column="0" GroupName="Presets" Foreground="red" Content="Preset 1" Margin="10,0,0,0" Checked="RadioButton_Checked"/>
<RadioButton Background="#FF8BB0FF" x:Name="Preset1" Grid.Column="2" GroupName="Presets" Foreground="red" Content="Preset 2" Checked="RadioButton_Checked"/>
<RadioButton Background="#FF8BB0FF" x:Name="Preset2" Grid.Column="4" GroupName="Presets" Foreground="red" Content="Preset 3" Checked="RadioButton_Checked"/>
<RadioButton Background="#FF8BB0FF" x:Name="Preset3" Grid.Column="6" GroupName="Presets" Foreground="red" Content="Preset 4" Checked="RadioButton_Checked"/>
<RadioButton Background="#FF8BB0FF" x:Name="Preset4" Grid.Column="8" GroupName="Presets" Foreground="red" Content="Preset 5" Margin="0,0,10,0" Checked="RadioButton_Checked"/>
</Grid>
<StackPanel Orientation="Horizontal">
<Button Background="#FF8BB0FF" x:Name="ButtonSave" Content="Save" Width="40" Click="ButtonSave_Click"/>
<Button Background="#FF8BB0FF" x:Name="ButtonLoad" Content="Load" Width="40" Click="ButtonLoad_Click"/>
</StackPanel>
</StackPanel>
</StackPanel>
</Grid>
</Window>