■ Shell 클래스의 FlyoutIsPresented 속성을 사용해 플라이아웃을 표시하는 방법을 보여준다.
▶ CatPage.xaml.cs
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 39 40 41 42 43 |
namespace TestProject; /// <summary> /// 고양이 페이지 /// </summary> public partial class CatPage : ContentPage { //////////////////////////////////////////////////////////////////////////////////////////////////// Constructor ////////////////////////////////////////////////////////////////////////////////////////// Public #region 생성자 - CatPage() /// <summary> /// 생성자 /// </summary> public CatPage() { InitializeComponent(); this.testButton.Clicked += testButton_Clicked; } #endregion //////////////////////////////////////////////////////////////////////////////////////////////////// Method ////////////////////////////////////////////////////////////////////////////////////////// Private #region 테스트 버튼 클릭시 처리하기 - button_Clicked(sender, e) /// <summary> /// 테스트 버튼 클릭시 처리하기 /// </summary> /// <param name="sender">이벤트 발생자</param> /// <param name="e">이벤트 인자</param> private void testButton_Clicked(object sender, EventArgs e) { Shell.Current.FlyoutIsPresented = true; } #endregion } |