mirror of
https://github.com/hawkeye-stan/msfs-popout-panel-manager.git
synced 2024-11-25 15:20:10 +00:00
67 lines
2.4 KiB
Text
67 lines
2.4 KiB
Text
|
<Window
|
||
|
x:Class="MSFSPopoutPanelManager.MainApp.AppWindow.PanelCoorOverlay"
|
||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||
|
xmlns:c="clr-namespace:CalcBinding;assembly=CalcBinding"
|
||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||
|
xmlns:viewModel="clr-namespace:MSFSPopoutPanelManager.MainApp.ViewModel"
|
||
|
Title="PanelCoorOverlay"
|
||
|
Width="30"
|
||
|
Height="30"
|
||
|
AllowsTransparency="True"
|
||
|
Background="#01F0F0FF"
|
||
|
Loaded="Window_Loaded"
|
||
|
MouseMove="Window_MouseMove"
|
||
|
ResizeMode="NoResize"
|
||
|
SizeToContent="WidthAndHeight"
|
||
|
WindowStyle="None"
|
||
|
mc:Ignorable="d">
|
||
|
<Canvas
|
||
|
Width="30"
|
||
|
Height="30"
|
||
|
d:DataContext="{d:DesignInstance viewModel:PanelCoorOverlayViewModel}"
|
||
|
PreviewMouseDown="Canvas_PreviewMouseDown"
|
||
|
ToolTip="{Binding Panel.PanelName}">
|
||
|
<Grid>
|
||
|
<Ellipse
|
||
|
x:Name="OverlayCircle"
|
||
|
Width="28"
|
||
|
Height="28"
|
||
|
Fill="Transparent"
|
||
|
StrokeThickness="6" />
|
||
|
<Ellipse
|
||
|
x:Name="OverlayBlinkingCircle"
|
||
|
Width="30"
|
||
|
Height="30"
|
||
|
Fill="Transparent"
|
||
|
Stroke="Black"
|
||
|
StrokeThickness="7"
|
||
|
Visibility="{c:Binding Panel.IsShownPanelSource}">
|
||
|
<Ellipse.Triggers>
|
||
|
<EventTrigger RoutedEvent="Ellipse.Loaded">
|
||
|
<BeginStoryboard>
|
||
|
<Storyboard>
|
||
|
<DoubleAnimation
|
||
|
AutoReverse="True"
|
||
|
RepeatBehavior="Forever"
|
||
|
Storyboard.TargetProperty="Opacity"
|
||
|
From="0"
|
||
|
To="1"
|
||
|
Duration="0:0:0.4" />
|
||
|
</Storyboard>
|
||
|
</BeginStoryboard>
|
||
|
</EventTrigger>
|
||
|
</Ellipse.Triggers>
|
||
|
</Ellipse>
|
||
|
<Ellipse
|
||
|
x:Name="OverlayCircleBorder"
|
||
|
Width="30"
|
||
|
Height="30"
|
||
|
Fill="Transparent"
|
||
|
Opacity="0.5"
|
||
|
Stroke="White" />
|
||
|
</Grid>
|
||
|
</Canvas>
|
||
|
</Window>
|