Skip to content
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

Bug title #148

Open
buzzbonner opened this issue Mar 28, 2024 · 2 comments
Open

Bug title #148

buzzbonner opened this issue Mar 28, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@buzzbonner
Copy link

Describe the bug

I'm tring to change the icon at runtime, but it's not working?

Steps to reproduce the bug

  1. Change the binding in MainPage.xaml to -> IconSource="{Binding TaskbarIcon}"
  2. Update MainPage.cs to support new property -> public ImageSource TaskbarIcon { get; set; } = ImageSource.FromFile("test.icon");
  3. Change the TaskbarIcon property at runtime

Expected behavior

See the TaskbarIcon change based on the property value

Screenshots

No response

NuGet package version

2.0.124

Platform

No response

IDE

No response

Windows Version

Windows 10

WindowsAppSDK Version

No response

WindowsAppSDK Type

None

Manifest

No response

Additional context

This is happening in Maui when using Windows only.

@buzzbonner buzzbonner added the bug Something isn't working label Mar 28, 2024
@HavenDV
Copy link
Owner

HavenDV commented Mar 30, 2024

The first thing you need to do is make sure that you send an INotifyPropertyChanged with the name of that property when it changes. This can be either using the [ObservableProperty] attribute for CommunityToolkit.Mvvm, or manually for classes that implement INotifyPropertyChanged

@buzzbonner
Copy link
Author

buzzbonner commented Mar 30, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants