PrismLibrary / Prism.Maui

This is an experimental repo. The code here will eventually be merged into the main Prism repo as a full fledged platform at which time this repo will be archived.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add DefaultView property for RegionManager

dansiegel opened this issue · comments

Description

Currently the RegionManager has a method RegisterViewWithRegion. This can be called in code to define any default views that should be populated in a Region with a given Name. There is however no current way to do this in XAML.

<ContentView prism:RegionManager.RegionName="MyRegion"
             prism:RegionManager.DefaultView="ViewA" />