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

Suriya_KalidossSuriya_Kalidoss Member ✭✭✭
edited May 8 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;}

Tagged:

Best Answer

Answers

Sign In or Register to comment.