or
<
DataTemplate
DataType
=
"model:Line"
>
<
telerik:RadExpander
x:Name
=
"lineExpander"
VerticalAlignment
=
"Center"
Style
=
"{StaticResource LineRadExpanderStyle}"
IsExpanded
=
"True"
DataContext
=
"{Binding}"
telerik:AnimationManager.IsAnimationEnabled
=
"False"
>
<
telerik:RadExpander.Header
>
<
TextBlock
Text
=
"{Binding Name}"
FontSize
=
"14"
/>
</
telerik:RadExpander.Header
>
<
telerik:RadExpander.Content
>
<
telerik:RadDiagram
x:Name
=
"xDiagram"
/>
</
telerik:RadExpander.Content
>
</
telerik:RadExpander
>
</
DataTemplate
>
<
Style
TargetType
=
"telerik:RadTabItem"
x:Key
=
"TabItemStyle1"
>
<
Setter
Property
=
"Background"
Value
=
"Red"
/>
</
Style
>
<
Window
x:Class
=
"telerik_context_menu_taborder.MainWindow"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
Title
=
"MainWindow"
Height
=
"350"
Width
=
"525"
>
<
Grid
>
<
Rectangle
Fill
=
"Black"
Width
=
"100"
Height
=
"50"
>
<
telerik:RadContextMenu.ContextMenu
>
<
telerik:RadContextMenu
KeyboardNavigation.TabNavigation
=
"Cycle"
>
<
Grid
>
<
Grid.RowDefinitions
>
<
RowDefinition
/>
<
RowDefinition
/>
<
RowDefinition
/>
</
Grid.RowDefinitions
>
<
TextBox
Grid.Row
=
"0"
Text
=
"TextBox1"
/>
<
TextBox
Grid.Row
=
"1"
Text
=
"TextBox2"
/>
<
TextBox
Grid.Row
=
"2"
Text
=
"TextBox3"
/>
</
Grid
>
</
telerik:RadContextMenu
>
</
telerik:RadContextMenu.ContextMenu
>
</
Rectangle
>
</
Grid
>
</
Window
>
<
Window
x:Class
=
"RadMapPerf.MainWindow"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
Title
=
"MainWindow"
Height
=
"600"
Width
=
"800"
>
<
Grid
>
<
telerik:RadMap
x:Name
=
"RadMap"
Center
=
"38.8993487,-77.0145665"
UseDefaultLayout
=
"False"
ZoomLevel
=
"7"
>
<
telerik:RadMap.Provider
>
<
telerik:OpenStreetMapProvider
IsTileCachingEnabled
=
"True"
/>
</
telerik:RadMap.Provider
>
</
telerik:RadMap
>
</
Grid
>
</
Window
>
public
partial
class
MainWindow : Window
{
private
readonly
List<
string
> _memory =
new
List<
string
>();
public
MainWindow()
{
InitializeComponent();
// fake memory usage
for
(var i = 0; i < 100000000; i++)
_memory.Add(
"memory_usage"
);
}
}