Skip to content

Commit

Permalink
Merge pull request #465 from AndreasReitberger/housekeeping/fix-codef…
Browse files Browse the repository at this point in the history
…ormatting

[housekeeping] Automated PR to fix formatting errors
  • Loading branch information
AndreasReitberger authored Mar 19, 2024
2 parents 83eed71 + 1e024d6 commit efc7899
Show file tree
Hide file tree
Showing 10 changed files with 37 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ public partial class ComboBoxesPageViewModel : BaseViewModel
ObservableCollection<string> items =
[
"Item 1",
"Item 2",
"Item 3",
];
"Item 2",
"Item 3",
];

[ObservableProperty]
string selectedItem = "";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ public EditorsPageViewModel(IDispatcher dispatcher, IServiceProvider provider) :
#region Commands

[RelayCommand]
Task DeleteAllSettings() => Shell.Current.DisplayAlert("Content deleted!", "All content has been deleted (not, this is just a demo message ;))", "OK");
Task DeleteAllSettings() => Shell.Current.DisplayAlert("Content deleted!", "All content has been deleted (not, this is just a demo message ;))", "OK");

#endregion
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ public GridsPageViewModel(IDispatcher dispatcher, IServiceProvider provider) : b
#region Commands

[RelayCommand]
Task DeleteAllSettings() => Shell.Current.DisplayAlert("Content deleted!", "All content has been deleted (not, this is just a demo message ;))", "OK");
Task DeleteAllSettings() => Shell.Current.DisplayAlert("Content deleted!", "All content has been deleted (not, this is just a demo message ;))", "OK");

#endregion
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ public partial class PickersPageViewModel : BaseViewModel
ObservableCollection<string> items =
[
"Item 1",
"Item 2",
"Item 3",
"Item 2",
"Item 3",
];

[ObservableProperty]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public partial class SfListViewPageViewModel : BaseViewModel
new() { Name = "Test2", Counter = 2 },
new() { Name = "Test3", Counter = 3 },
new() { Name = "Test4", Counter = 4 },
];
];

[ObservableProperty]
int index = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,17 @@ public partial class SfSegmentedControlPageViewModel : BaseViewModel

[ObservableProperty]
ObservableCollection<string> sizes = [
"S", "M", "L", "XL", "XXL"
"S",
"M",
"L",
"XL",
"XXL"
];

[ObservableProperty]
int selectedSizeIndex = 0;
partial void OnSelectedSizeIndexChanged(int value) => SelectedSize = Sizes[value];

[ObservableProperty]
string selectedSize = string.Empty;
#endregion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ public SwitchesPageViewModel(IDispatcher dispatcher, IServiceProvider provider)
#region Commands

[RelayCommand]
Task DeleteAllSettings() => Shell.Current.DisplayAlert("Content deleted!", "All content has been deleted (not, this is just a demo message ;))", "OK");
Task DeleteAllSettings() => Shell.Current.DisplayAlert("Content deleted!", "All content has been deleted (not, this is just a demo message ;))", "OK");

#endregion
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ public partial class SwitchHeaderConventView : ContentView
#region Bindings

public static readonly BindableProperty ButtonIconFontFamilyProperty = BindableProperty.Create(nameof(ButtonIconFontFamily), typeof(string), typeof(SwitchHeaderConventView), "MaterialDesignIcons");

public static readonly BindableProperty BackButtonTextProperty = BindableProperty.Create(nameof(BackButtonText), typeof(string), typeof(SwitchHeaderConventView), string.Empty);
public static readonly BindableProperty NextButtonTextProperty = BindableProperty.Create(nameof(NextButtonText), typeof(string), typeof(SwitchHeaderConventView), string.Empty);

public static readonly BindableProperty TitleLabelTextProperty = BindableProperty.Create(nameof(TitleLabelText), typeof(string), typeof(SwitchHeaderConventView), null);
public static readonly BindableProperty TitleLabelFormattedStringProperty = BindableProperty.Create(nameof(TitleLabelFormattedString), typeof(FormattedString), typeof(SwitchHeaderConventView), null);

public static readonly BindableProperty BackButtonIconTextProperty = BindableProperty.Create(nameof(BackButtonIconText), typeof(string), typeof(SwitchHeaderConventView), MaterialIcons.Filter);
public static readonly BindableProperty NextButtonIconTextProperty = BindableProperty.Create(nameof(NextButtonIconText), typeof(string), typeof(SwitchHeaderConventView), MaterialIcons.Sort);

public static readonly BindableProperty BackButtonCommandProperty = BindableProperty.Create(nameof(BackButtonCommand), typeof(ICommand), typeof(SwitchHeaderConventView), null);
public static readonly BindableProperty NextButtonCommandProperty = BindableProperty.Create(nameof(NextButtonCommand), typeof(ICommand), typeof(SwitchHeaderConventView), null);

Expand Down Expand Up @@ -75,7 +75,7 @@ public ICommand NextButtonCommand
#endregion

public SwitchHeaderConventView()
{
InitializeComponent();
}
{
InitializeComponent();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ public partial class SortFilterHeaderConventView : ContentView

public static readonly BindableProperty IsFilteredProperty = BindableProperty.Create(nameof(IsFiltered), typeof(bool), typeof(SortFilterHeaderConventView), false);
public static readonly BindableProperty ShowFilterButtonProperty = BindableProperty.Create(nameof(ShowFilterButton), typeof(bool), typeof(SortFilterHeaderConventView), true);

public static readonly BindableProperty ButtonIconFontFamilyProperty = BindableProperty.Create(nameof(ButtonIconFontFamily), typeof(string), typeof(SortFilterHeaderConventView), "MaterialDesignIcons");
public static readonly BindableProperty CommandParameterProperty = BindableProperty.Create(nameof(ButtonIconFontFamily), typeof(object), typeof(SortFilterHeaderConventView), null);

public static readonly BindableProperty SortButtonTextProperty = BindableProperty.Create(nameof(SortButtonText), typeof(string), typeof(SortFilterHeaderConventView), string.Empty);
public static readonly BindableProperty FilterButtonTextProperty = BindableProperty.Create(nameof(FilterButtonText), typeof(string), typeof(SortFilterHeaderConventView), string.Empty);

public static readonly BindableProperty SortButtonIconTextProperty = BindableProperty.Create(nameof(SortButtonIconText), typeof(string), typeof(SortFilterHeaderConventView), MaterialIcons.Sort);
public static readonly BindableProperty FilterButtonIconTextProperty = BindableProperty.Create(nameof(FilterButtonIconText), typeof(string), typeof(SortFilterHeaderConventView), MaterialIcons.Filter);
public static readonly BindableProperty ClearButtonIconTextProperty = BindableProperty.Create(nameof(ClearButtonIconText), typeof(string), typeof(SortFilterHeaderConventView), MaterialIcons.Close);
Expand Down Expand Up @@ -95,7 +95,7 @@ public ICommand ClearButtonCommand
#endregion

public SortFilterHeaderConventView()
{
InitializeComponent();
}
{
InitializeComponent();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ public partial class SwitchHeaderConventView : ContentView
#region Bindings

public static readonly BindableProperty ButtonIconFontFamilyProperty = BindableProperty.Create(nameof(ButtonIconFontFamily), typeof(string), typeof(SwitchHeaderConventView), "MaterialDesignIcons");

public static readonly BindableProperty BackButtonTextProperty = BindableProperty.Create(nameof(BackButtonText), typeof(string), typeof(SwitchHeaderConventView), string.Empty);
public static readonly BindableProperty NextButtonTextProperty = BindableProperty.Create(nameof(NextButtonText), typeof(string), typeof(SwitchHeaderConventView), string.Empty);

public static readonly BindableProperty TitleLabelTextProperty = BindableProperty.Create(nameof(TitleLabelText), typeof(string), typeof(SwitchHeaderConventView), null);
public static readonly BindableProperty TitleLabelFormattedStringProperty = BindableProperty.Create(nameof(TitleLabelFormattedString), typeof(FormattedString), typeof(SwitchHeaderConventView), null);

public static readonly BindableProperty BackButtonIconTextProperty = BindableProperty.Create(nameof(BackButtonIconText), typeof(string), typeof(SwitchHeaderConventView), MaterialIcons.Filter);
public static readonly BindableProperty NextButtonIconTextProperty = BindableProperty.Create(nameof(NextButtonIconText), typeof(string), typeof(SwitchHeaderConventView), MaterialIcons.Sort);

public static readonly BindableProperty BackButtonCommandProperty = BindableProperty.Create(nameof(BackButtonCommand), typeof(ICommand), typeof(SwitchHeaderConventView), null);
public static readonly BindableProperty NextButtonCommandProperty = BindableProperty.Create(nameof(NextButtonCommand), typeof(ICommand), typeof(SwitchHeaderConventView), null);

Expand Down Expand Up @@ -75,7 +75,7 @@ public ICommand NextButtonCommand
#endregion

public SwitchHeaderConventView()
{
InitializeComponent();
}
{
InitializeComponent();
}
}

0 comments on commit efc7899

Please sign in to comment.