Hi,
I am using the radmap and placing items onto the information layer using an example you provide. The items are an observable collection of the mapitem class:
Private items As New ObservableCollection(Of MapItem)()
This works well, but how would I get the best view for items created using this method where the items contain only the latitude and lonitude.
Regards,
Joe
<telerik:RadMap x:Name="radMap" DistanceUnit="Mile" ZoomLevel="6" DataContext="{Binding}" >
<telerik:InformationLayer Name="informationLayer">
<telerik:InformationLayer.ItemTemplate>
<DataTemplate>
<Border telerik:MapLayer.Location="{Binding Location}" x:Name="Border" ToolTip="{Binding DateofFix}" DataContext="{Binding}">
<telerik:MapLayer.HotSpot>
<telerik:HotSpot X="0.5" Y="40" XUnits="Fraction" YUnits="InsetPixels" ElementName="path" />
</telerik:MapLayer.HotSpot>
<Grid>
<Path x:Name="path" Stretch="None"
Stroke="{StaticResource MapPushpinStroke}"
StrokeThickness="4"
Data="M12,26.083 L16,26.083 13.916667,32.083 z M14,3 C20.075132,3 25,7.9248676 25,14 25,20.075132 20.075132,25 14,25 7.9248677,25 3,20.075132 3,14 3,7.9248676 7.9248677,3 14,3 z"
Fill="{Binding Background}">
<Path.Effect>
<telerik:IsFullTrust>
<![CDATA[
<DropShadowEffect xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
BlurRadius="7" ShadowDepth="1" />
]]>
</telerik:IsFullTrust>
</Path.Effect>
</Path>
<ContentPresenter Margin="0,40,0,0" Content="{Binding Content}" />
</Grid>
</Border>
</DataTemplate>
</telerik:InformationLayer.ItemTemplate>
</telerik:InformationLayer>
</telerik:RadMap>
Seems like these are all different aspects of the same problem. Where does the form's error message display look, to get the names it includes, and how can I override this so as to use the labels I choose?
<Rad:RadTimeBar.Intervals> <Rad:MonthInterval /> <Rad:DayInterval /> <Rad:HourInterval /> </Rad:RadTimeBar.Intervals>
<Rad:RadTimeBar.Intervals> <Rad:MonthInterval /> <Rad:DayInterval /> <Rad:HourInterval IntervalSpans="1" /> </Rad:RadTimeBar.Intervals>
I am unable to zoom into the 'hourly mode' (see first screenshot). However<Rad:RadTimeBar.Intervals> <Rad:MonthInterval /> <Rad:DayInterval /> <Rad:HourInterval IntervalSpans="1,8" /> </Rad:RadTimeBar.Intervals>
allows me to get into the hourly mode but shows the 8 hour interval (which I don't really want). Am I doing something wrong?
The rest of the xaml ( mPlotsGrid is populated with RadLinearSparklines at runtime):<Rad:RadTimeBar Name="mTimeBar" PeriodStart="{Binding Path=BeginHistory, Mode=TwoWay}" PeriodEnd="{Binding Path=EndHistory, Mode=TwoWay}" VisiblePeriodStart="{Binding Path=BeginView, Mode=TwoWay}" VisiblePeriodEnd="{Binding Path=EndView, Mode=TwoWay}" SelectionStart="{Binding Path=BeginDetail, Mode=TwoWay}" SelectionEnd="{Binding Path=EndDetail, Mode=TwoWay}" IsSnapToIntervalEnabled="True" MinSelectionRange="00:01:00" Margin="5"> <Rad:RadTimeBar.Intervals> <Rad:MonthInterval /> <Rad:WeekInterval /> <Rad:DayInterval /> <Rad:HourInterval IntervalSpans="1,8" /> </Rad:RadTimeBar.Intervals> <Grid x:Name="mPlotsGrid" /> </Rad:RadTimeBar>
<telerik:RadTreeView Height="250" HorizontalAlignment="Left" Margin="18,24,0,0" Name="radTreeView1" VerticalAlignment="Top" Width="150" IsLoadOnDemandEnabled="True" LoadOnDemand="OnLoadOnDemand"/>
cs:
private void OnLoadOnDemand(object sender, Telerik.Windows.RadRoutedEventArgs e)
{
RadTreeViewItem item = e.OriginalSource as RadTreeViewItem;
// Adding child items
RadTreeViewItem product = new RadTreeViewItem();
product.Header =
"Product1.1";
item.Items.Add(product);
product =
new RadTreeViewItem();
product.Header =
"Product1.1";
item.Items.Add(product);
}
<Style TargetType="telerik:RadCalendar" x:Key="CalendarBackStyle"> <Setter Property="Background" Value="{StaticResource NormalToLightBackgroundBrush}" /> </Style> <Style TargetType="telerik:RadClock" x:Key="ClockBackStyle"> <Setter Property="Background" Value="{StaticResource NormalToLightBackgroundBrush}" /> </Style> <Style TargetType="telerik:RadDateTimePicker"> <Setter Property="CalendarStyle" Value="{StaticResource CalendarBackStyle}" /> <Setter Property="ClockStyle" Value="{StaticResource ClockBackStyle}" /> </Style> <!--Overwrite Resources, didn't work--><telerik:RadDateTimePicker> <telerik:RadDateTimePicker.Resources> <Style TargetType="telerik:RadDropDownButton"> <Setter Property="Background" Value="Lime" /> </Style> </telerik:RadDateTimePicker.Resources></telerik:RadDateTimePicker><!--This works but doesn't help because all borders are styled--><telerik:RadDateTimePicker> <telerik:RadDateTimePicker.Resources> <Style TargetType="Border"> <Setter Property="Background" Value="Lime" /> </Style> </telerik:RadDateTimePicker.Resources></telerik:RadDateTimePicker>
Dim p As New RadPanep.Content = New SomeUserControlpaneGroup.AddItem(p, Docking.DockPosition.Center)