C#/Xamarin Maui
[.NET MAUI] TableView 사용하기
kjun.kr
2022. 9. 15. 11:46
728x90
<TableView Intent="Data">
<TableRoot>
<TableSection Title="KJUN">
<TextCell
Command="{Binding SiteCommand}"
Detail="Visit site KJUN (kjun.kr)"
Text="Introduction to KJUN" />
<ImageCell
Detail="Intorduce keisoft"
ImageSource="kei.png"
Text="KEISOFT" />
<EntryCell Label="Input Text" Placeholder="" />
</TableSection>
<TableSection Title="Setting">
<SwitchCell On="False" Text="Push Notification" />
<SwitchCell On="False" Text="Airplane Mode" />
</TableSection>
</TableRoot>
</TableView>
TextCell
ImageCell
SwitchCell
EntryCell
등이 있고 각 Cell 클릭시 이벤트는 Command 에 Binding 하여 연결합니다.
* ImageCell 은 이미지가 왼쪽 정렬밖에 없어 좀 아쉽다. (못찾은건지도..)
결과
Windows
소스
https://github.com/kei-soft/KJunBlog/tree/master/Maui.ControlTest
728x90