-
Notifications
You must be signed in to change notification settings - Fork 3
/
MainWindow.xaml
33 lines (33 loc) · 1.22 KB
/
MainWindow.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<Window x:Class="MediaSensor.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:MediaSensor"
mc:Ignorable="d"
Title="Media sensor"
Width="260"
SizeToContent="Height"
ResizeMode="CanMinimize"
>
<DockPanel Margin="15" LastChildFill="False">
<Button x:Name="OverrideButton"
Margin="5 0 0 0"
DockPanel.Dock="Right"
Width="60"
Padding="4 1" Click="OnOverrideButtonClick">
Toggle
</Button>
<StackPanel>
<TextBlock x:Name="OverridingText"
Margin="0 0 0 8">
Switch: Auto
</TextBlock>
<TextBlock x:Name="StatusText"
TextWrapping="Wrap"
ToolTip="{Binding Path=Text, ElementName=StatusText}">
Initializing...
</TextBlock>
</StackPanel>
</DockPanel>
</Window>