Optimierung Stundenseite
Grid statt StackLayout Monatssummen beachten jetzt auch das Jahr
This commit is contained in:
@@ -25,17 +25,7 @@ public partial class StundenPage : ContentPage {
|
||||
if (!CheckLogin()) {
|
||||
NavigateToTargetPage();
|
||||
}
|
||||
#if ANDROID
|
||||
heightValue = 280;
|
||||
#elif IOS
|
||||
heightValue = 280;
|
||||
#elif WINDOWS
|
||||
heightValue = 320;
|
||||
#else
|
||||
heightValue = 300;
|
||||
#endif
|
||||
|
||||
SizeChanged += OnPageSizeChanged;
|
||||
}
|
||||
|
||||
private void Vm_AlertEvent(object? sender, string e) {
|
||||
@@ -77,13 +67,4 @@ public partial class StundenPage : ContentPage {
|
||||
await Navigation.PushAsync(new LoginPage());
|
||||
}
|
||||
|
||||
private void OnPageSizeChanged(object sender, EventArgs e) {
|
||||
double windowHeight = this.Height;
|
||||
AdjustLayout(windowHeight);
|
||||
}
|
||||
|
||||
private void AdjustLayout(double height) {
|
||||
// Passen Sie Ihre UI-Elemente basierend auf der Fensterh<72>he an
|
||||
stundeItems.HeightRequest = height - heightValue; //Datepicker Height 50, Monatssummen Height 125, Titel + Navigation Height xyz
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user