File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed
Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ namespace CommunityToolkit.Maui.Markup.Sample;
55[ RequiresUnreferencedCode ( "SettingsViewModel Calls CommunityToolkit.Maui.Behaviors.NumericValidationBehavior.NumericValidationBehavior()" ) ]
66partial class AppShell : Shell
77{
8- static readonly ReadOnlyDictionary < Type , string > pageRouteMappingDictionary = new Dictionary < Type , string > (
8+ static readonly ReadOnlyDictionary < Type , string > pageRouteMappingDictionary = new Dictionary < Type , string > (
99 [
1010 CreateRoutePageMapping < NewsPage , NewsViewModel > ( ) ,
1111 CreateRoutePageMapping < SettingsPage , SettingsViewModel > ( ) ,
@@ -22,7 +22,7 @@ public static string GetRoute<TPage, TViewModel>() where TPage : BaseContentPage
2222 {
2323 return GetRoute ( typeof ( TPage ) ) ;
2424 }
25-
25+
2626 public static string GetRoute ( Type type )
2727 {
2828 if ( ! pageRouteMappingDictionary . TryGetValue ( type , out var route ) )
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ namespace CommunityToolkit.Maui.Markup.Sample.Pages;
55
66sealed partial class SettingsPage : BaseContentPage < SettingsViewModel >
77{
8- [ RequiresUnreferencedCode ( "Calls CommunityToolkit.Maui.Behaviors.NumericValidationBehavior.NumericValidationBehavior()" ) ]
9- public SettingsPage ( SettingsViewModel settingsViewModel ) : base ( settingsViewModel , "Settings" )
8+ [ RequiresUnreferencedCode ( "Calls CommunityToolkit.Maui.Behaviors.NumericValidationBehavior.NumericValidationBehavior()" ) ]
9+ public SettingsPage ( SettingsViewModel settingsViewModel ) : base ( settingsViewModel , "Settings" )
1010 {
1111 Content = new AbsoluteLayout
1212 {
Original file line number Diff line number Diff line change @@ -6,5 +6,5 @@ namespace CommunityToolkit.Maui.Markup.Sample;
66[ RequiresUnreferencedCode ( "SettingsViewModel Calls CommunityToolkit.Maui.Behaviors.NumericValidationBehavior.NumericValidationBehavior()" ) ]
77public class AppDelegate : MauiUIApplicationDelegate
88{
9- protected override MauiApp CreateMauiApp ( ) => MauiProgram . CreateMauiApp ( ) ;
9+ protected override MauiApp CreateMauiApp ( ) => MauiProgram . CreateMauiApp ( ) ;
1010}
Original file line number Diff line number Diff line change @@ -3,9 +3,9 @@ namespace CommunityToolkit.Maui.Markup.Benchmarks;
33
44public partial class LabelViewModel : ObservableObject
55{
6- [ ObservableProperty ]
7- public partial string Text { get ; set ; } = string . Empty ;
6+ [ ObservableProperty ]
7+ public partial string Text { get ; set ; } = string . Empty ;
88
9- [ ObservableProperty ]
10- public partial Color TextColor { get ; set ; } = Colors . Black ;
9+ [ ObservableProperty ]
10+ public partial Color TextColor { get ; set ; } = Colors . Black ;
1111}
You can’t perform that action at this time.
0 commit comments