Custom Drawable objects in xeto/xaml #2529
-
Hi, I've tried to make a CustomButton from @cwensley 's gist somewhere in here as an attempt to jump into custom Drawables, but I couldn't find any examples on how to do this in Eto/xaml. When I try to reference it with the eto.serialization xeto methods. In my xaml I did make a namespace reference to "e" and refered in the code as <e:CustomButton x:name="MyButton"> and in my xeto.cs file I have a protected CustomButton MyButton {get;set;} I'm getting the following exception at runtime. CustomButton cannot be cast to CustomButton. Any clues? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Solved This was a general xaml mistake in my setup;
and also changed my xeto.cs class to be |
Beta Was this translation helpful? Give feedback.
Solved
This was a general xaml mistake in my setup;
I changed order of the xaml main (dialog) element to reference the xmlns before referring to my own class:
and also changed my xeto.cs class to be
partial
.