[Enhancement] Make more controls to inherit a ContentControl #55
Replies: 4 comments
-
Slightly related: https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/radiobutton Xamarin.Forms radio button has a Text property, so you can easily use it with no effort. At the same time, you could also put a bit of effort in to use it with images and other content. It would be nice if Xamarin.Forms made the default use cases for these things easier but left things open that it is easy to override and do something more unusual with the control. |
Beta Was this translation helpful? Give feedback.
-
Agreed, and it would also be good for the sake of consistency. What's good with the The XAML parser is smart enough to instantiate a |
Beta Was this translation helpful? Give feedback.
-
Remember Xamarin Forms doesn't have a |
Beta Was this translation helpful? Give feedback.
-
And this is exactly what needs to be changed! |
Beta Was this translation helpful? Give feedback.
-
Currently in XF the
Button
(for example) only has aText
property and it is a pain in butt to make buttons with something else than text in it.In WPF, the
Button
inherits from theContentControl
at some point in the inheritance chain, which makes it much more flexible.Beta Was this translation helpful? Give feedback.
All reactions