■ BitmapIconSource 엘리먼트의 ShowAsMonochrome/UriSource 속성을 사용하는 방법을 보여준다.
▶ MainPage.xaml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
xmlns:muxc="using:Microsoft.UI.Xaml.Controls" <SwipeControl> <SwipeControl.LeftItems> <SwipeItems Mode="Reveal"> <SwipeItem Background="Red" Text="Delete"> <SwipeItem.IconSource> <muxc:BitmapIconSource ShowAsMonochrome="False" UriSource="/IMAGE/powershell.png" /> </SwipeItem.IconSource> </SwipeItem> </SwipeItems> </SwipeControl.LeftItems> <SwipeControl.RightItems> <SwipeItems Mode="Execute"> <SwipeItem Background="Green" Text="Archive"> <SwipeItem.IconSource> <muxc:BitmapIconSource ShowAsMonochrome="False" UriSource="/IMAGE/powershell.png" /> </SwipeItem.IconSource> </SwipeItem> </SwipeItems> </SwipeControl.RightItems> <Grid Background="LightGray"> <TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Text="Swipe me left or right" /> </Grid> </SwipeControl> |