or
if (this.CanCancelEdit){ CancelEditItem(this.CurrentEditItem);}this.CurrentEditItem = null;rch.Width = 100;
rch.Height = 100;
cvs.Children.Add(rch);
string str = System.Windows.Markup.XamlWriter.Save(cvs);
<ContentPresenter Content="{Binding CurrentContentViewModel}"> <ContentPresenter.Resources> <ResourceDictionary> <DataTemplate DataType="{x:Type local:ContentViewModel}"> <telerik:RadGridView ItemsSource="{Binding Items}" SelectedItem="{Binding SelectedItem}" /> <!--<ListView ItemsSource="{Binding Items}" SelectedItem="{Binding SelectedItem}" />--> </DataTemplate> </ResourceDictionary> </ContentPresenter.Resources> </ContentPresenter>
Alternatively i tried ListView, which behaves as expected.<telerik:InformationLayer x:Name="MyLayer"> <telerik:InformationLayer.Reader> <telerik:SqlGeospatialDataReader x:Name="MyReader" Source="{Binding}" GeospatialPropertyName="RegionGeometry" ToolTipFormat="RegionName"> </telerik:SqlGeospatialDataReader> </telerik:InformationLayer.Reader> <telerik:InformationLayer.ShapeFill> <telerik:MapShapeFill Fill="#50CCFF66" Stroke="Orange" StrokeThickness="3" /> </telerik:InformationLayer.ShapeFill> </telerik:InformationLayer>