Skip to content

Project Windows.Foundation.EventHandler and fix ICommand event compile break#112

Merged
jkoritzinsky merged 2 commits intomasterfrom
jkoritzinsky/event-handler
Apr 1, 2020
Merged

Project Windows.Foundation.EventHandler and fix ICommand event compile break#112
jkoritzinsky merged 2 commits intomasterfrom
jkoritzinsky/event-handler

Conversation

@jkoritzinsky
Copy link
Member

@jkoritzinsky jkoritzinsky commented Apr 1, 2020

Map Windows.Foundation.EventHandler<T> to System.EventHandler<TEventArgs>.

Manually override the type of the CanExecuteChanged event handler when emitted by cswinrt to match ICommand's definition. Map MUX.Input.ICommand to System.Windows.Input.ICommand as well since that's something we'll have to do anyway. Since the IIDs always match, this is an easy 2-to-1 mapping to implement.

Fixes #111

Project MUX.Input.ICommand to System.Windows.Input.ICommand as well. Since WUX.I.ICommand and MUX.I.ICommand share the same IID, this should work seamlessly.
@jkoritzinsky jkoritzinsky requested a review from Scottj1s April 1, 2020 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ICommand support build break in WinUITest

2 participants