Select to view content in your preferred language

Name/value grid in MapTips not resizable?

569
1
09-26-2012 01:43 PM
Ravichandran_M_Kaushika
Regular Contributor
dear Readers,

thank you for taking the time to read through this question.

http://resources.arcgis.com/en/help/silverlight-api/samples/start.htm#MapTipWidget

i am using this link and i have been able to get the data to display in a maptip declared in code-behind.  i am seeing the pertinet information from a feature layer.  i was trying to see whether i could resizxe the grid inside the map tip to make it more readable.  i had to scroll from left to right due to the width of the contents to examine the contents.

so i thought my maptip width was not enough and i made it 300 and i found that the grid did not expand at all. I had the same size as before and the maptip panel looked large with a constant width grid of name value pairs.

is there a way to re-size the grid in the maptip?

regards
ravi.
0 Kudos
1 Reply
DominiqueBroux
Esri Frequent Contributor
The change the width when the maptip is expanded, you have to style the maptip control.
In Blend, right click the control, create a copy of the Template.

In the maptip style, change the width value in the storyboard. Something like:

<VisualState x:Name="Expanded">
    <Storyboard>
        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="MapTipData" Storyboard.TargetProperty="Height">
            <SplineDoubleKeyFrame KeyTime="00:00:00.5" Value="150" KeySpline="0.3,0 0,1" />
        </DoubleAnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="MapTipData" Storyboard.TargetProperty="Width">
            <SplineDoubleKeyFrame KeyTime="00:00:00.5" Value="300" KeySpline="0.3,0 0,1" />
        </DoubleAnimationUsingKeyFrames>
    </Storyboard>
</VisualState>
0 Kudos