autosos-maui/Views/HomeView.xaml

28 lines
1.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:viewmodels="clr-namespace:autosos_maui.ViewModels"
x:DataType="viewmodels:HomeViewModel"
x:Class="autosos_maui.Views.HomeView">
<ContentPage.Content>
<VerticalStackLayout Background="#F3F3F3">
<StackLayout Orientation="Vertical" Padding="20">
<StackLayout Orientation="Horizontal" VerticalOptions="Center">
<Label Text="接单中" WidthRequest="200" HeightRequest="50" VerticalOptions="Center" FontSize="20"></Label>
<Switch IsToggled="{Binding IsToggled,Mode=TwoWay}"></Switch>
<Label Text="|" WidthRequest="20" HeightRequest="20" TextColor="#BFBFBF"></Label>
<StackLayout HorizontalOptions="End" Orientation="Vertical">
<Image Source="order_receiving_start.png" IsVisible="{Binding IsToggled}" HeightRequest="30" WidthRequest="30"/>
<Image Source="order_receiving_end.png" IsVisible="{Binding IsToggled,Converter={StaticResource BoolNegationConverter}}" HeightRequest="30" WidthRequest="30"/>
<Label Text="订单" HorizontalOptions="Center"></Label>
</StackLayout>
</StackLayout>
</StackLayout>
<Grid></Grid>
</VerticalStackLayout>
</ContentPage.Content>
</ContentPage>