In short, is it possible to use a Binding within OnPlatform?
Hi, good morning, I have the following query:
In a ViewModel I have the following properties for a Menu:
Then in the XAML code I need to set a different Icon depending on the platform.
But this does not work, honestly does not specify an Error, only that the object is not referenced.
For this I have created a custom font where the icons are, in Android is already in the specific folder (Assets), also in iOS (Resources).
The device loads the source correctly when they are static, but you would like to do it dynamically, that is, with a Binding.
In XAML this is the common way in which it works:
Also if I use it this way if it works:
As to be static and establish a static property, all this comes from a class where the respective string / identifier of the icon.
This class is located inside the project in a folder called "Class"