or
const string message = "We're sorry, an error has occurred. Please report this to your support representative.";var errorTextBox = new TextBox{ IsReadOnly = true, Text = exception.ToString(), TextWrapping = TextWrapping.Wrap, TextAlignment = TextAlignment.Left, VerticalContentAlignment = VerticalAlignment.Top, MaxWidth = 360, Height = 150};errorTextBox.MouseDoubleClick += delegate { errorTextBox.SelectAll(); };var panel = new StackPanel();panel.Children.Add(new TextBlock { Text = message, Padding = new Thickness(0, 0, 0, 12), TextWrapping = TextWrapping.Wrap });panel.Children.Add(new RadExpander { Content = errorTextBox, Header = "Details..." });var dialogParameters = new DialogParameters{ Owner = owner, Header = "An error has occurred", Content = new ContentControl { MaxWidth = 400, MinHeight = 80, Content = panel }, Opened = (sender, e) => ((ContentControl)sender).Focus()};RadWindow.Alert(dialogParameters);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>