<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:telerik="http://schemas.telerik.com/2022/xaml/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="MauiApp1.MainPage">
    <ContentPage.Resources>
        <telerik:DataGridColumnHeaderStyle x:Key="headerStyle1" TextFontFamily="OPPOSansRegular"/>
        <telerik:DataGridTextCellStyle x:Key="textCellStyle" FontFamily="OPPOSansRegular" />
        <telerik:DataGridGroupHeaderStyle x:Key="groupHeaderStyle" TextFontFamily="OPPOSansRegular" AggregatesTextFontFamily="OPPOSansRegular"/>
    </ContentPage.Resources>
    <telerik:RadDataGrid UserGroupMode="Enabled" SelectionMode="Multiple" AutomationId="dataGrid" 
 ItemsSource="{Binding Students}" GroupHeaderStyle="{StaticResource groupHeaderStyle}" 
 AutoGenerateColumns="False">
        <telerik:RadDataGrid.Columns>
            <telerik:DataGridTextColumn PropertyName="Name"  HeaderText="姓名" HeaderStyle="{StaticResource headerStyle1}" CellContentStyle="{StaticResource textCellStyle}"/>
            <telerik:DataGridNumericalColumn PropertyName="Age" HeaderText="年龄" HeaderStyle="{StaticResource headerStyle1}"/>
            <telerik:DataGridBooleanColumn PropertyName="Sex" HeaderText="性别" HeaderStyle="{StaticResource headerStyle1}" CellContentStyle="{StaticResource textCellStyle}"/>
        </telerik:RadDataGrid.Columns>
    </telerik:RadDataGrid>

</ContentPage>
