첨부 실행 코드는 나눔고딕코딩 폰트를 사용합니다.
728x90
반응형
728x170

TestProject.zip
0.15MB

▶ MainPage.xaml

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage x:Class="TestProject.MainPage"
    xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
    xmlns:android="clr-namespace:Microsoft.Maui.Controls.PlatformConfiguration.AndroidSpecific;assembly=Microsoft.Maui.Controls"
    xmlns:local="clr-namespace:TestProject">
    <ContentPage.Resources>
        <local:ImageSourceConverter x:Key="ImageSourceConverterKey" />
    </ContentPage.Resources>
    <ListView x:Name="listView"
        RowHeight="70"
        SeparatorVisibility="None"
        android:ListView.IsFastScrollEnabled="true">
        <ListView.ItemTemplate>
            <DataTemplate>
                <ViewCell>
                    <Grid
                        VerticalOptions="Center"
                        Padding="5"
                        RowDefinitions="Auto"
                        ColumnDefinitions="Auto,10,*">
                        <Image Grid.Column="0"
                            WidthRequest="60"
                            HeightRequest="60"
                            Aspect="AspectFill"
                            Source="{Binding ImageURL, Converter={StaticResource ImageSourceConverterKey}}" />
                        <StackLayout Grid.Column="2">
                            <Label
                                FontAttributes="Bold"
                                FontSize="16"
                                Text="{Binding Name}" />
                            <Label
                                VerticalOptions="End"
                                FontAttributes="Italic"
                                Text="{Binding Location}" />
                        </StackLayout>
                    </Grid>
                </ViewCell>
            </DataTemplate>
        </ListView.ItemTemplate>
    </ListView>
</ContentPage>
728x90
반응형
그리드형(광고전용)

'C# > MAUI' 카테고리의 다른 글

[C#/MAUI/.NET6] SwipeView 클래스 : On<T> 메소드를 사용해 스와이프 전환 모드 설정하기 (ANDROID)  (0) 2022.06.09
[C#/MAUI/.NET6] SwipeView 엘리먼트 : SwipeTransitionMode 첨부 속성을 사용해 스와이프 전환 모드 설정하기 (ANDROID)  (0) 2022.06.09
[C#/MAUI/.NET6] Application 클래스 : On<T> 메소드를 사용해 소프트 키보드 입력 모드 설정하기 (프리뷰 버전 오류)  (0) 2022.06.09
[C#/MAUI/.NET6] Application 엘리먼트 : WindowSoftInputModeAdjust 첨부 속성을 사용해 소프트 키보드 입력 모드 설정하기 (프리뷰 버전 오류)  (0) 2022.06.09
[C#/MAUI/.NET6] ListView 클래스 : On<T> 메소드를 사용해 빠른 스크롤 설정하기 (ANDROID)  (0) 2022.06.09
[C#/MAUI/.NET6] Entry 클래스 : On<T> 메소드를 사용해 소프트 키보드 사용자 작업 버튼 설정하기 (ANDROID)  (0) 2022.06.09
[C#/MAUI/.NET6] Entry 엘리먼트 : ImeOptions 첨부 속성을 사용해 소프트 키보드 사용자 작업 버튼 설정하기 (ANDROID)  (0) 2022.06.09
[C#/MAUI/.NET6] ITextToSpeech 인터페이스 : SpeakAsync 정적 메소드에서 텍스트를 음성으로 출력할 때 취소하기  (0) 2022.06.08
[C#/MAUI/.NET6] ITextToSpeech 인터페이스 : SpeakAsync 메소드를 사용해 텍스트를 음성으로 출력하기  (0) 2022.06.08
[C#/MAUI/.NET6] IScreenshot 인터페이스 : CaptureAsync 메소드를 사용해 화면 캡처하기  (0) 2022.06.08
Posted by icodebroker

댓글을 달아 주세요