This question is locked. New answers and comments are not allowed.
Hi,
I trying to use the Expander Control in a Pushpin on a map, so that when it is selected, it expands and shows more data.
The following is the DataTemplate that I'm using :
When I click on the pushpin, it shows the expanded data, however when I click on it again, it width does not adjust and stays longer. (See Collapsed State Image). Is there anyway to reduce the width to its initial state size?
Regards,
Mauro
I trying to use the Expander Control in a Pushpin on a map, so that when it is selected, it expands and shows more data.
The following is the DataTemplate that I'm using :
<
maps:Pushpin
Background
=
"{Binding Background}"
Content
=
"{Binding}"
Location
=
"{Binding GeoCoordinate}"
>
<
maps:Pushpin.ContentTemplate
>
<
DataTemplate
>
<
telerikPrimitives:RadExpanderControl
x:Name
=
"ExpanderControl"
AnimatedIndicatorContentTemplate
=
"{x:Null}"
IsExpanded="{Binding IsSelected,
Mode
=
TwoWay
}">
<
telerikPrimitives:RadExpanderControl.ContentTemplate
>
<
DataTemplate
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
Image
Width="{Binding
ElementName
=
ExpanderControl
,
Path
=
DataContext
.ImageDimension}"
Height="{Binding
ElementName
=
ExpanderControl
,
Path
=
DataContext
.ImageDimension}"
DataContext
=
"/Images/PNG/image.home.{0}.png"
Source="{Binding Converter={StaticResource ThemedImageConverter},
ConverterParameter
=
BackgroundCreation
}"
Visibility="{Binding
ElementName
=
ExpanderControl
,
Path
=
IsExpanded
,
Converter={StaticResource BooleanToVisibilityConverter},
ConverterParameter
=
Invert
}" />
<
TextBlock
Style
=
"{StaticResource PhoneTextNormalStyle}"
Text
=
"Home"
TextWrapping
=
"Wrap"
Visibility="{Binding
ElementName
=
ExpanderControl
,
Path
=
IsExpanded
,
Converter={StaticResource BooleanToVisibilityConverter}}" />
</
StackPanel
>
</
DataTemplate
>
</
telerikPrimitives:RadExpanderControl.ContentTemplate
>
<
telerikPrimitives:RadExpanderControl.ExpandableContentTemplate
>
<
DataTemplate
>
<
TextBlock
Style
=
"{StaticResource PhoneTextNormalStyle}"
Text
=
"This is your home"
TextWrapping
=
"Wrap"
Visibility="{Binding
ElementName
=
ExpanderControl
,
Path
=
IsExpanded
,
Converter={StaticResource BooleanToVisibilityConverter}}" />
</
DataTemplate
>
</
telerikPrimitives:RadExpanderControl.ExpandableContentTemplate
>
</
telerikPrimitives:RadExpanderControl
>
</
DataTemplate
>
</
maps:Pushpin.ContentTemplate
>
</
maps:Pushpin
>
When I click on the pushpin, it shows the expanded data, however when I click on it again, it width does not adjust and stays longer. (See Collapsed State Image). Is there anyway to reduce the width to its initial state size?
Regards,
Mauro