<esri:Legend.MapLayerTemplate> <DataTemplate> <StackPanel Orientation="Horizontal"> <CheckBox Content="{Binding Label}" IsChecked="{Binding IsEnabled, Mode=TwoWay}" IsEnabled="{Binding IsInScaleRange}" > </CheckBox> <HyperlinkButton Content="{Binding Label}" TargetName="_new" NavigateUri="http://www.nrcan.gc.ca/"> <ToolTipService.ToolTip> <StackPanel MaxWidth="400"> <TextBlock FontWeight="Bold" Text="Show Metadata - Opens in new window" TextWrapping="Wrap" /> </StackPanel> </ToolTipService.ToolTip> </HyperlinkButton>
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { return value is GraphicsLayer ? Visibility.Visible : Visibility.Collapsed; }
public object Convert(object value, Type targetType, object parameter1, object parameter2, System.Globalization.CultureInfo culture) { // do something using the parameters which would set a visibility variable return visibility //return the value of my variable }
<CheckBox Content="{Binding Label}" IsChecked="{Binding IsEnabled, Mode=TwoWay}" IsEnabled="{Binding IsInScaleRange}" Visibility="{Binding Layer, Converter={StaticResource VisConverter}, ConverterParameter=Layer, ConverterParameter='a string here'} " > </CheckBox>
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.