File tree Expand file tree Collapse file tree
src/SharedXFormCoreLibrary Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313 <Authors >Andreas Reitberger</Authors >
1414 <Copyright >Andreas Reitberger</Copyright >
1515 <Company >Andreas Reitberger</Company >
16- <LangVersion >12 </LangVersion >
16+ <LangVersion >preview </LangVersion >
1717 <PublishReadyToRun >false</PublishReadyToRun >
1818 <GeneratePackageOnBuild >True</GeneratePackageOnBuild >
1919
Original file line number Diff line number Diff line change 11using AndreasReitberger . Shared . XForm . Core . Localization ;
2- using System . Globalization ;
32
43namespace AndreasReitberger . Shared . XForm . Core . Interfaces
54{
65 public interface ILocalizationManager
76 {
87 #region Properties
98 public List < LocalizationInfo > Languages { get ; set ; }
10- public LocalizationInfo CurrentLanguage { get ; set ; }
11- public CultureInfo CurrentCulture { get ; set ; }
9+ public LocalizationInfo ? CurrentLanguage { get ; set ; }
10+ public CultureInfo ? CurrentCulture { get ; set ; }
1211 #endregion
1312
1413 #region Methods
Original file line number Diff line number Diff line change 1- namespace AndreasReitberger . Shared . XForm . Core . Models
1+ using CommunityToolkit . Mvvm . ComponentModel ;
2+
3+ namespace AndreasReitberger . Shared . XForm . Core . Models
24{
3- public class ColorPickerElement
5+ public partial class ColorPickerElement : ObservableObject
46 {
57 #region Properties
6- public string Name { get ; set ; } = string . Empty ;
7- public Color ChipColor { get ; set ; }
8+ [ ObservableProperty ]
9+ public partial string Name { get ; set ; } = string . Empty ;
10+
11+ [ ObservableProperty ]
12+ public partial Color ? ChipColor { get ; set ; }
813 #endregion
914 }
1015}
Original file line number Diff line number Diff line change 11using AndreasReitberger . Shared . XForm . Core . Enums ;
2+ using CommunityToolkit . Mvvm . ComponentModel ;
23
34namespace AndreasReitberger . Shared . XForm . Core . Documentation
45{
5- public class ChangeInfo
6+ public partial class ChangeInfo : ObservableObject
67 {
78 #region Properties
8- public ChangelogType Type { get ; set ; }
9- public string Changelog { get ; set ; } = string . Empty ;
10- public string GlyphIcon { get ; set ; } = string . Empty ;
9+ [ ObservableProperty ]
10+ public partial ChangelogType Type { get ; set ; }
11+
12+ [ ObservableProperty ]
13+ public partial string Changelog { get ; set ; } = string . Empty ;
14+
15+ [ ObservableProperty ]
16+ public partial string GlyphIcon { get ; set ; } = string . Empty ;
1117 #endregion
1218
1319 #region Constructor
Original file line number Diff line number Diff line change 11using AndreasReitberger . Shared . XForm . Core . Enums ;
2+ using CommunityToolkit . Mvvm . ComponentModel ;
23
34namespace AndreasReitberger . Shared . XForm . Core . Documentation
45{
5- public class ChangelogInfo
6+ public partial class ChangelogInfo : ObservableObject
67 {
78 #region Properties
8- public ChangelogType Type { get ; set ; }
9- public string Changelog { get ; set ; } = string . Empty ;
10- public string Version { get ; set ; } = string . Empty ;
11- public string GlyphIcon { get ; set ; } = string . Empty ;
9+ [ ObservableProperty ]
10+ public partial ChangelogType Type { get ; set ; }
11+
12+ [ ObservableProperty ]
13+ public partial string Changelog { get ; set ; } = string . Empty ;
14+
15+ [ ObservableProperty ]
16+ public partial string Version { get ; set ; } = string . Empty ;
17+
18+ [ ObservableProperty ]
19+ public partial string GlyphIcon { get ; set ; } = string . Empty ;
1220 #endregion
1321
1422 #region Constructor
Original file line number Diff line number Diff line change 1- namespace AndreasReitberger . Shared . XForm . Core . Documentation
1+ using CommunityToolkit . Mvvm . ComponentModel ;
2+
3+ namespace AndreasReitberger . Shared . XForm . Core . Documentation
24{
3- public class LibraryInfo
5+ public partial class LibraryInfo : ObservableObject
46 {
57 #region Properties
6- public string Library { get ; set ; }
7- public string LibraryUrl { get ; set ; }
8- public string Description { get ; set ; }
9- public bool StateChanged { get ; set ; }
10- public string License { get ; set ; }
11- public string LicenseUrl { get ; set ; }
8+ [ ObservableProperty ]
9+ public partial string Library { get ; set ; } = string . Empty ;
10+ [ ObservableProperty ]
11+ public partial string LibraryUrl { get ; set ; } = string . Empty ;
12+ [ ObservableProperty ]
13+ public partial string Description { get ; set ; } = string . Empty ;
14+ [ ObservableProperty ]
15+ public partial bool StateChanged { get ; set ; }
16+ [ ObservableProperty ]
17+ public partial string License { get ; set ; } = string . Empty ;
18+ [ ObservableProperty ]
19+ public partial string LicenseUrl { get ; set ; } = string . Empty ;
1220 #endregion
1321
1422 #region Constructor
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ public partial class ProVersionFeature : ObservableObject
66 {
77 #region Propertiers
88 [ ObservableProperty ]
9- string feature = string . Empty ;
9+ public partial string Feature { get ; set ; } = string . Empty ;
1010 #endregion
1111 }
1212}
Original file line number Diff line number Diff line change 1- namespace AndreasReitberger . Shared . XForm . Core . Documentation
1+ using CommunityToolkit . Mvvm . ComponentModel ;
2+
3+ namespace AndreasReitberger . Shared . XForm . Core . Documentation
24{
3- public class ResourceInfo
5+ public partial class ResourceInfo : ObservableObject
46 {
57 #region Properties
6- public string Resource { get ; set ; }
7- public string ResourceUrl { get ; set ; }
8- public string Description { get ; set ; }
8+ [ ObservableProperty ]
9+ public partial string Resource { get ; set ; } = string . Empty ;
10+
11+ [ ObservableProperty ]
12+ public partial string ResourceUrl { get ; set ; } = string . Empty ;
13+
14+ [ ObservableProperty ]
15+ public partial string Description { get ; set ; } = string . Empty ;
916 #endregion
1017
1118 #region Constructor
Original file line number Diff line number Diff line change 11using CommunityToolkit . Mvvm . ComponentModel ;
2- using System ;
32
43namespace AndreasReitberger . Shared . XForm . Core . Documentation
54{
65 public partial class TutorialStep : ObservableObject
76 {
87 #region Properties
98 [ ObservableProperty ]
10- Uri ? image ;
9+ public partial Uri ? Image { get ; set ; }
1110
1211 [ ObservableProperty ]
13- string heading = string . Empty ;
12+ public partial string Heading { get ; set ; } = string . Empty ;
1413
1514 [ ObservableProperty ]
16- string content = string . Empty ;
15+ public partial string Content { get ; set ; } = string . Empty ;
1716
1817 [ ObservableProperty ]
19- int order = 0 ;
18+ public partial int Order { get ; set ; } = 0 ;
2019
2120 [ ObservableProperty ]
22- bool viewed = false ;
21+ public partial bool Viewed { get ; set ; } = false ;
2322
2423 #endregion
2524
Original file line number Diff line number Diff line change 1- using System . Collections . ObjectModel ;
1+ using CommunityToolkit . Mvvm . ComponentModel ;
2+ using System . Collections . ObjectModel ;
23
34namespace AndreasReitberger . Shared . XForm . Core . Documentation
45{
5- public class VersionInfo
6+ public partial class VersionInfo : ObservableObject
67 {
78 #region Properties
8- public string Version { get ; set ; } = string . Empty ;
9- public ObservableCollection < ChangeInfo > Changes { get ; set ; } = new ( ) ;
9+ [ ObservableProperty ]
10+ public partial string Version { get ; set ; } = string . Empty ;
11+
12+ [ ObservableProperty ]
13+ public partial ObservableCollection < ChangeInfo > Changes { get ; set ; } = [ ] ;
1014 #endregion
1115
1216 #region Constructor
You can’t perform that action at this time.
0 commit comments