整合管理器应用端(MAUI跨平台)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
3.3 KiB

<?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"
x:Class="SunlightAggregationTerminal.NotificationPage"
Loaded="ContentPage_Loaded"
Title="通知中心">
<ScrollView>
<VerticalStackLayout Padding="20" Spacing="20">
<!-- 通知卡片 -->
<Border BackgroundColor="White"
Stroke="#CCCCCC"
Margin="0,0,0,10"
StrokeShape="RoundRectangle 10">
<Grid ColumnDefinitions="Auto,*,Auto" Padding="15" ColumnSpacing="15">
<!-- 文字内容 -->
<VerticalStackLayout Grid.Column="1" VerticalOptions="Center">
<Label x:Name="NoticeItemTitle" FontAttributes="Bold" FontSize="22" TextColor="Black"/>
<Label x:Name="NoticeItemContent" FontSize="16" TextColor="Gray" LineBreakMode="WordWrap"/>
</VerticalStackLayout>
</Grid>
<!-- 点击事件 -->
<Border.GestureRecognizers>
<TapGestureRecognizer Tapped="OnNoticeTapped"/>
</Border.GestureRecognizers>
</Border>
<!-- 信息卡片 -->
<Border BackgroundColor="White"
Stroke="#CCCCCC"
Margin="0,0,0,10"
StrokeShape="RoundRectangle 10">
<Grid ColumnDefinitions="Auto,*,Auto" Padding="15" ColumnSpacing="15">
<VerticalStackLayout Grid.Column="1" VerticalOptions="Center">
<Label x:Name="MessageItemTitle" FontAttributes="Bold" FontSize="22" TextColor="Black"/>
<Label x:Name="MessageItemContent" FontSize="16" TextColor="Gray" LineBreakMode="WordWrap"/>
</VerticalStackLayout>
</Grid>
<Border.GestureRecognizers>
<TapGestureRecognizer Tapped="OnMessageTapped"/>
</Border.GestureRecognizers>
</Border>
<!-- 系统卡片 -->
<Border BackgroundColor="White"
Stroke="#CCCCCC"
Margin="0,0,0,10"
StrokeShape="RoundRectangle 10">
<Grid ColumnDefinitions="Auto,*,Auto" Padding="15" ColumnSpacing="15">
<VerticalStackLayout Grid.Column="1" VerticalOptions="Center">
<Label x:Name="SystemItemTitle" FontAttributes="Bold" FontSize="22" TextColor="Black"/>
<Label x:Name="SystemItemContent" FontSize="16" TextColor="Gray" LineBreakMode="WordWrap"/>
</VerticalStackLayout>
</Grid>
<Border.GestureRecognizers>
<TapGestureRecognizer Tapped="OnSystemTapped"/>
</Border.GestureRecognizers>
</Border>
</VerticalStackLayout>
</ScrollView>
</ContentPage>