or
public
Shell() {
InitializeComponent();
Telerik.Windows.Controls.StyleManager.ApplicationTheme =
new
Telerik.Windows.Controls.Windows7Theme();
}
<
telerik:IndicatorList
>
<
telerik:Needle
x:Name
=
"needleRPM"
Value
=
"{Binding Path=RPM}"
Style
=
"{DynamicResource NeedleStyle1}"
>
<
telerik:Needle.ArrowBackground
>
<
LinearGradientBrush
EndPoint
=
"0,0.5"
StartPoint
=
"1,0.5"
MappingMode
=
"RelativeToBoundingBox"
>
<
GradientStop
Color
=
"#FFFFD25A"
Offset
=
"0.6"
/>
<
GradientStop
Color
=
"#FFFF2222"
Offset
=
"1"
/>
<
GradientStop
Color
=
"#FFFFD25A"
/>
<
GradientStop
Color
=
"Red"
Offset
=
"0.323"
/>
</
LinearGradientBrush
>
</
telerik:Needle.ArrowBackground
>
</
telerik:Needle
>
<
telerik:NumericIndicator
x:Name
=
"Speed"
Panel.ZIndex
=
"-1000"
CornerRadius
=
"10"
Top
=
"0.17"
Left
=
"0.33"
RelativeHeight
=
"0.35"
RelativeWidth
=
"0.7"
TemplatePrefix
=
"HexagonalSevenSegs"
Foreground
=
"{Binding BigGaugeScaleColor}"
Background
=
"{x:Null}"
Format
=
"{}{0:F0}"
Value
=
"{Binding Path=Speed}"
>
<
telerik:NumberPosition
CornerRadius
=
"25"
Margin
=
"1,3,0,3"
Background
=
"{x:Null}"
/>
<
telerik:NumberPosition
CornerRadius
=
"25"
Margin
=
"1,3"
Background
=
"{x:Null}"
/>
<
telerik:NumberPosition
CornerRadius
=
"25"
Margin
=
"1,3,0,3"
Background
=
"{x:Null}"
/>
</
telerik:NumericIndicator
>
<
telerik:RadialBar
x:Name
=
"radialBar"
UseRangeColor
=
"True"
RangeColorMode
=
"Default"
Value
=
"0"
VerticalAlignment
=
"Top"
/>
</
telerik:IndicatorList
>
poiInformationLayer.DataMappings.Add(new DataMapping("Location", DataMember.Location));
//Bind POI collection to the poi layer.
Binding binding = new Binding();
binding.Source = poiCollection;
this.poiInformationLayer.SetBinding(ItemsControl.ItemsSourceProperty, binding);
public class PointOfInterest
{
private Location _location;
private ZoomRange _zoomRange;
private double _baseZoomLevel;
private string _title;
private string _imageUri;
private string _description;
public Location Location
{
get
{
return _location;
}
set
{
_location = value;
}
}
public ZoomRange ZoomRange
{
get
{
return _zoomRange;
}
set
{
_zoomRange = value;
}
}
public double BaseZoomLevel
{
get
{
return _baseZoomLevel;
}
set
{
_baseZoomLevel = value;
}
}
public string Title
{
get
{
return _title;
}
set
{
_title = value;
}
}
public string ImageUri
{
get
{
return _imageUri;
}
set
{
_imageUri = value;
}
}
public string Description
{
get
{
return _description;
}
set
{
_description = value;
}
}
}
public class POICollection : ObservableCollection<
PointOfInterest
>
{
public POICollection()
{
}
}
<
RadSplitContainer
>
<
Items
>
<
RadPaneGroup
SerializationTag
=
"DocumentGroup"
SelectedIndex
=
"-1"
>
<
Items
/>
</
RadPaneGroup
>
</
Items
>
</
RadSplitContainer
>
<
RadSplitContainer
InitialPosition
=
"FloatingOnly"
FloatingWidth
=
"737"
FloatingHeight
=
"515"
FloatingX
=
"1769"
FloatingY
=
"467"
IsInOpenWindow
=
"True"
WindowZIndex
=
"1"
RelativeWidth
=
"100"
RelativeHeight
=
"100"
IsAutoGenerated
=
"True"
>
<
Items
>
<
RadPaneGroup
RelativeWidth
=
"100"
RelativeHeight
=
"100"
IsAutoGenerated
=
"True"
SelectedIndex
=
"0"
>
<
Items
>
<
RadDocumentPane
SerializationTag
=
"DocumentPane"
IsDockable
=
"False"
Title
=
"Documents"
Header
=
"Documents"
CanUserClose
=
"False"
/>
</
Items
>
</
RadPaneGroup
>
</
Items
>
</
RadSplitContainer
>