Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 2389 → Rev 2390

/MKLiveView/v1.0/Source/GMapCustomMarkers/CustomMarkerCopter.xaml
1,22 → 1,131
<UserControl
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:ed="http://schemas.microsoft.com/expression/2010/drawing"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
x:Class="MKLiveView.GMapCustomMarkers.CustomMarkerCopter"
mc:Ignorable="d"
Height="55.916" Width="123.182" Opacity="10">
<Grid>
<Image Name="icon" Source="CopterRed.png" HorizontalAlignment="Left" Width="56" Height="33" VerticalAlignment="Top" Stretch="UniformToFill" Margin="12,12,0,0" />
<Grid>
<Grid.Effect>
<DropShadowEffect Direction="45" BlurRadius="1" Opacity="0.38"/>
</Grid.Effect>
<ed:Arc x:Name="s1" ArcThickness="20" ArcThicknessUnit="Pixel" EndAngle="360" Fill="#FFFF0074" HorizontalAlignment="Left" Height="4" Margin="11.958,12.25,0,0" Stretch="None" Stroke="Black" StrokeThickness="0" StartAngle="0" VerticalAlignment="Top" Width="4"/>
<ed:Arc x:Name="s2" ArcThickness="20" ArcThicknessUnit="Pixel" EndAngle="360" Fill="#FFFF0074" HorizontalAlignment="Left" Margin="11.958,36.292,0,0" Stretch="None" Stroke="Black" StrokeThickness="0" StartAngle="0" Width="4" Height="4" VerticalAlignment="Top"/>
<ed:Arc x:Name="s3" ArcThickness="20" ArcThicknessUnit="Pixel" EndAngle="360" Fill="#FFFF0074" HorizontalAlignment="Left" Height="4" Margin="36,12,0,0" Stretch="None" Stroke="Black" StrokeThickness="0" StartAngle="0" VerticalAlignment="Top" Width="4"/>
<ed:Arc x:Name="s4" ArcThickness="20" ArcThicknessUnit="Pixel" EndAngle="360" Fill="#FFFF0074" HorizontalAlignment="Left" Margin="36.25,36.292,0,0" Stretch="None" Stroke="Black" StrokeThickness="0" StartAngle="0" Width="4" Height="4" VerticalAlignment="Top"/>
<ed:Arc x:Name="s5" ArcThickness="20" ArcThicknessUnit="Pixel" EndAngle="360" HorizontalAlignment="Left" Height="18.375" Margin="4.899,4.977,0,0" StrokeStartLineCap="Round" Stretch="None" Stroke="#FFFF0074" StartAngle="0" VerticalAlignment="Top" Width="18.5">
<ed:Arc.Effect>
<DropShadowEffect Direction="45"/>
</ed:Arc.Effect>
</ed:Arc>
<ed:Arc x:Name="s7" ArcThickness="20" ArcThicknessUnit="Pixel" EndAngle="360" HorizontalAlignment="Left" Margin="4.899,28.937,0,0" StrokeStartLineCap="Round" Stretch="None" Stroke="#FFFF0074" StartAngle="0" Width="18.5" Height="18.375" VerticalAlignment="Top">
<ed:Arc.Effect>
<DropShadowEffect Direction="45"/>
</ed:Arc.Effect>
</ed:Arc>
<ed:Arc x:Name="s8" ArcThickness="20" ArcThicknessUnit="Pixel" EndAngle="360" HorizontalAlignment="Left" Margin="28.897,28.937,0,0" StrokeStartLineCap="Round" Stretch="None" Stroke="#FFFF0074" StartAngle="0" Width="18.5" Height="18.375" VerticalAlignment="Top">
<ed:Arc.Effect>
<DropShadowEffect Direction="45"/>
</ed:Arc.Effect>
</ed:Arc>
<ed:RegularPolygon x:Name="f1" Fill="#FFFF0074" HorizontalAlignment="Left" InnerRadius="0.26" Margin="8,8,0,0" PointCount="4" Stretch="Fill" Stroke="Black" Width="36" RenderTransformOrigin="0.5,0.5" StrokeThickness="0" StrokeStartLineCap="Round" Height="36" VerticalAlignment="Top">
<ed:RegularPolygon.Effect>
<DropShadowEffect Direction="45"/>
</ed:RegularPolygon.Effect>
<ed:RegularPolygon.RenderTransform>
<TransformGroup>
<ScaleTransform/>
<SkewTransform/>
<RotateTransform Angle="45.403"/>
<TranslateTransform/>
</TransformGroup>
</ed:RegularPolygon.RenderTransform>
</ed:RegularPolygon>
<ed:RegularPolygon x:Name="f2" Fill="#FFFF0074" HorizontalAlignment="Left" InnerRadius="0.8" Margin="17,17,0,0" PointCount="4" Stretch="Fill" Stroke="#FFFF0074" Width="18" RenderTransformOrigin="0.5,0.5" StrokeThickness="0" Height="18" VerticalAlignment="Top">
<ed:RegularPolygon.RenderTransform>
<TransformGroup>
<ScaleTransform/>
<SkewTransform/>
<RotateTransform Angle="45"/>
<TranslateTransform/>
</TransformGroup>
</ed:RegularPolygon.RenderTransform>
</ed:RegularPolygon>
<ed:Arc x:Name="s6" ArcThickness="20" ArcThicknessUnit="Pixel" EndAngle="360" HorizontalAlignment="Left" Height="18.375" Margin="28.897,4.977,0,0" StrokeStartLineCap="Round" Stretch="None" Stroke="#FFFF0074" StartAngle="0" VerticalAlignment="Top" Width="18.5">
<ed:Arc.Effect>
<DropShadowEffect Direction="45"/>
</ed:Arc.Effect>
</ed:Arc>
<Ellipse x:Name="f3" Fill="#FFFF0074" HorizontalAlignment="Left" Height="2" Margin="30,13,0,0" StrokeEndLineCap="Round" Stroke="Black" StrokeThickness="0" VerticalAlignment="Top" Width="16" RenderTransformOrigin="0.5,0.5">
<Ellipse.RenderTransform>
<TransformGroup>
<ScaleTransform/>
<SkewTransform/>
<RotateTransform Angle="46.114"/>
<TranslateTransform/>
</TransformGroup>
</Ellipse.RenderTransform>
</Ellipse>
<Ellipse x:Name="f4" Fill="#FFFF0074" HorizontalAlignment="Left" Height="2" Margin="6,37,0,0" StrokeEndLineCap="Round" Stroke="Black" StrokeThickness="0" VerticalAlignment="Top" Width="16" RenderTransformOrigin="0.5,0.5">
<Ellipse.RenderTransform>
<TransformGroup>
<ScaleTransform/>
<SkewTransform/>
<RotateTransform Angle="46.114"/>
<TranslateTransform/>
</TransformGroup>
</Ellipse.RenderTransform>
</Ellipse>
<Ellipse x:Name="f5" Fill="#FFFF0074" HorizontalAlignment="Left" Height="2" Margin="6,13,0,0" StrokeEndLineCap="Round" Stroke="Black" StrokeThickness="0" VerticalAlignment="Top" Width="16" RenderTransformOrigin="0.5,0.5">
<Ellipse.RenderTransform>
<TransformGroup>
<ScaleTransform/>
<SkewTransform/>
<RotateTransform Angle="-43.724"/>
<TranslateTransform/>
</TransformGroup>
</Ellipse.RenderTransform>
</Ellipse>
<Ellipse x:Name="f6" Fill="#FFFF0074" HorizontalAlignment="Left" Height="2" Margin="30,37,0,0" StrokeEndLineCap="Round" Stroke="Black" StrokeThickness="0" VerticalAlignment="Top" Width="16" RenderTransformOrigin="0.5,0.5">
<Ellipse.RenderTransform>
<TransformGroup>
<ScaleTransform/>
<SkewTransform/>
<RotateTransform Angle="-43.724"/>
<TranslateTransform/>
</TransformGroup>
</Ellipse.RenderTransform>
</Ellipse>
<ed:RegularPolygon x:Name="f7" Fill="#FFFB0072" HorizontalAlignment="Left" Margin="23,2,0,0" PointCount="4" Stretch="Fill" Stroke="#FFFDFDFD" Width="6" RenderTransformOrigin="0.495,1.011" Height="24" VerticalAlignment="Top" StrokeThickness="0">
<ed:RegularPolygon.RenderTransform>
<TransformGroup>
<ScaleTransform/>
<SkewTransform/>
<RotateTransform x:Name="Rotate1" Angle="1"/>
<TranslateTransform/>
</TransformGroup>
</ed:RegularPolygon.RenderTransform>
<ed:RegularPolygon.Effect>
<DropShadowEffect Direction="0" ShadowDepth="0" BlurRadius="4"/>
</ed:RegularPolygon.Effect>
</ed:RegularPolygon>
</Grid>
<Image Name="icon" Source="CopterRed.png" HorizontalAlignment="Left" Width="56" Height="33" VerticalAlignment="Top" Stretch="UniformToFill" Margin="12,12,0,0" Visibility="Hidden" />
<Label x:Name="lbl" Content="Label" Margin="50,8,0,0" VerticalAlignment="Top" FontSize="10" Height="33" Foreground="White" HorizontalAlignment="Left" Width="73" Padding="0">
<Label.Effect>
<DropShadowEffect Direction="45" ShadowDepth="0.5" BlurRadius="2"/>
</Label.Effect>
</Label>
<Image x:Name="heading" Height="15" VerticalAlignment="Top" HorizontalAlignment="Left" Width="10" RenderTransformOrigin="0.467,1.133" Source="CopterHeadingPink.png" Margin="24,11,0,0">
<Image x:Name="heading" Height="21" VerticalAlignment="Top" HorizontalAlignment="Left" Width="13" RenderTransformOrigin="0.5,1" Source="CopterHeadingPink.png" Margin="20,5,0,0" Visibility="Collapsed">
<Image.RenderTransform>
<TransformGroup>
<ScaleTransform/>
<SkewTransform/>
<RotateTransform x:Name="Rotate" Angle="0"/>
<TranslateTransform/>
<RotateTransform x:Name="Rotate" Angle="1"/>
<TranslateTransform X="-0.18" Y="0.84"/>
</TransformGroup>
</Image.RenderTransform>
</Image>
/MKLiveView/v1.0/Source/GMapCustomMarkers/CustomMarkerCopter.xaml.cs
78,8 → 78,8
}
public double rotate
{
set { Rotate.Angle = value; }
get { return Rotate.Angle; }
set { Rotate1.Angle = value; }
get { return Rotate1.Angle; }
}
 
public void setText(string s)
91,23 → 91,35
switch (sColor)
{
case "red":
icon.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterRed.png", System.UriKind.Relative));
s1.Stroke = s2.Stroke = s3.Stroke = s4.Stroke = s5.Stroke = s6.Stroke = s7.Stroke = s8.Stroke =
f1.Fill = f2.Fill = f3.Fill = f4.Fill = f5.Fill = f6.Fill = new SolidColorBrush(Colors.Red);
// icon.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterRed.png", System.UriKind.Relative));
break;
case "green":
icon.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterGreen.png", System.UriKind.Relative));
s1.Stroke = s2.Stroke = s3.Stroke = s4.Stroke = s5.Stroke = s6.Stroke = s7.Stroke = s8.Stroke =
f1.Fill = f2.Fill = f3.Fill = f4.Fill = f5.Fill = f6.Fill = new SolidColorBrush(Colors.SpringGreen);
// icon.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterGreen.png", System.UriKind.Relative));
break;
case "blue":
icon.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterBlue.png", System.UriKind.Relative));
// icon.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterBlue.png", System.UriKind.Relative));
s1.Stroke = s2.Stroke = s3.Stroke = s4.Stroke = s5.Stroke = s6.Stroke = s7.Stroke = s8.Stroke =
f1.Fill = f2.Fill = f3.Fill = f4.Fill = f5.Fill = f6.Fill = new SolidColorBrush(Colors.Cyan);
break;
case "yellow":
icon.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterYellow.png", System.UriKind.Relative));
// icon.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterYellow.png", System.UriKind.Relative));
s1.Stroke = s2.Stroke = s3.Stroke = s4.Stroke = s5.Stroke = s6.Stroke = s7.Stroke = s8.Stroke =
f1.Fill = f2.Fill = f3.Fill = f4.Fill = f5.Fill = f6.Fill = new SolidColorBrush(Colors.Yellow);
break;
case "pink":
icon.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterPink.png", System.UriKind.Relative));
// icon.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterPink.png", System.UriKind.Relative));
s1.Stroke = s2.Stroke = s3.Stroke = s4.Stroke = s5.Stroke = s6.Stroke = s7.Stroke = s8.Stroke =
f1.Fill = f2.Fill = f3.Fill = f4.Fill = f5.Fill = f6.Fill = new SolidColorBrush(Colors.Magenta);
break;
 
default:
icon.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterRed.png", System.UriKind.Relative));
s1.Stroke = s2.Stroke = s3.Stroke = s4.Stroke = s5.Stroke = s6.Stroke = s7.Stroke = s8.Stroke =
f1.Fill = f2.Fill = f3.Fill = f4.Fill = f5.Fill = f6.Fill = new SolidColorBrush(Colors.Red);
// icon.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterRed.png", System.UriKind.Relative));
break;
}
}
116,23 → 128,29
switch (sColor)
{
case "red":
heading.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterHeadingRed.png", System.UriKind.Relative));
f7.Fill = new SolidColorBrush(Colors.Red);
// heading.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterHeadingRed.png", System.UriKind.Relative));
break;
case "green":
heading.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterHeadingGreen.png", System.UriKind.Relative));
f7.Fill = new SolidColorBrush(Colors.SpringGreen);
// heading.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterHeadingGreen.png", System.UriKind.Relative));
break;
case "blue":
heading.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterHeadingBlue.png", System.UriKind.Relative));
f7.Fill = new SolidColorBrush(Colors.Cyan);
// heading.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterHeadingBlue.png", System.UriKind.Relative));
break;
case "yellow":
heading.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterHeadingYellow.png", System.UriKind.Relative));
f7.Fill = new SolidColorBrush(Colors.Yellow);
// heading.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterHeadingYellow.png", System.UriKind.Relative));
break;
case "pink":
heading.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterHeadingPink.png", System.UriKind.Relative));
f7.Fill = new SolidColorBrush(Colors.Magenta);
// heading.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterHeadingPink.png", System.UriKind.Relative));
break;
 
default:
heading.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterHeadingRed.png", System.UriKind.Relative));
f7.Fill = new SolidColorBrush(Colors.Red);
// heading.Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("CopterHeadingRed.png", System.UriKind.Relative));
break;
}
}