<Style x:Key="legendStyleName" TargetType="esri:Legend"> <Setter Property="LayerItemsMode" Value="Tree" /> <Setter Property="MapLayerTemplate"> <Setter.Value> <DataTemplate>...........
How could I just change the color for the triangle when it's in an expanded state?
<!--<CheckBox IsChecked="{Binding IsEnabled, Mode=TwoWay}" IsEnabled="{Binding IsInScaleRange}" VerticalAlignment="Center"/>--> <!--<TextBlock Text="{Binding Label}" VerticalAlignment="Center" />--> <Button VerticalAlignment="Center"> <TextBlock Text="{Binding Label}" /> <i:Interaction.Triggers> <i:EventTrigger EventName="Click" > <local:ShowLayerInfoAction/> </i:EventTrigger> </i:Interaction.Triggers> </Button>
protected override void Invoke(object parameter) { try { var livm = this.AssociatedObject.DataContext as LayerItemViewModel; var dynLayer = livm.Layer as ArcGISDynamicMapServiceLayer; Debug.WriteLine("IsEnable before " + livm.IsEnabled.ToString()); livm.IsEnabled = !livm.IsEnabled; Debug.WriteLine("IsEnable after " + livm.IsEnabled.ToString()); //string url = String.Format("{0}/{1}",dynLayer.Url,livm.SubLayerID); //HtmlPage.Window.Navigate(new Uri(url), "_blank"); } catch (Exception ex) { Debug.WriteLine(ex.Message); } }
OK, never mind, I now see this isn't expected to work for single fused cache layers.
Seems like Esri should choose a different mapservice for this demo app, instead of this one ...
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.