You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
2.5 KiB
53 lines
2.5 KiB
<Window x:Class="RobotClientWpf.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:RobotClientWpf"
|
|
xmlns:views="clr-namespace:RobotClientWpf.Views"
|
|
mc:Ignorable="d" FontSize="15"
|
|
Title="Challenge UI" Height="700" Width="1200" WindowStartupLocation="CenterScreen" ResizeMode="NoResize">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="40"/>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="30"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<StackPanel Grid.Row="0" Orientation="Horizontal" Margin="5">
|
|
<Label HorizontalAlignment="Center">MQTT Broker IP: </Label>
|
|
<TextBox x:Name="tbIp" Width="120" Height="25" FontSize="15" TextAlignment="Left" Margin="10 0 0 0">192.168.156.156</TextBox>
|
|
<Button x:Name="btnConnectDisconnect" Content="Connect" Width="100" Margin="20 0 0 0" Click="btnConnectDisconnect_Click"></Button>
|
|
</StackPanel>
|
|
|
|
<TabControl Grid.Row="1" x:Name="tabControlMain">
|
|
<TabControl.ItemContainerStyle>
|
|
<Style TargetType="{x:Type TabItem}">
|
|
<Setter Property="Header" Value="{Binding Header}" />
|
|
</Style>
|
|
</TabControl.ItemContainerStyle>
|
|
<TabItem>
|
|
<TabItem.Header>
|
|
<StackPanel Orientation="Horizontal">
|
|
<Image Source="/Assets/robot-industrial.png" Height="18" />
|
|
<TextBlock Text=" Main" Foreground="Green" FontSize="16" />
|
|
</StackPanel>
|
|
</TabItem.Header>
|
|
<views:MainView/>
|
|
</TabItem>
|
|
<TabItem>
|
|
<TabItem.Header>
|
|
<StackPanel Orientation="Horizontal">
|
|
<Image Source="/Assets/cog.png" Height="18" />
|
|
<TextBlock Text=" Config" Foreground="Blue" FontSize="16"/>
|
|
</StackPanel>
|
|
</TabItem.Header>
|
|
<views:ConfigView/>
|
|
</TabItem>
|
|
</TabControl>
|
|
|
|
<StackPanel Grid.Row="2" Orientation="Horizontal">
|
|
<TextBlock x:Name="tbBottomMessage" FontSize="15" Margin="10 5"/>
|
|
</StackPanel>
|
|
</Grid>
|
|
</Window>
|
|
|