Closed MBrekhof closed 9 years ago
You can't have any custom functionality deployed magically to the device. All the FormsPlayer receives is XAML and Json. It can't receive your custom base class for your screen.
The way to deal with commands in XAML/WPF/XF properly is to actually data bind the button's Command property to a command on the view model, like this XML and its corresponding view model. You can find lots of examples like that elsewhere.
With command binding in place, it should all just work and you don't need to change your XAML in order to preview it. Also, keep in mind you can push a Json view model too to simulate the different screen states.
Hi, the follwing xaml works but crashes the player. Any hints how to solve this? Removing the Clicked="Button_OnClicked" solves it but then I have no functionality.