lundi 17 octobre 2016

How to get the name of the Content Property in UWP?

I've tried with

public string GetContentProperty(Type type)
{
     var contentPropertyAttribute = type.GetTypeInfo().GetCustomAttribute<ContentPropertyAttribute>();
     return contentPropertyAttribute?.Name;
}

But it always returns null.

In WPF it works OK.





Aucun commentaire:

Enregistrer un commentaire