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

Adding support for DefaultView property #3250

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dansiegel
Copy link
Member

Description of Change

Aligns WPF & Uno Platform API with MAUI. Provides attached property for the default View. This could be an instance, type or name of the view that should be added when the View is initialized.

Bugs Fixed

API Changes

Added:

<ContentControl prism:RegionManager.DefaultView="SomeView" />

@brianlagunas
Copy link
Member

This looks overly complicated to me. WPF already has a RegisterViewWithRegion method. The DefaultView attached property should simply rely on that API. The DefaultView property should accept a Type which is the parameter needed by the RegisterViewWithRegion, or it can accept a string. In the case of a string, we could check the View registry to get the type of the view.

There will be some limitations of it's use depending on the architecture of the modules in the app.

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.

[Enhancement] Add DefaultView Property to WPF/Uno Platform
2 participants