or
<
telerik:OrientedTimeRulerItemStyleSelector
x:Key
=
"TimeRulerItemStyleSelector"
MonthViewGroupStyle
=
"{StaticResource timeRulerMonthViewGroupItemStyle}"
>
<
telerik:OrientedTimeRulerItemStyleSelector.MonthViewTickStyle
>
<
Style
TargetType
=
"local:TimeRulerMonthViewItem"
>
<
Setter
Property
=
"Background"
Value
=
"{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content.DateTime.Date, Converter={StaticResource ResourceKey=calendarDateColorConverter}}"
/>
<
Setter
Property
=
"Visibility"
Value
=
"{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content.DateTime.Date, Converter={StaticResource ResourceKey=calendarDateCollapsedConverter}}"
/>
<
Setter
Property
=
"Template"
>
<
Setter.Value
>
<
ControlTemplate
TargetType
=
"local:TimeRulerMonthViewItem"
>
<
Border
Background
=
"{TemplateBinding Background}"
BorderBrush
=
"{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content.DateTime.Date, Converter={StaticResource ResourceKey=currentDateCalendarDateColorConverter}}"
BorderThickness
=
"2"
>
<
Grid
Background
=
"{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content.DateTime.Date, Converter={StaticResource ResourceKey=calendarDateColorConverter}}"
>
<
telerik:RadButton
Padding
=
"0"
VerticalAlignment
=
"Top"
Height
=
"22"
Command
=
"local:RadScheduleViewCommands.SetDayViewMode"
CommandParameter
=
"{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content.DateTime.Date}"
Background
=
"{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content.DateTime.Date, Converter={StaticResource ResourceKey=plainCalendarDateColorConverter}}"
Style
=
"{StaticResource ResourceKey=GoToDayButtonStyle}"
>
<
ContentPresenter
Margin
=
"{TemplateBinding Padding}"
/>
</
telerik:RadButton
>
<
telerik:RadToggleButton
Visibility
=
"{Binding ExpandButtonVisibility}"
IsChecked
=
"{Binding IsExpanded, Mode=TwoWay}"
HorizontalAlignment
=
"Right"
VerticalAlignment
=
"Bottom"
Content
=
"More..."
FontSize
=
"9"
/>
</
Grid
>
</
Border
>
</
ControlTemplate
>
</
Setter.Value
>
</
Setter
>
</
Style
>
</
telerik:OrientedTimeRulerItemStyleSelector.MonthViewTickStyle
>
</
telerik:OrientedTimeRulerItemStyleSelector
>
BingMapProvider provider = new BingMapProvider(MapMode.Road, false, "key");
radMap1.ZoomLevel = 12;
radMap1.Provider = provider;//delay will not occur if I remove this line
radMap1.Center = new Location(24.487987518310547, 54.483178253173828);
<
telerik:RadMap
Name
=
"radMap1"
ZoomLevel
=
"12"
HorizontalAlignment
=
"Stretch"
Margin
=
"0"
VerticalAlignment
=
"Stretch"
MouseDragMode
=
"None"
MouseClickMode
=
"None"
MapMouseClick
=
"radMap_MapMouseClick"
MouseLeftButtonDown
=
"radMap1_MouseLeftButtonDown"
MouseLeftButtonUp
=
"radMap1_MouseLeftButtonUp"
MouseMove
=
"radMap1_MouseMove"
></
telerik:RadMap
>
public
class
Product
{
public
int
ProductID {
get
;
set
;}
public
decimal
Amount {
get
;
set
;}
public
string
ProductName {
get
;
set
;}
}
public
class
Customer
{
public
int
CustomerID {
get
;
set
;}
public
Product CurrentProduct {
get
;
set
;}
public
string
FirstName {
get
;
set
;}
public
string
LastName {
get
;
set
;}
}