Forum General

How to avoid Selected Item object in list-view hitting twice?

Suriya_KalidossSuriya_Kalidoss Member ✭✭✭
edited May 2019 in General

Selected Item Object is hitting twice.How to Resolve it .I'm Using two listview in stack layout both are referring the same object.
<ListView x:Name="listview"ItemsSource="{Binding NewDeviceSessionList}"SelectedItem="{Binding DeviceSession, Mode=TwoWay}">

private DeviceSession _deviceSession; public DeviceSession DeviceSession { get => _deviceSession; set=>SetProperty(ref _deviceSession, value); CallSome(); }private void CallSome(){if(DeviceSession==null) return//codeDeviceSession=null;}


Best Answer


Sign In or Register to comment.