45 lines
2.3 KiB
XML
45 lines
2.3 KiB
XML
<Window x:Class="charger_gui.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:charger_gui"
|
|
mc:Ignorable="d"
|
|
Title="MainWindow" Height="450" Width="800">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="30"/>
|
|
<RowDefinition Height="3*"/>
|
|
</Grid.RowDefinitions>
|
|
<TextBlock Grid.Row="0" Grid.Column="0" Text="Select Port" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" FontSize="20"/>
|
|
<ComboBox Name="Ports" Grid.Row="0" Grid.Column="1" ItemsSource="{Binding Path=Ports}" SelectionChanged="Ports_SelectionChanged"/>
|
|
<Ellipse Width="30" Height="30" Grid.Column="2" Grid.Row="0" Fill="{Binding Path=ConnectionStatus,Mode=OneWay,UpdateSourceTrigger=PropertyChanged}" />
|
|
<Grid Grid.Row="1" Grid.Column="0">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="30"/>
|
|
<RowDefinition Height="30"/>
|
|
<RowDefinition Height="30"/>
|
|
<RowDefinition Height="30"/>
|
|
</Grid.RowDefinitions>
|
|
<TextBlock Grid.Row="0" Grid.Column="0" FontSize="20" Text="I_acc"/>
|
|
<TextBlock Grid.Row="0" Grid.Column="1" FontSize="20" Text="{Binding Path=IAcc,Mode=OneWay,UpdateSourceTrigger=PropertyChanged}" />
|
|
<TextBlock Grid.Row="1" Grid.Column="0" FontSize="20" Text="U_acc"/>
|
|
<TextBlock Grid.Row="1" Grid.Column="1" FontSize="20" Text="{Binding Path=UAcc,Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" />
|
|
<TextBlock Grid.Row="2" Grid.Column="0" FontSize="20" Text="I_lamp"/>
|
|
<TextBlock Grid.Row="2" Grid.Column="1" FontSize="20" Text="{Binding Path=ILamp,Mode=OneWay,UpdateSourceTrigger=PropertyChanged}" />
|
|
<TextBlock Grid.Row="3" Grid.Column="0" FontSize="20" Text="U_lamp"/>
|
|
<TextBlock Grid.Row="3" Grid.Column="1" FontSize="20" Text="{Binding Path=ULamp,Mode=OneWay,UpdateSourceTrigger=PropertyChanged}" />
|
|
</Grid>
|
|
</Grid>
|
|
</Window>
|