Esempio n. 1
0
 internal static void RegisterDefaultRegionAdapterMappings(this RegionAdapterMappings regionAdapterMappings)
 {
     regionAdapterMappings.RegisterMapping <Selector, SelectorRegionAdapter>();
     regionAdapterMappings.RegisterMapping <ItemsControl, ItemsControlRegionAdapter>();
     regionAdapterMappings.RegisterMapping <ContentControl, ContentControlRegionAdapter>();
 }
Esempio n. 2
0
 /// <summary>
 /// Configures the default region adapter mappings to use in the application, in order
 /// to adapt UI controls defined in XAML to use a region and register it automatically.
 /// May be overwritten in a derived class to add specific mappings required by the application.
 /// </summary>
 /// <returns>The <see cref="RegionAdapterMappings"/> instance containing all the mappings.</returns>
 protected virtual void ConfigureRegionAdapterMappings(RegionAdapterMappings regionAdapterMappings)
 => regionAdapterMappings?.RegisterDefaultRegionAdapterMappings();