Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ViewSwitcherStateView.cs
1using System;
2using System.ComponentModel;
3using Microsoft.Maui.Controls;
4
6{
7 [ContentProperty(nameof(Content))]
8 public partial class ViewSwitcherStateView : ContentView
9 {
10 public static readonly BindableProperty StateKeyProperty = BindableProperty.Create(
11 nameof(StateKey),
12 typeof(string),
14 default(string),
15 defaultValueCreator: _ => string.Empty);
16
17 public static readonly BindableProperty ViewTypeProperty = BindableProperty.Create(
18 nameof(ViewType),
19 typeof(Type),
21 default(Type));
22
23 public static readonly BindableProperty ViewModelTypeProperty = BindableProperty.Create(
24 nameof(ViewModelType),
25 typeof(Type),
27 default(Type));
28
29 public string StateKey
30 {
31 get => (string)this.GetValue(StateKeyProperty);
32 set => this.SetValue(StateKeyProperty, value);
33 }
34
35 public new View? Content
36 {
37 get => base.Content;
38 set => base.Content = value;
39 }
40
41 [TypeConverter(typeof(TypeTypeConverter))]
42 public Type? ViewType
43 {
44 get => (Type?)this.GetValue(ViewTypeProperty);
45 set => this.SetValue(ViewTypeProperty, value);
46 }
47
48 [TypeConverter(typeof(TypeTypeConverter))]
49 public Type? ViewModelType
50 {
51 get => (Type?)this.GetValue(ViewModelTypeProperty);
52 set => this.SetValue(ViewModelTypeProperty, value);
53 }
54 }
55}
Definition: ImplTypes.g.cs:58