Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 2408 → Rev 2409

/MKLiveView/v1.0/Source/GMapCustomMarkers/Circle.xaml
3,6 → 3,6
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Height="300" Width="300" Background="Transparent">
<Grid>
<Ellipse Stroke="Red" Opacity="0.44" StrokeThickness="4" />
<Ellipse x:Name="e" Stroke="Red" Opacity="0.44" StrokeThickness="4" />
</Grid>
</UserControl>
/MKLiveView/v1.0/Source/GMapCustomMarkers/Circle.xaml.cs
20,12 → 20,38
/// </summary>
public partial class Circle : UserControl
{
public Circle()
{
InitializeComponent();
}
public Circle()
{
InitializeComponent();
}
 
public PointLatLng Center;
public PointLatLng Bound;
}
public PointLatLng Center;
public PointLatLng Bound;
public void setColor(string sColor)
{
switch (sColor)
{
case "red":
e.Stroke = new SolidColorBrush(Colors.Red);
break;
case "green":
e.Stroke = new SolidColorBrush(Colors.SpringGreen);
break;
case "blue":
e.Stroke = new SolidColorBrush(Colors.Cyan);
break;
case "yellow":
e.Stroke = new SolidColorBrush(Colors.Yellow);
break;
case "pink":
e.Stroke = new SolidColorBrush(Colors.Magenta);
break;
 
default:
e.Stroke = new SolidColorBrush(Colors.Red);
break;
}
}
}
 
}