c# - UWP - Dependency property - UIPropertyMetada confusion -


i`m moving project wpf uwp , don't understand how can create dependency property in uwp coercevaluecallback, in wpf

 public static readonly dependencyproperty minimumfrequencyproperty =         dependencyproperty.register("minimumfrequency", typeof(int), typeof(spectrumanalyzer),         new uipropertymetadata(20, onminimumfrequencychanged, oncoerceminimumfrequency)); 

but understood there no coercecallback in uwp. or i`m not right?

coercevaluecallback not supported in uwp.

propertymetadata in uwp lives in windows.ui.xaml namespace , has following constructors:

  • propertymetadata(object)
  • propertymetadata(object, propertychangedcallback)

propertymetadata in wpf lives in system.windows namespace, has 5 constructors. 1 of them coercevaluecallback: propertymetadata(object, propertychangedcallback, coercevaluecallback)


Comments

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -