first
Hello...
Im using two radtabcontrols..
itemssource ,DisplayMemberPath, ContentTemplate is working but selectedIndex is not working
I tried manything but that was not working...
please help me...
here is my source..
selectedIndex In stroyActtemplate is not working...
<
Grid
>
<
Grid.Resources
>
<
DataTemplate
x:Key
=
"StoryChapterTemplate"
>
<
TextBlock
Text
=
"{Binding Name}"
/>
</
DataTemplate
>
<
DataTemplate
x:Key
=
"StoryActTemplate"
>
<
telerik:RadTabControl
ItemsSource
=
"{Binding TempSubList}"
DisplayMemberPath
=
"Name"
ContentTemplate
=
"{StaticResource StoryChapterTemplate}"
SelectedIndex
=
"{Binding Selected,UpdateSourceTrigger=PropertyChanged,Mode=TwoWay}"
/>
</
DataTemplate
>
</
Grid.Resources
>
<
telerik:RadTabControl
x:Name
=
"tabControl"
ItemsSource
=
"{Binding TempSubList}"
DisplayMemberPath
=
"Name"
ContentTemplate
=
"{StaticResource StoryActTemplate}"
SelectedIndex
=
"{Binding Selected,UpdateSourceTrigger=PropertyChanged,Mode=TwoWay}"
/>
<
Button
Width
=
"30"
Height
=
"30"
VerticalAlignment
=
"Bottom"
HorizontalAlignment
=
"Left"
Click
=
"Button_Click"
>A</
Button
>
<
Button
Width
=
"30"
Height
=
"30"
VerticalAlignment
=
"Bottom"
HorizontalAlignment
=
"Left"
Margin
=
"40,0"
Click
=
"Button_Click_1"
>B</
Button
>
<
Button
Width
=
"30"
Height
=
"30"
VerticalAlignment
=
"Bottom"
HorizontalAlignment
=
"Right"
Click
=
"Button_Click_2"
>C</
Button
>
<
Button
Width
=
"30"
Height
=
"30"
VerticalAlignment
=
"Bottom"
HorizontalAlignment
=
"Right"
Margin
=
"40,0"
Click
=
"Button_Click_3"
>D</
Button
>
</
Grid
>