The code below is what i am using, however it appears that the MinimumResolution is not being pulled from my map service...so the IsInScaleRange isn't working.<esri:Legend.LayerTemplate> <DataTemplate> <StackPanel Orientation="Horizontal"> <ToolTipService.ToolTip> <StackPanel MaxWidth="400"> <TextBlock FontWeight="Bold" Text="{Binding Layer.ID}" TextWrapping="Wrap" /> <TextBlock FontWeight="Bold" Text="{Binding Label}" TextWrapping="Wrap" /> <TextBlock Text="{Binding Description}" TextWrapping="Wrap" /> <TextBlock Text="{Binding SubLayerID, StringFormat='SubLayer ID : {0}'}" /> <TextBlock Text="{Binding MinimumResolution, StringFormat='Minimum Resolution : {0:F6}'}" /> <TextBlock Text="{Binding MaximumResolution, StringFormat='Maximum Resolution : {0:F6}'}" /> </StackPanel> </ToolTipService.ToolTip> <CheckBox IsChecked="{Binding IsEnabled, Mode=TwoWay}" IsEnabled="{Binding IsInScaleRange}" /> <TextBlock Text=":::" VerticalAlignment="Center"/> <TextBlock Text="{Binding Label}" VerticalAlignment="Center"/> </StackPanel> </DataTemplate> </esri:Legend.LayerTemplate>
<esri:Legend.LayerTemplate> <DataTemplate> <StackPanel Orientation="Horizontal"> <ToolTipService.ToolTip> <StackPanel MaxWidth="400"> <TextBlock FontWeight="Bold" Text="{Binding Layer.ID}" TextWrapping="Wrap" /> <TextBlock FontWeight="Bold" Text="{Binding Label}" TextWrapping="Wrap" /> <TextBlock Text="{Binding Description}" TextWrapping="Wrap" /> <TextBlock Text="{Binding SubLayerID, StringFormat='SubLayer ID : {0}'}" /> <TextBlock Text="{Binding MinimumResolution, StringFormat='Minimum Resolution : {0:F6}'}" /> <TextBlock Text="{Binding MaximumResolution, StringFormat='Maximum Resolution : {0:F6}'}" /> </StackPanel> </ToolTipService.ToolTip> <CheckBox IsChecked="{Binding IsEnabled, Mode=TwoWay}" IsEnabled="{Binding IsInScaleRange}" /> <TextBlock Text=":::" VerticalAlignment="Center"/> <TextBlock Text="{Binding Label}" VerticalAlignment="Center"/> </StackPanel> </DataTemplate> </esri:Legend.LayerTemplate>
<CheckBox Content="{Binding Label}" IsChecked="{Binding IsEnabled, Mode=TwoWay}" IsEnabled="{Binding IsInScaleRange}" > </CheckBox>
<CheckBox Content="{Binding Label}" IsChecked="{Binding IsEnabled, Mode=TwoWay}" </CheckBox>
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.