Replies: 1 comment 14 replies
-
I think I remember something around changes to type expectations like this. I think you will need to subclass |
Beta Was this translation helpful? Give feedback.
14 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So I was doing this in .Net 7 with NO issues I thought but since moving to .Net 8 I am receiving and error on setting the ToolbarItem IconImageSource. Has anyone tried this and it works or am I doing something wrong? Or is there a better way to switch images by theme now?
Error : Invalid resource type: expected type is ImageSource, actual type is 'AppThemeObject'
<toolkit:AppThemeObject x:Key="MyAddImageSource" Dark="symboladdwhite.png" Light="symboladd.png" />
<ToolbarItem Command="{Binding AddAppointmentCommand}" IconImageSource="{toolkit:AppThemeResource MyAddImageSource}" Text="New" />
Thanks
Beta Was this translation helpful? Give feedback.
All reactions