Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 2387 → Rev 2388

/MKLiveView/v1.0/Source/GMapCustomMarkers/CopterHeadingBlue.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/MKLiveView/v1.0/Source/GMapCustomMarkers/CopterHeadingGreen.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/MKLiveView/v1.0/Source/GMapCustomMarkers/CopterHeadingPink.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/MKLiveView/v1.0/Source/GMapCustomMarkers/CopterHeadingRed.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/MKLiveView/v1.0/Source/GMapCustomMarkers/CopterHeadingYellow.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/MKLiveView/v1.0/Source/GMapCustomMarkers/CustomMarkerCopter.xaml
2,14 → 2,23
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="MKLiveView.GMapCustomMarkers.CustomMarkerCopter"
Height="32.916" Width="112.515" Opacity="10">
Height="55.916" Width="123.182" Opacity="10">
<Grid>
<Image Name="icon" Source="CopterRed.png" HorizontalAlignment="Left" Width="56" Height="36" VerticalAlignment="Top" />
<Label x:Name="lbl" Content="Label" Margin="39,0,0,-0.084" VerticalAlignment="Top" FontSize="10" Height="33" Foreground="White" HorizontalAlignment="Left" Width="73" Padding="0">
<Image Name="icon" Source="CopterRed.png" HorizontalAlignment="Left" Width="56" Height="33" VerticalAlignment="Top" Stretch="UniformToFill" Margin="12,12,0,0" />
<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.RenderTransform>
<TransformGroup>
<ScaleTransform/>
<SkewTransform/>
<RotateTransform x:Name="Rotate" Angle="0"/>
<TranslateTransform/>
</TransformGroup>
</Image.RenderTransform>
</Image>
</Grid>
</UserControl>
/MKLiveView/v1.0/Source/GMapCustomMarkers/CustomMarkerCopter.xaml.cs
76,11 → 76,17
//Popup = null;
//Label = null;
}
public double rotate
{
set { Rotate.Angle = value; }
get { return Rotate.Angle; }
}
 
public void setText(string s)
{
lbl.Content = s;
}
public void setColor(string sColor)
public void setCopterColor(string sColor)
{
switch (sColor)
{
105,6 → 111,31
break;
}
}
public void setHeadingColor(string sColor)
{
switch (sColor)
{
case "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));
break;
case "blue":
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));
break;
case "pink":
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));
break;
}
}
void CustomMarkerCopter_SizeChanged(object sender, SizeChangedEventArgs e)
{
// Marker.Offset = new Point(-e.NewSize.Width / 4, -e.NewSize.Height /2);