Hi All,
I add radTab by code and found here how to define radTab header template.
Because I just want to add header caption, I created template in seperate dll and try to bind with viewmodel,
however no lock. Though I moved style into view's xaml ,still failed. See attached image.
xaml is as follows;
I borrowed RdaTabControlStyle here, how to add transition effect in RadTabControl, and ItemContainerStyle too.
ItemContainerStyle is ;
I'm sure that binded viewmodel has a ViewCaption property and value assigned correct.
Pls shed some light to me what is wrong.
Thank you in advance.
Kang
I add radTab by code and found here how to define radTab header template.
Because I just want to add header caption, I created template in seperate dll and try to bind with viewmodel,
however no lock. Though I moved style into view's xaml ,still failed. See attached image.
xaml is as follows;
<
telerik:RadTabControl
x:Name
=
"editArea"
Grid.Column
=
"2"
prism:RegionManager.RegionName
=
"BasicEditRegion"
Style
=
"{StaticResource RadTabControlStyle}"
ItemContainerStyle="{StaticResource
RadTabHeaderStyle}"
DropDownDisplayMode
=
"WhenNeeded"
/>
I borrowed RdaTabControlStyle here, how to add transition effect in RadTabControl, and ItemContainerStyle too.
ItemContainerStyle is ;
<
Style
x:Key
=
"RadTabHeaderStyle"
TargetType
=
"telerik:RadTabItem"
>
<
Setter
Property
=
"HeaderTemplate"
>
<
Setter.Value
>
<
DataTemplate
>
<
Grid
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"*"
/>
<
ColumnDefinition
Width
=
"Auto"
/>
</
Grid.ColumnDefinitions
>
<
TextBlock
Text
=
"{Binding Path=ViewCaption}"
/>
<
telerik:RadButton
Grid.Column
=
"1"
Content
=
"X"
Width
=
"16"
Height
=
"20"
HorizontalAlignment
=
"Center"
VerticalAlignment
=
"Center"
IsBackgroundVisible
=
"False"
/>
<!--example:RoutedEventHelper.EnableRoutedClick="True"-->
</
Grid
>
</
DataTemplate
>
</
Setter.Value
>
</
Setter
>
</
Style
>
I'm sure that binded viewmodel has a ViewCaption property and value assigned correct.
Pls shed some light to me what is wrong.
Thank you in advance.
Kang