Two way binding on time picker infinite loop

  • Thread starter Thread starter GrayFox.NZ
  • Start date Start date
G

GrayFox.NZ

Guest
Hi,


I am binding a timespan to a time picker control on my UWP app. It seems to get stuck in this infinite loops where it keeps setting and getting the property. Im not sure what could be causing this? Here is how I have it setup


<TimePicker
x:Name="TimePicker"
Time="{x:Bind ViewModel.Current.EndTime,Mode=TwoWay}"></TimePicker>


And here is my property in code


public TimeSpan EndTime
{
get
{
return _endTime;
}
set
{
_endTime = value;
NotifyPropertyChanged();
}
}




GrayFox Where not just tools of the government!

Continue reading...
 
Back
Top