This question is locked. New answers and comments are not allowed.
I have a strange issue ... when I do this:
the line stretchs...
yet doing this
it doesnt ...
strange isn't ?
<
telerikPrimitives:RadDataBoundListBox.ItemTemplate
>
<
DataTemplate
>
<
Grid
Background
=
"{Binding BackgroundResource, Converter={StaticResource ColorToBrushConverter}}"
Height
=
"96"
Margin
=
"12"
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"96"
></
ColumnDefinition
>
<
ColumnDefinition
></
ColumnDefinition
>
</
Grid.ColumnDefinitions
>
<
Image
Source
=
"{Binding BackgroundResource, Converter={StaticResource IconConverter}}"
Width
=
"48"
Height
=
"48"
></
Image
>
<
TextBlock
Text
=
"{Binding Title}"
Grid.Column
=
"1"
Style
=
"{StaticResource PhoneTextNormalStyle}"
VerticalAlignment
=
"Center"
/>
</
Grid
>
</
DataTemplate
>
</
telerikPrimitives:RadDataBoundListBox.ItemTemplate
>
<
telerikPrimitives:RadDataBoundListBox.ItemContainerStyle
>
<
Style
TargetType
=
"telerikPrimitives:RadDataBoundListBoxItem"
>
<
Setter
Property
=
"HorizontalContentAlignment"
Value
=
"Stretch"
/>
</
Style
>
</
telerikPrimitives:RadDataBoundListBox.ItemContainerStyle
>
</
telerikPrimitives:RadDataBoundListBox
>
the line stretchs...
yet doing this
<
telerikPrimitives:RadDataBoundListBox.ItemTemplate
>
<
DataTemplate
>
<
code:MainMenuTemplateSelector
Content
=
"{Binding}"
>
<
code:MainMenuTemplateSelector.Area
>
<
DataTemplate
>
<
Grid
Background
=
"{Binding BackgroundResource, Converter={StaticResource ColorToBrushConverter}}"
Height
=
"96"
Margin
=
"12"
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"96"
></
ColumnDefinition
>
<
ColumnDefinition
></
ColumnDefinition
>
</
Grid.ColumnDefinitions
>
<
Image
Source
=
"{Binding BackgroundResource, Converter={StaticResource IconConverter}}"
Width
=
"48"
Height
=
"48"
></
Image
>
<
TextBlock
Text
=
"{Binding Title}"
Grid.Column
=
"1"
Style
=
"{StaticResource PhoneTextNormalStyle}"
VerticalAlignment
=
"Center"
/>
</
Grid
>
</
DataTemplate
>
</
code:MainMenuTemplateSelector.Area
>
<
code:MainMenuTemplateSelector.Family
>
<
DataTemplate
>
<
Border
BorderThickness
=
"2"
BorderBrush
=
"{Binding BackgroundResource, Converter={StaticResource ColorToBrushConverter}}"
Height
=
"96"
Margin
=
"12"
>
<
TextBlock
Foreground
=
"{Binding BackgroundResource, Converter={StaticResource ColorToBrushConverter}}"
Text
=
"{Binding Title}"
Grid.Column
=
"1"
Style
=
"{StaticResource PhoneTextNormalStyle}"
VerticalAlignment
=
"Center"
/>
</
Border
>
</
DataTemplate
>
</
code:MainMenuTemplateSelector.Family
>
<
code:MainMenuTemplateSelector.SubFamily
>
<
DataTemplate
>
<
Grid
Background
=
"{Binding BackgroundResource, Converter={StaticResource ColorToBrushConverter}}"
Height
=
"96"
Margin
=
"12"
>
<
TextBlock
Text
=
"{Binding Title}"
Grid.Column
=
"1"
Style
=
"{StaticResource PhoneTextNormalStyle}"
VerticalAlignment
=
"Center"
/>
</
Grid
>
</
DataTemplate
>
</
code:MainMenuTemplateSelector.SubFamily
>
</
code:MainMenuTemplateSelector
>
</
DataTemplate
>
</
telerikPrimitives:RadDataBoundListBox.ItemTemplate
>
<
telerikPrimitives:RadDataBoundListBox.ItemContainerStyle
>
<
Style
TargetType
=
"telerikPrimitives:RadDataBoundListBoxItem"
>
<
Setter
Property
=
"HorizontalContentAlignment"
Value
=
"Stretch"
/>
</
Style
>
</
telerikPrimitives:RadDataBoundListBox.ItemContainerStyle
>
</
telerikPrimitives:RadDataBoundListBox
>
it doesnt ...
strange isn't ?