about after using measure behavior, the graph can't stay in the map

7941
24
09-28-2010 12:05 PM
DanDong
New Contributor
Hi,

I want to ask a question about how to make the polygon stay in the map after using the measure function. I mean I use the measure function to measure the distance of each side of a polygon(measuremode="polygon"), but when I double click the last vertex, the polygon disappear?? I want to keep this polygon. What should I add in the xmal file and cs file? Thank you very much!
0 Kudos
24 Replies
SrihariManepalli
New Contributor II

This approach worked for me! Thanks

0 Kudos
PatrickBrooke
New Contributor II
Can you help please, why this decision doesn't work for myMeasureAction.MeasureMode = MeasureAction.Mode.Radius? Procedure Graphics_CollectionChanged is never started...



I am sorry. I have not programmed in Silverlight in over 2 years now and I am afraid that I have forgotten how I solved this issue, I am now working in a 1 man shop so no time to develop any more. Sorry about that. I hope another person who was helped by this can help.
0 Kudos
BrandonCales
New Contributor III
I haven't figured that out either...but I am working it it again now in 10.1
0 Kudos
VenkatRK
New Contributor
Is there any possibility to change the line segment color to any other color instead of "Black"? I have tried to get the full name of the graphic's type and assigning the Text Symbol, created in the xaml, however, I am failed to generate it.

Could anyone please help me out. Actually, I have to change the segment lengths color to "Red" color instead of "Black" with graphics enabled once the measure task is done.

Thanks & Regards,
Venkat
0 Kudos
MonaBrisco
New Contributor III

This is a very old post but in case some else needs...change color similar manner as this...

                                        <i:Interaction.Triggers>

                                            <i:EventTrigger EventName="Click">

                                                <esri:MeasureAction AreaUnit="SquareFeet" DisplayTotals="True" DistanceUnit="Feet"                                                                      MapUnits="Meters"

                                                                    TargetName="myMap"

                                                                    MeasureMode="Polyline" FillSymbol="{StaticResource defaultFillSymbol}"/>

                                            </i:EventTrigger>

                                        </i:Interaction.Triggers>

   <UserControl.Resources>

        <esri:SimpleFillSymbol x:Key="DefaultFillSymbol" Fill="#33FF0000" BorderBrush="Red" BorderThickness="2" />

   </UserControl.Resources>

0 Kudos