2017-08-22 08:39:49 +02:00
|
|
|
<UserControl x:Class="SafeExamBrowser.UserInterface.Windows10.Controls.DateTimeControl"
|
2017-07-11 15:29:29 +02:00
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
2017-08-22 08:39:49 +02:00
|
|
|
xmlns:local="clr-namespace:SafeExamBrowser.UserInterface.Windows10.Controls"
|
2017-07-11 15:29:29 +02:00
|
|
|
mc:Ignorable="d" d:DesignHeight="40" d:DesignWidth="75">
|
2017-08-15 08:17:37 +02:00
|
|
|
<Button Background="#00000000" BorderThickness="0" ToolTip="{Binding Path=ToolTip}">
|
|
|
|
<Button.Template>
|
|
|
|
<ControlTemplate TargetType="Button">
|
|
|
|
<Border x:Name="ButtonContent" Background="{TemplateBinding Background}">
|
|
|
|
<ContentPresenter ContentSource="Content" />
|
|
|
|
</Border>
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
|
|
<Setter TargetName="ButtonContent" Property="Background" Value="#2AFFFFFF" />
|
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="IsPressed" Value="True">
|
|
|
|
<Setter TargetName="ButtonContent" Property="Background" Value="#2AFFFFFF" />
|
|
|
|
</Trigger>
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Button.Template>
|
|
|
|
<Grid Margin="5,0">
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="1*" />
|
|
|
|
<RowDefinition Height="1*" />
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<TextBlock x:Name="TimeTextBlock" Grid.Row="0" Text="{Binding Path=Time}" Foreground="White" HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
|
|
<TextBlock x:Name="DateTextBlock" Grid.Row="1" Text="{Binding Path=Date}" Foreground="White" HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
|
|
</Grid>
|
|
|
|
</Button>
|
2017-07-11 15:29:29 +02:00
|
|
|
</UserControl>
|