We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Microsoft removed the CommandManager in UWP.
MvvmScarletToolkit/src/MvvmScarletToolkit.Implementations/ScarletCommandManager.cs
Line 10 in 216c0b9
The current implementation relies on CommandManager. The fix is pretty easy, since you already abstracted it away behind an IScarletCommandManager
Something like this COULD do the job(needs re-evaluation by somebody more experienced than me):
public sealed class UwpScarletCommandManager : IScarletCommandManager { private static readonly Lazy<UwpScarletCommandManager > _default = new Lazy<ScarletCommandManager>(() => new UwpScarletCommandManager ()); public static IScarletCommandManager Default { get; } = _default.Value; public event EventHandler RequerySuggested { get; set; } public void InvalidateRequerySuggested() { CanExecuteChanged?.Invoke(this, EventArgs.Empty); } }
This solution is basically from this stackoverflow thread: https://stackoverflow.com/questions/12030697/what-replaces-commandmanager-in-winrt
The text was updated successfully, but these errors were encountered:
I've come up with this based on your link and little of my own googling. Gonna test it somewhen and add it to the repo after that.
public sealed class UwpScarletCommandManager : IScarletCommandManager { private static readonly Lazy<UwpScarletCommandManager> _default = new Lazy<UwpScarletCommandManager>(() => new UwpScarletCommandManager()); public static IScarletCommandManager Default { get; } = _default.Value; public event EventHandler? RequerySuggested; public void InvalidateRequerySuggested() { RequerySuggested?.Invoke(this, EventArgs.Empty); } }
Sorry, something went wrong.
Will test this in my app too, gonna add it here if i notice a rough edge or something
Insire
No branches or pull requests
Microsoft removed the CommandManager in UWP.
MvvmScarletToolkit/src/MvvmScarletToolkit.Implementations/ScarletCommandManager.cs
Line 10 in 216c0b9
The current implementation relies on CommandManager. The fix is pretty easy, since you already abstracted it away behind an IScarletCommandManager
Something like this COULD do the job(needs re-evaluation by somebody more experienced than me):
This solution is basically from this stackoverflow thread: https://stackoverflow.com/questions/12030697/what-replaces-commandmanager-in-winrt
The text was updated successfully, but these errors were encountered: