-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
Pri2doc-enhancementfeedback is about suggested additions/improvements to the article, but customer is not blockedfeedback is about suggested additions/improvements to the article, but customer is not blockedplatform/techuwp/prod
Description
UWP doesn't support the coercion method that WPF did, but there is a pattern the WinUI team uses:
It'd be great to have a concrete C++ and C# example to show how to do this common pattern within the docs, as it's important to do in the property change callback and not the property setter (as per the docs calling out that SetValue/property setter is short-cuted by the XAML parser).
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: cf035b98-e0c9-50c2-45ad-1dd37b4f31b0
- Version Independent ID: 4434d33d-7a43-8181-26f2-414ac194c272
- Content: Custom dependency properties - UWP applications
- Content Source: windows-apps-src/xaml-platform/custom-dependency-properties.md
- Product: uwp
- Technology: platform
- GitHub Login: @jwmsft
- Microsoft Alias: jimwalk
mikernet
Metadata
Metadata
Assignees
Labels
Pri2doc-enhancementfeedback is about suggested additions/improvements to the article, but customer is not blockedfeedback is about suggested additions/improvements to the article, but customer is not blockedplatform/techuwp/prod
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
michael-hawker commentedon Aug 9, 2021
This is a link for more about the
finally
construct used in the C++ code-base of WinUI: https://docs.microsoft.com/cpp/code-quality/c26448Not sure if there's a better way than just setting flag back in C# land... e.g.
@codendone any suggestions for this pattern?
codendone commentedon Aug 12, 2021
I think that is the best pattern I've seen. @MikeHillberg, are you aware of any better patterns?
Merge pull request #3271 from MicrosoftDocs/drewbat/widget-picker-upd…