-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
20 lines (20 loc) · 1.11 KB
/
MainWindow.xaml
File metadata and controls
20 lines (20 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!-- Copyright (c) 2019, Dijji, and released under Ms-PL. This can be found in the root of this distribution.-->
<Window x:Class="InternetOff.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="InternetOff" Height="150" Width="250">
<Window.Resources>
<BooleanToVisibilityConverter x:Key="BoolToVis" />
</Window.Resources>
<Grid Background="{Binding StopGoColour}">
<Grid.RowDefinitions>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Grid.Row="0" Text="{Binding Path=Status}" Background="Transparent" FontWeight="Bold"
HorizontalAlignment="Center" VerticalAlignment="Center"
Visibility="{Binding Path=IsWorking, Converter={StaticResource BoolToVis}}"/>
<Button Grid.Row="1" Content="{Binding Path=Command}" Name="cbOnOff" Width="100" VerticalAlignment="Top"
Click="cbOnOff_Click" IsEnabled="{Binding StatusKnown}"/>
</Grid>
</Window>