xaml 使用bing 不能正常工作

fsdfsfd 260 信誉分
2025-01-11T14:56:34.0566667+00:00

用户的图像

<?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="SimpleAudioPlayer.ListPage">

<ContentPage.Resources>

    <ResourceDictionary>

        <Style x:Key="Border_Style_Egde" TargetType="Border">

            <Setter Property="StrokeThickness" Value="6"/>

            <Setter Property="StrokeShape" Value="RoundRectangle 10,10,10,10"/>

        </Style>

        <Style x:Key="Border_Style_Item" TargetType="Border">

            <Setter Property="StrokeThickness" Value="2"/>

            <Setter Property="StrokeShape" Value="RoundRectangle 5,5,5,5"/>

        </Style>

    </ResourceDictionary>

</ContentPage.Resources>

<Grid>

    <Grid.RowDefinitions>

        <RowDefinition Height="220"/>

    </Grid.RowDefinitions>

    <Grid.ColumnDefinitions>

        <ColumnDefinition Width="488"/>

    </Grid.ColumnDefinitions>

    <Border

        Grid.Row="0" Grid.Column="0"

        HeightRequest="210"

        WidthRequest="480"

        Style="{StaticResource Border_Style_Egde}">

        <CollectionView

            x:Name="PlayPage"

            ItemsSource="{Binding songdatas}"

            BackgroundColor="AntiqueWhite">

            <CollectionView.ItemTemplate>

                <DataTemplate>

                    <Border

                        Style="{StaticResource Border_Style_Item}">

                        <Grid>

                            <Grid.RowDefinitions>

                                <RowDefinition Height="auto"/>

                            </Grid.RowDefinitions>

                            <Grid.ColumnDefinitions>

                                <ColumnDefinition Width="auto"/>

                                <ColumnDefinition Width="auto"/>

                                <ColumnDefinition Width="auto"/>

                                <ColumnDefinition Width="auto"/>

                                <ColumnDefinition Width="auto"/>

                            </Grid.ColumnDefinitions>

                            <Image Grid.Row="0" Grid.Column="0"/>

                            <Grid Grid.Row="1" Grid.Column="0"

                                  Grid.ColumnSpan="3">

                                <Grid.RowDefinitions>

                                    <RowDefinition Height="auto"/>

                                    <RowDefinition Height="auto"/>

                                </Grid.RowDefinitions>

                                <Grid.ColumnDefinitions>

                                    <ColumnDefinition Width="auto"/>

                                </Grid.ColumnDefinitions>

                                <Label 

                                    Grid.Row="0" 

                                    Grid.Column="0"

                                    Text="{Binding SongName}"/>

                                <Label 

                                    Grid.Row="1" 

                                    Grid.Column="0"

                                    Text="{Binding SongArtist}"/>

                            </Grid>

                            <ImageButton Grid.Row="0" Grid.Column="4"/>

                        </Grid>

                    </Border>

                </DataTemplate>

            </CollectionView.ItemTemplate>

            

        </CollectionView>

    </Border>

    

</Grid>

</ContentPage>

.NET
.NET
基于 .NET 软件框架的 Microsoft 技术。
85 个问题
.NET MAUI
.NET MAUI
一种 Microsoft 开源框架,用于构建跨移动设备、平板电脑、台式机的原生设备应用程序。
123 个问题
{count} 票

你的答案

问题作者可以将答案标记为“接受的答案”,这有助于用户了解已解决作者问题的答案。