parent
8c2edd69ff
commit
9489e977b3
Binary file not shown.
Binary file not shown.
@ -0,0 +1,14 @@
|
||||
<UserControl xmlns="https://github.com/avaloniaui"
|
||||
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"
|
||||
mc:Ignorable="d" d:DesignWidth="500" d:DesignHeight="450"
|
||||
x:Class="UserInterface.Views.BackgroundServiceSettings">
|
||||
<StackPanel Margin="30" HorizontalAlignment="Left">
|
||||
<ContentControl FontSize="18" FontWeight="Bold">Background service</ContentControl>
|
||||
<TextBlock IsVisible="{Binding IsRunning}" Foreground="Green" Text="{Binding Message}"></TextBlock >
|
||||
<TextBlock IsVisible="{Binding !IsRunning}" Foreground="Red" Text="{Binding Message}"></TextBlock >
|
||||
|
||||
<Button Width="75" HorizontalAlignment="Right" Margin="0 40 0 10" Click="Start">Start</Button>
|
||||
</StackPanel>
|
||||
</UserControl>
|
@ -0,0 +1,19 @@
|
||||
<UserControl xmlns="https://github.com/avaloniaui"
|
||||
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"
|
||||
mc:Ignorable="d" d:DesignWidth="500" d:DesignHeight="450"
|
||||
x:Class="UserInterface.Views.BrokerSettings">
|
||||
<StackPanel Margin="30" HorizontalAlignment="Left">
|
||||
<ContentControl FontSize="18" FontWeight="Bold">Mqtt broker</ContentControl>
|
||||
<TextBlock IsVisible="{Binding IsConnected}" Foreground="Green" Text="{Binding Message}"></TextBlock >
|
||||
<TextBlock IsVisible="{Binding !IsConnected}" Foreground="Red" Text="{Binding Message}"></TextBlock >
|
||||
<ContentControl Margin="0 20 0 10">IP or hostname</ContentControl>
|
||||
<TextBox Text="{Binding Host}" HorizontalAlignment="Left" Width="100" Watermark="192.168.1.200"/>
|
||||
<ContentControl Margin="0 20 0 10">Username</ContentControl>
|
||||
<TextBox Text="{Binding Username}" MinWidth="150"/>
|
||||
<ContentControl Margin="0 20 0 10">Password</ContentControl>
|
||||
<TextBox Text="{Binding Password}" MinWidth="150" PasswordChar="•"/>
|
||||
<Button Width="75" HorizontalAlignment="Right" Margin="0 40 0 10" Click="Configure">Save</Button>
|
||||
</StackPanel>
|
||||
</UserControl>
|
Loading…
Reference in new issue