2024-05-18 09:58:41 -03:00
|
|
|
<UserControl x:Class="CtrEditor.ObjetosSim.ucDescarte"
|
|
|
|
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"
|
|
|
|
xmlns:local="clr-namespace:CtrEditor.ObjetosSim"
|
|
|
|
mc:Ignorable="d"
|
2024-05-22 14:21:39 -03:00
|
|
|
xmlns:vm="clr-namespace:CtrEditor.ObjetosSim"
|
2024-05-18 09:58:41 -03:00
|
|
|
xmlns:convert="clr-namespace:CtrEditor.Convertidores">
|
|
|
|
<UserControl.Resources>
|
|
|
|
<convert:MeterToPixelConverter x:Key="MeterToPixelConverter"/>
|
|
|
|
<Storyboard x:Key="PulsingStoryboard" RepeatBehavior="Forever">
|
|
|
|
<DoubleAnimation
|
2024-05-18 10:35:46 -03:00
|
|
|
Storyboard.TargetName="AnimatedEllipse"
|
2024-05-18 09:58:41 -03:00
|
|
|
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)"
|
|
|
|
From="1" To="0.5" Duration="0:0:1" AutoReverse="True" />
|
|
|
|
<DoubleAnimation
|
2024-05-18 10:35:46 -03:00
|
|
|
Storyboard.TargetName="AnimatedEllipse"
|
2024-05-18 09:58:41 -03:00
|
|
|
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)"
|
|
|
|
From="1" To="0.5" Duration="0:0:1" AutoReverse="True" />
|
|
|
|
</Storyboard>
|
|
|
|
</UserControl.Resources>
|
|
|
|
|
2024-05-22 14:21:39 -03:00
|
|
|
<UserControl.DataContext>
|
|
|
|
<vm:osDescarte/>
|
|
|
|
</UserControl.DataContext>
|
|
|
|
|
2024-05-18 09:58:41 -03:00
|
|
|
<Grid>
|
2024-05-18 10:35:46 -03:00
|
|
|
<Ellipse
|
|
|
|
Height="{Binding Diametro, Converter={StaticResource MeterToPixelConverter}}"
|
|
|
|
Width="{Binding Diametro, Converter={StaticResource MeterToPixelConverter}}"
|
|
|
|
Stroke="Yellow"
|
|
|
|
Fill="Black"
|
|
|
|
Opacity="0.5"/>
|
|
|
|
<Ellipse x:Name="AnimatedEllipse"
|
2024-05-18 09:58:41 -03:00
|
|
|
Height="{Binding Diametro, Converter={StaticResource MeterToPixelConverter}}"
|
2024-05-18 10:35:46 -03:00
|
|
|
Width="{Binding Diametro, Converter={StaticResource MeterToPixelConverter}}"
|
|
|
|
Stroke="Blue"
|
|
|
|
Fill="Transparent"
|
|
|
|
RenderTransformOrigin="0.5,0.5">
|
2024-05-18 09:58:41 -03:00
|
|
|
<Ellipse.RenderTransform>
|
|
|
|
<TransformGroup>
|
|
|
|
<ScaleTransform />
|
|
|
|
</TransformGroup>
|
|
|
|
</Ellipse.RenderTransform>
|
|
|
|
</Ellipse>
|
|
|
|
</Grid>
|
|
|
|
</UserControl>
|