Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

IsEnabled in SwitchCell not working?

$
0
0

Hello,

I use a ListView which has a SwitchCell as an ItemTemplate in it. I want to set IsEnabled = "false" but it has no effect on it.

<ListView x:Name ="IndicationFilter" ItemsSource="{Binding IndicationList}">
                <ListView.ItemTemplate>
                    <DataTemplate>
                        <SwitchCell Text="{Binding Name}" On="{Binding Selected, Mode=TwoWay}" IsEnabled="False" OnChanged="FilterChanged"/>
                    </DataTemplate>
                </ListView.ItemTemplate>
  </ListView>

On a normal Switch Element it works and the Button is disabled.


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>