<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:ios="clr-namespace:Microsoft.Maui.Controls.PlatformConfiguration.iOSSpecific;assembly=Microsoft.Maui.Controls"
ios:Page.UseSafeArea="True"
xmlns:local="clr-namespace:test"
xmlns:devices="clr-namespace:Microsoft.Maui.Devices;assembly=Microsoft.Maui.Essentials"
xmlns:channels="clr-namespace:System.ServiceModel.Channels;assembly=System.ServiceModel.Primitives"
x:Class="test.Page" NavigationPage.HasBackButton="False">
<ContentPage.BindingContext>
<local:BarcodeValuesDataViewModel/>
</ContentPage.BindingContext>
<!-- **********Spacing und VerticalOption sorgt für gleichmässige Aufteilung senkrecht*********** -->
<StackLayout BackgroundColor="AliceBlue" Spacing="5" Scale="1" Padding="10, 0, 10, 0" VerticalOptions="Center">
<!-- **********Grid mit 3 Buttons nebeneinander************ -->
<Grid Margin="0, 10, 0, 0" >
<Grid.ColumnDefinitions>
<ColumnDefinition Width="0.3*"/>
<ColumnDefinition Width="0.3*"/>
<ColumnDefinition Width="0.3*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition />
</Grid.RowDefinitions>
<Button x:Name="btnZuruck" Text="Zurück" Clicked="ZuruckButton_Clicked" FontAttributes="Bold"
FontSize="Large" VerticalOptions="Center" BackgroundColor="LightBlue" TextColor="Red" CornerRadius="10"
BorderColor="Black" BorderWidth="2" Padding="10, 10, 10, 10" Margin="10, 10, 10, 10" Grid.Column="0"/>
<Button x:Name="btn1" Text="ttt" Clicked="PrevButton_Clicked" FontAttributes="Bold"
FontSize="Large" VerticalOptions="Center" BackgroundColor="LightBlue" TextColor="Green" CornerRadius="10"
BorderColor="Black" BorderWidth="2" Padding="10, 10, 10, 10" Margin="10, 10, 10, 10" Grid.Column="1"/>
<Button x:Name="btn2" Text="bbb" Clicked="PrevButton_Clicked" FontAttributes="Bold"
FontSize="Large" VerticalOptions="Center" BackgroundColor="LightBlue" TextColor="Green" CornerRadius="10"
BorderColor="Black" BorderWidth="2" Padding="10, 10, 10, 10" Margin="10, 10, 10, 10" Grid.Column="2"/>
</Grid>
<!-- **********Label und Line************ -->
<Label Text=" aaa"
HorizontalTextAlignment="Center" VerticalTextAlignment="Center"
TextColor="Black" FontSize="Medium" FontAttributes="Bold"
BackgroundColor="AliceBlue" HeightRequest="50"/>
<Line StrokeThickness="10" BackgroundColor="AliceBlue" />
</StackLayout>
</ContentPage>
< ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" ...
mehr erfahren »
Fenster schließen
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:ios="clr-namespace:Microsoft.Maui.Controls.PlatformConfiguration.iOSSpecific;assembly=Microsoft.Maui.Controls"
ios:Page.UseSafeArea="True"
xmlns:local="clr-namespace:test"
xmlns:devices="clr-namespace:Microsoft.Maui.Devices;assembly=Microsoft.Maui.Essentials"
xmlns:channels="clr-namespace:System.ServiceModel.Channels;assembly=System.ServiceModel.Primitives"
x:Class="test.Page" NavigationPage.HasBackButton="False">
<ContentPage.BindingContext>
<local:BarcodeValuesDataViewModel/>
</ContentPage.BindingContext>
<!-- **********Spacing und VerticalOption sorgt für gleichmässige Aufteilung senkrecht*********** -->
<StackLayout BackgroundColor="AliceBlue" Spacing="5" Scale="1" Padding="10, 0, 10, 0" VerticalOptions="Center">
<!-- **********Grid mit 3 Buttons nebeneinander************ -->
<Grid Margin="0, 10, 0, 0" >
<Grid.ColumnDefinitions>
<ColumnDefinition Width="0.3*"/>
<ColumnDefinition Width="0.3*"/>
<ColumnDefinition Width="0.3*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition />
</Grid.RowDefinitions>
<Button x:Name="btnZuruck" Text="Zurück" Clicked="ZuruckButton_Clicked" FontAttributes="Bold"
FontSize="Large" VerticalOptions="Center" BackgroundColor="LightBlue" TextColor="Red" CornerRadius="10"
BorderColor="Black" BorderWidth="2" Padding="10, 10, 10, 10" Margin="10, 10, 10, 10" Grid.Column="0"/>
<Button x:Name="btn1" Text="ttt" Clicked="PrevButton_Clicked" FontAttributes="Bold"
FontSize="Large" VerticalOptions="Center" BackgroundColor="LightBlue" TextColor="Green" CornerRadius="10"
BorderColor="Black" BorderWidth="2" Padding="10, 10, 10, 10" Margin="10, 10, 10, 10" Grid.Column="1"/>
<Button x:Name="btn2" Text="bbb" Clicked="PrevButton_Clicked" FontAttributes="Bold"
FontSize="Large" VerticalOptions="Center" BackgroundColor="LightBlue" TextColor="Green" CornerRadius="10"
BorderColor="Black" BorderWidth="2" Padding="10, 10, 10, 10" Margin="10, 10, 10, 10" Grid.Column="2"/>
</Grid>
<!-- **********Label und Line************ -->
<Label Text=" aaa"
HorizontalTextAlignment="Center" VerticalTextAlignment="Center"
TextColor="Black" FontSize="Medium" FontAttributes="Bold"
BackgroundColor="AliceBlue" HeightRequest="50"/>
<Line StrokeThickness="10" BackgroundColor="AliceBlue" />
</StackLayout>
</ContentPage>