44 lines
2.3 KiB
XML
44 lines
2.3 KiB
XML
<Window x:Class="TradeBlotter.FloatingWindow"
|
|
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"
|
|
mc:Ignorable="d" d:DesignHeight="60" d:DesignWidth="681" Foreground="#FFFFFFFF"
|
|
Title="FloatingWindow" WindowStyle="None" Width="800" Height="40" MinHeight="40" MaxHeight="40" AllowsTransparency="true" ResizeMode="CanResizeWithGrip" MouseLeftButtonDown="wndMouseLeftButtonDown" MouseDoubleClick="wndMouseDoubleClick">
|
|
<Window.Resources>
|
|
<Style TargetType="{x:Type Hyperlink}">
|
|
<Style.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter Property="TextBlock.TextDecorations" Value="Underline" />
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
<Setter Property="Foreground" Value="White" />
|
|
<Setter Property="TextBlock.TextDecorations" Value="{x:Null}" />
|
|
</Style>
|
|
</Window.Resources>
|
|
<Border BorderBrush="WhiteSmoke" BorderThickness="2" CornerRadius="6">
|
|
<Canvas x:Name="LayoutRoot" Background="#303030" >
|
|
<TextBlock HorizontalAlignment="Left" Width="55" Text="{Binding Mode=TwoWay,Path=ItemCount}" TextWrapping="Wrap" FontSize="18" x:Name="ItemCount" Canvas.Top="5" Canvas.Left="30" Panel.ZIndex="51">
|
|
<TextBlock.Foreground>
|
|
<SolidColorBrush Color="WhiteSmoke" Opacity="0.5"/>
|
|
</TextBlock.Foreground>
|
|
</TextBlock>
|
|
<Button Opacity="0.5" Width="16" Height="16" Canvas.Top="9" Panel.ZIndex="52" Canvas.Left="10" Name="TogglePause" Command="{Binding Path=TogglePlayPauseCommand}" Cursor="Hand">
|
|
<Button.Template>
|
|
<ControlTemplate>
|
|
<Image Source="/Resources/pause.png" Stretch="Fill" Name="PART_IMAGE" />
|
|
<ControlTemplate.Triggers>
|
|
<DataTrigger Binding="{Binding Path=IsPaused}" Value="true">
|
|
<Setter Property="Source" Value="/Resources/play.png" TargetName="PART_IMAGE"></Setter>
|
|
</DataTrigger>
|
|
<DataTrigger Binding="{Binding Path=IsPaused}" Value="false">
|
|
<Setter Property="Source" Value="/Resources/pause.png" TargetName="PART_IMAGE"></Setter>
|
|
</DataTrigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Button.Template>
|
|
</Button>
|
|
</Canvas>
|
|
</Border>
|
|
</Window>
|