Skip to content

Conversation

@acoates-ms
Copy link
Contributor

@acoates-ms acoates-ms commented Aug 22, 2024

Description

Rework how custom components are defined to avoid using inheritance across the dll boundary.
Also added basic support for hosting ContentIslands within RNW. -- This requires using the experimental versions of WinAppSDK to work though.
 

Why

cppwinrt does not support open composition across dll boundaries.

What

Essentially all overridable methods have become either events, or settable delegates.

Microsoft Reviewers: Open in CodeFlow

@acoates-ms acoates-ms requested review from a team as code owners August 22, 2024 22:30
// in Microsoft.ui.xaml.controls.dll.
auto playgroundApp{winrt::make<winrt::Playground::implementation::App>()};
#endif
// auto playgroundApp{winrt::make<winrt::Playground::implementation::App>()};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this temporarily commented out?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It caused a runtime error trying to create the XamlApplication object. I commented this out for now so that I could use USE_EXPERIMENTAL_WINUI3 to verify the content island hosting component.

Someone will have to look into how to properly get Xaml working within a fabric application.

@acoates-ms acoates-ms merged commit fff6d5a into microsoft:main Aug 29, 2024
@acoates-ms acoates-ms deleted the noCompose branch August 29, 2024 20:26
acoates-ms added a commit to acoates-ms/react-native-windows that referenced this pull request Aug 30, 2024
microsoft#13603)

* Rework custom components to not rely on open compose patterns

* Change files

* fix

* fix

* handle non-visual children

* fix

* fix

* Move delegates to builder instead of exposing them directly from the ComponentViews

* fix
acoates-ms added a commit to acoates-ms/react-native-windows that referenced this pull request Aug 30, 2024
microsoft#13603)

* Rework custom components to not rely on open compose patterns

* Change files

* fix

* fix

* handle non-visual children

* fix

* fix

* Move delegates to builder instead of exposing them directly from the ComponentViews

* fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

3 participants