or
<
Controls:RadRibbonComboBox
x:Name
=
"namesCombo"
>
<
Controls:RadRibbonComboBox.ItemTemplate
>
<
DataTemplate
>
<
Border
Background
=
"Transparent"
>
<
TextBlock
Text
=
"{Binding Name}"
>
<
UserControls:TooltipHelper.Tooltip
>
<
ToolTip
Template
=
"{StaticResource TextToolTipTemplate}"
Content
=
"{Binding Description}"
/>
</
UserControls:TooltipHelper.Tooltip
>
</
TextBlock
>
</
Border
>
</
DataTemplate
>
</
Controls:RadRibbonComboBox.ItemTemplate
>
</
Controls:RadRibbonComboBox
>
private void SetWriteableTemplates(bool isUserAdmin)
{
if (Templates == null) return;
namesCombo.ItemsSource = Templates.Where(t => isUserAdmin || !t.IsSystem).ToList();
namesCombo.SelectedIndex = 0;
}
public
class
TreeItem
{
private
string
title;
private
ObservableCollection<TreeItem> items;
public
string
Title
{
get
{
return
title; }
set
{ title = value; }
}
public
ObservableCollection<TreeItem> Items
{
get
{
return
items; }
set
{ items = value; }
}
public
TreeItem()
{
}
public
TreeItem(
string
ptitle)
{
this
.Title = ptitle;
this
.Items =
new
ObservableCollection<TreeItem>();
}
}
<Grid x:Name="LayoutRoot" Grid.Column="3" Grid.ColumnSpan="2" Grid.Row="0" Margin="5">
<
Canvas
Panel.ZIndex
=
"99"
>
<
telerik:RadExpander
x:Name
=
"radExpander"
IsExpanded
=
"False"
VerticalContentAlignment
=
"Top"
telerik:AnimationManager.IsAnimationEnabled
=
"True"
Canvas.ZIndex
=
"1"
Background
=
"Transparent"
>
<
telerik:RadExpander.Header
>
<
TextBlock
x:Name
=
"expanderCaption"
Text
=
"Header"
/>
</
telerik:RadExpander.Header
>
<
telerik:RadExpander.Content
>
<
Border
BorderBrush
=
"Black"
BorderThickness
=
"1"
Canvas.ZIndex
=
"1"
>
<
Grid
Background
=
"Cornsilk"
>
<
Grid.BitmapEffect
>
<
DropShadowBitmapEffect
/>
</
Grid.BitmapEffect
>
<
Grid.RowDefinitions
>
<
RowDefinition
></
RowDefinition
>
<
RowDefinition
></
RowDefinition
>
<
RowDefinition
></
RowDefinition
>
<
RowDefinition
></
RowDefinition
>
<
RowDefinition
></
RowDefinition
>
</
Grid.RowDefinitions
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
></
ColumnDefinition
>
<
ColumnDefinition
></
ColumnDefinition
>
<
ColumnDefinition
></
ColumnDefinition
>
<
ColumnDefinition
></
ColumnDefinition
>
<
ColumnDefinition
></
ColumnDefinition
>
<
ColumnDefinition
></
ColumnDefinition
>
<
ColumnDefinition
></
ColumnDefinition
>
</
Grid.ColumnDefinitions
>
<
TextBlock
Grid.Row
=
"0"
Grid.Column
=
"0"
>Daily</
TextBlock
>
<
RadioButton
Grid.Row
=
"0"
Grid.Column
=
"1"
Content
=
"90D"
></
RadioButton
>
<
RadioButton
Grid.Row
=
"0"
Grid.Column
=
"2"
Content
=
"6M"
></
RadioButton
>
<
RadioButton
Grid.Row
=
"0"
Grid.Column
=
"3"
Content
=
"1Y"
></
RadioButton
>
<
RadioButton
Grid.Row
=
"0"
Grid.Column
=
"4"
Content
=
"2Y"
></
RadioButton
>
<
RadioButton
Grid.Row
=
"0"
Grid.Column
=
"5"
Content
=
"3Y"
></
RadioButton
>
<
RadioButton
Grid.Row
=
"0"
Grid.Column
=
"6"
Content
=
"5Y"
></
RadioButton
>
<
TextBlock
Grid.Row
=
"2"
Grid.Column
=
"0"
>Monthly</
TextBlock
>
<
RadioButton
Grid.Row
=
"2"
Grid.Column
=
"1"
Content
=
"5Y"
></
RadioButton
>
<
RadioButton
Grid.Row
=
"2"
Grid.Column
=
"2"
Content
=
"10Y"
></
RadioButton
>
<
RadioButton
Grid.Row
=
"2"
Grid.Column
=
"3"
Content
=
"15Y"
></
RadioButton
>
<
RadioButton
Grid.Row
=
"2"
Grid.Column
=
"4"
Content
=
"20Y"
></
RadioButton
>
<
RadioButton
Grid.Row
=
"2"
Grid.Column
=
"5"
Content
=
"25Y"
></
RadioButton
>
<
RadioButton
Grid.Row
=
"2"
Grid.Column
=
"6"
Content
=
"30Y"
></
RadioButton
</
Grid
>
</
Border
>
</
telerik:RadExpander.Content
>
</
telerik:RadExpander
>
</
Canvas
>
</Grid