or
1.
1.
private
void
panelBar1_Selected(
object
sender, Telerik.Windows.RadRoutedEventArgs e)RadPanelBarItem container = e.Source
as
RadPanelBarItem;
var textBlocksCollection = container.ChildrenOfType<TextBlock>();
var testmessage = container.ToString();
MessageBox.Show(testmessage);
// RadPanelBarItem pbBarItem = e.Source as RadPanelBarItem;
//TextBlock Name = pbBarItem.ChildrenOfType<TextBlock>();
//MessageBox.Show(Name.Text);
MessageBox.Show(textBlocksCollection.Count().ToString() + " text blocks found");<br> }
<
UserControl
x:Class
=
"Controls.FormTabs"
xmlns:telerikNavigation
=
"clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"
>
<
Grid
x:Name
=
"LayoutRoot"
Background
=
"White"
>
<
telerikNavigation:RadPanelBar
x:Name
=
"rpbMain"
>
</
telerikNavigation:RadPanelBar
>
</
Grid
>
</
UserControl
>
CategoryViewModel vm =
new
CategoryViewModel(c.DataObject.idCategory);
categoryDetailControl.LayoutRoot.DataContext = vm;
<
UserControl
x:Class
=
"CTI2.Client.Silverlight.Controls.CategoryDetail"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
xmlns:viewModels
=
"clr-namespace:CTI2.Client.Silverlight.ViewModels"
xmlns:local
=
"clr-namespace:CTI2.Client.Silverlight.Controls"
mc:Ignorable
=
"d"
d:DesignHeight
=
"300"
d:DesignWidth
=
"800"
>
<
Grid
x:Name
=
"LayoutRoot"
Background
=
"White"
>
<
telerik:RadPanelBar
ExpandMode
=
"Multiple"
Orientation
=
"Vertical"
ScrollViewer.HorizontalScrollBarVisibility
=
"Disabled"
VerticalAlignment
=
"Stretch"
VerticalContentAlignment
=
"Stretch"
HorizontalAlignment
=
"Stretch"
HorizontalContentAlignment
=
"Stretch"
>
<
telerik:RadPanelBarItem
Header
=
"Sub-Categorias (Capas agregadoras)"
>
<
TextBlock
Text
=
"Ainda não disponÃvel nesta versão..."
FontWeight
=
"Bold"
FontSize
=
"12"
FontStyle
=
"Italic"
/>
</
telerik:RadPanelBarItem
>
<
telerik:RadPanelBarItem
Header
=
"Titulos na Categoria"
>
<
local:CategorySushi
x:Name
=
"categorySushiControl"
/>
</
telerik:RadPanelBarItem
>
</
telerik:RadPanelBar
>
</
Grid
>
</
UserControl
>