-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
Icons does not appearing when using Style and Trigger Setter's #85
Comments
I think this should have widespread use: You can use Setter's not only with styles (I just gave styles as an example), but also in triggers - they have the same Setter's. |
Yeah, I know When we setting up a roadmap for v2, there's no request regarding support for multitrigger, triggers or setter support from devs. Therefore we mainly focused on supporting Xaml Markup Extension Across Different Controls. Anyway, this feature request would be great starting point for supporting all Maui triggers and setters. I'd really appreciate, if you share me sample of Xaml that uses Multitrigger, Single trigger and Setters that covers the whole use case. |
Hey, is this fixed in v3.0.0? |
This feature is not part of v3 |
Hello,
|
Of course, this feature is in the banks. I know for on the user facing side, this feature looks somewhat straight forward to implement but we need to go through lots of reflection magic to implement this feature. Of course, this is in the v4 roadmap and most probably this feature is only enough for v4 since it's a major one. I'm consulting some friends at Maui Team and doing this feature on best possible way, therefore I'm really avoiding rushing it. Thanks for understanding and will implement this as soon as possible. |
@kezack I had the same issue and found a workarround : just add the icon name in the setter value. Here is the workarround from your code :
|
That's a great find but with v4 that expected release within next few weeks has official support for styles, triggers and etc.. |
Describe the bug
If the Label.Text property is set from XAML markup - the icons is displayed.
But if the Text property is set from Style.Setter, the icons is not displayed.
To Reproduce

Set Label.Text property in XAML markup:
<Label Text="{mi:MaterialOutlined Icon=ArrowDropUp, IconColor={StaticResource Primary}}" />
result:
use Styles:
result:

Expected behavior
use Styles:
result:

Additional context
API33 Android 13.0
net8.0-android
The text was updated successfully, but these errors were encountered: