[C#/MAUI/.NET6] SwipeView 엘리먼트 : SwipeTransitionMode 첨부 속성을 사용해 스와이프 전환 모드 설정하기 (ANDROID)
C#/MAUI 2022. 6. 9. 16:07728x90
반응형
728x170
▶ 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">
<SwipeView android:SwipeView.SwipeTransitionMode="Drag">
<SwipeView.LeftItems>
<SwipeItems>
<SwipeItem
BackgroundColor="LightGreen"
Text="즐겨찾기"
Invoked="favoriteSwipeItem_Invoked">
<SwipeItem.IconImageSource>
<FontImageSource
FontFamily="ionicons"
Size="48"
Color="Red"
Glyph="" />
</SwipeItem.IconImageSource>
</SwipeItem>
<SwipeItem
BackgroundColor="LightPink"
Text="삭제"
Invoked="deleteSwipeItem_Invoked">
<SwipeItem.IconImageSource>
<FontImageSource
FontFamily="ionicons"
Size="48"
Color="Red"
Glyph="" />
</SwipeItem.IconImageSource>
</SwipeItem>
</SwipeItems>
</SwipeView.LeftItems>
<Grid
WidthRequest="300"
HeightRequest="60"
BackgroundColor="LightGray">
<Label
HorizontalOptions="Center"
VerticalOptions="Center"
Text="오른쪽 밀기" />
</Grid>
</SwipeView>
</ContentPage>
728x90
반응형
그리드형(광고전용)
댓글을 달아 주세요