CSLA.NET 6.0.0
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
Csla.Windows/ConfigurationExtensions.cs
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// <copyright file="WindowsConfigurationExtensions.cs" company="Marimer LLC">
3// Copyright (c) Marimer LLC. All rights reserved.
4// Website: https://cslanet.com
5// </copyright>
6// <summary>Implement extension methods for .NET Core configuration</summary>
7//-----------------------------------------------------------------------
8using System;
9
10namespace Csla.Configuration
11{
15 public static class WindowsConfigurationExtensions
16 {
23 public static CslaOptions AddWindowsForms(this CslaOptions config)
24 {
25 return AddWindowsForms(config, null);
26 }
27
35 public static CslaOptions AddWindowsForms(this CslaOptions config, Action<WindowsFormsOptions> options)
36 {
37 var xamlOptions = new WindowsFormsOptions();
38 options?.Invoke(xamlOptions);
39
40 // use correct mode for raising PropertyChanged events
41 ApplicationContext.PropertyChangedMode = ApplicationContext.PropertyChangedModes.Windows;
42 return config;
43 }
44 }
45
50 {
51
52 }
53}
Configuration options for AddWindowsForms method