THere is alot of references to adding measureaction to the draw tool, but there isn't a single example. When I try what I've written so far, it randomizes between full measure behavior or full draw behavior. Never both. How do I get these tools to work together?
<esri:Toolbar x:Name="MyToolbar" >
<esri:Toolbar.Items>
<esri:ToolbarItemCollection>
<esri:ToolbarItem Text="Add a Polygon">
<esri:ToolbarItem.Content>
<Rectangle Fill="Green" Height="40" Width="40" />
</esri:ToolbarItem.Content>
</esri:ToolbarItem>
</esri:ToolbarItemCollection>
</esri:Toolbar.Items>
</esri:Toolbar>
case 1: // Polygon
MyDrawObject.DrawMode = DrawMode.Polygon;
_activeSymbol = LayoutRoot.Resources["DefaultFillSymbol"] as Symbol;
MyMeasureAction m = new MyMeasureAction();
m.MeasureMode = MeasureAction.Mode.Polygon;
m.AreaUnit = AreaUnit.Acres;
m.DisplayTotals = true;
m.FillSymbol = LayoutRoot.Resources["DefaultFillSymbol"] as FillSymbol;
m.DistanceUnit = DistanceUnit.Feet;
m.Attach(TabletMap);
m.Execute();
break;
Any help would be greatly appreciated.