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

Add sample/tests for FrameworkElementExtensions.Ancestor/Type #105

Merged
merged 5 commits into from
Jul 11, 2023

Conversation

michael-hawker
Copy link
Member

@michael-hawker michael-hawker commented Jun 26, 2023

Adds a new sample for this extension, works on UWP and WASDK. Didn't test WASM yet.

Maybe should try adding a test too...

Not sure if any other info should be provided here, thoughts @Arlodotexe? These could be good things to start shoring up or finishing the docs/sample migration of.

Also fixes #106
Adds tests for #107

Supersedes CommunityToolkit/WindowsCommunityToolkit#4322

…Extensions.RelativeAncestor to FrameworkElement over DependencyObject

Code scoped to FrameworkElement in callback, so doesn't work with just DependencyObject as-is.
@michael-hawker
Copy link
Member Author

Should investigate fixing CommunityToolkit/WindowsCommunityToolkit#4322
and #107

@michael-hawker
Copy link
Member Author

Added basic test case, going to look at testing unloading scenario and see what happens.

Thinking to fix the memory reference though may need the WeakEventListener, but that's in the helpers package... 🤔 Don't really want to pull reference just for that. I guess before they were in the same package so it'd be easier...

@michael-hawker michael-hawker linked an issue Jun 29, 2023 that may be closed by this pull request
2 tasks
@michael-hawker michael-hawker marked this pull request as ready for review June 29, 2023 23:41
@michael-hawker michael-hawker changed the title Add sample for FrameworkElementExtensions.Ancestor/Type Add sample/tests for FrameworkElementExtensions.Ancestor/Type Jun 29, 2023
@michael-hawker
Copy link
Member Author

Added more tests here, couldn't replicate the original problem in #107, but can add the Unload behavior. @SamChaps any concerns here?

@michael-hawker
Copy link
Member Author

Hmm, failed at Failed Test_RichSuggestBox_AddTokens which was untouched, so not sure what happened... rerunning tests.

@Arlodotexe Arlodotexe merged commit 3decd11 into main Jul 11, 2023
7 checks passed
@delete-merged-branch delete-merged-branch bot deleted the llama/extensions_sample branch July 11, 2023 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants