How can I tell for sure what API version I'm using. If I look at the references in my VS project for ESRI.ArcGIS.Client, it says version 2.1.0.446
I'm assuming that the IsOpacityNeeded is a function that will return Visibility.Visible or .Collapsed if it's needed. Right?
But, my main problem is in the Legend_Refreshed section, I get an error for e.LayerItem.Tag saying LayerItemViewModel does not contain a definition for Tag...
I would like to have it availble for only certain feature classes not all of them.
private void Legend_Refreshed(object sender, Legend.RefreshedEventArgs e) { e.LayerItem.Tag= IsOpacityNeeded(e.LayerItem.Layer) ? Visibility.Visible : Viisbility.Collapsed ; }
<Slider Maximum="1" Value="{Binding Layer.Opacity, Mode=TwoWay}" Width="50" VerticalAlignment="Center" Visibility="{Binding Tag}" />
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.