.NET
基于 .NET 软件框架的 Microsoft 技术。
85 个问题
<?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>