-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ContentPresenter.Content is not inheriting its content #5
Comments
@samoteph it depends on thye platform. On iOS and Android, for now, the default style on Uno is using the native controls (e.g. BindableUIButton on iOS), which do not support advanced content. Also, defining an empty named or keyed style does not override the platform's default style, it merges its setters with the platform's style. If you want to create your own button template, take the UWP generic.xaml (C:\Program Files (x86)\Windows Kits\10\DesignTime\CommonConfiguration\Neutral\UAP\10.0.14393.0\Generic\generic.xaml) default button template and customize from there, with a Template setter defined. Let us know if this fixes your problem! |
Thanks for the explanation about the button but in this case I don't understand why ContentControl works and ContentPresenter doesn't |
Make more sense with your updated sample. Yes, we do have one issue with the application of the content property of the ContentPresenter, you have to specify |
My bad ! A problem of git tag to see the complete sample :) |
If I try to redefine the template of a button like this the contentpresenter doesn't work. But with ContentControl it's working !
The text was updated successfully, but these errors were encountered: