2021-02-24 09:05:11 +01:00
|
|
|
<UserControl x:Class="MassiveKnob.Plugin.SerialDevice.Settings.SerialDeviceSettingsView"
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
xmlns:settings="clr-namespace:MassiveKnob.Plugin.SerialDevice.Settings"
|
|
|
|
mc:Ignorable="d"
|
|
|
|
d:DesignHeight="100" d:DesignWidth="800"
|
|
|
|
d:DataContext="{d:DesignInstance settings:SerialDeviceSettingsViewModel}">
|
|
|
|
<Grid>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
<ColumnDefinition Width="*" />
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="Auto"/>
|
|
|
|
<RowDefinition Height="Auto"/>
|
2021-02-28 11:55:23 +01:00
|
|
|
<RowDefinition Height="Auto"/>
|
2021-02-24 09:05:11 +01:00
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
|
|
<TextBlock Grid.Row="0" Grid.Column="0" Margin="4">Serial port</TextBlock>
|
|
|
|
<ComboBox Grid.Row="0" Grid.Column="1" Margin="4" Width="150" HorizontalAlignment="Left" ItemsSource="{Binding SerialPorts}" SelectedItem="{Binding PortName}" />
|
|
|
|
|
|
|
|
<TextBlock Grid.Row="1" Grid.Column="0" Margin="4">Baud rate</TextBlock>
|
|
|
|
<TextBox Grid.Row="1" Grid.Column="1" Margin="4" Width="150" HorizontalAlignment="Left" Text="{Binding BaudRate}" />
|
2021-02-28 11:55:23 +01:00
|
|
|
|
|
|
|
|
|
|
|
<CheckBox Grid.Row="2" Grid.Column="1" Margin="4" HorizontalAlignment="Left" IsChecked="{Binding DtrEnable}">
|
|
|
|
<TextBlock>Enable DTR (may be required on some Arduino's like Leonardo / Pro Micro)</TextBlock>
|
|
|
|
</CheckBox>
|
2021-02-24 09:05:11 +01:00
|
|
|
</Grid>
|
|
|
|
</UserControl>
|