Newer
Older
Correlator / PipeGallery / View / MainView.xaml
<UserControl
    x:Class="PipeGallery.View.MainView"
    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"
    d:DesignHeight="300"
    d:DesignWidth="300"
    mc:Ignorable="d">
    <Grid>
        <Border x:Name="bdrMain" />
        <Grid
            Width="1366"
            Height="36"
            VerticalAlignment="Top">

            <TextBlock
                Name="txtTime"
                Width="auto"
                Height="auto"
                Margin="10,0,0,0"
                HorizontalAlignment="Center"
                VerticalAlignment="Center"
                FontSize="18"
                Foreground="White"
                Text="{Binding CurrentTime}" />
            <TextBlock
                Margin="70,0"
                HorizontalAlignment="Right"
                VerticalAlignment="Center"
                FontSize="18"
                Foreground="White"
                Text="{Binding Battery, StringFormat=\{0\}%}"
                TextAlignment="Right" />
            <StackPanel
                Margin="10,0"
                HorizontalAlignment="Right"
                Orientation="Horizontal">
                <Border
                    Width="48"
                    Height="20"
                    BorderBrush="White"
                    BorderThickness="2"
                    CornerRadius="2">
                    <ProgressBar
                        Margin="1"
                        Background="Transparent"
                        Foreground="White"
                        Value="{Binding Battery}" />
                </Border>
                <Border
                    Width="2"
                    Height="10"
                    BorderBrush="White"
                    BorderThickness="1" />
            </StackPanel>
        </Grid>

        <Border x:Name="bdrPreposition" />
    </Grid>
</UserControl>