[NUI] Modify NUI Seamless animation bug (#2334) (#2341)
[platform/core/csapi/tizenfx.git] / test / Tizen.NUI.Seamless.Xaml / NUIMusicPlayer / XamlPage.xaml.cs
1 using System;
2 using Tizen.NUI;
3 using Tizen.NUI.BaseComponents;
4
5 namespace NUIMusicPlayer
6 {
7     public partial class XamlPage : View
8     {
9         public XamlPage()
10         {
11             InitializeComponent();
12
13             HideInitObject();
14         }
15
16         private bool OnBackTouchEvent(object source, View.TouchEventArgs e)
17         {
18             if (e.Touch.GetState(0) == PointStateType.Up)
19             {
20                 Window.Instance.Hide();
21             }
22             return false;
23         }
24
25         public void ShowInitObject()
26         {
27             profileContainer.Opacity = 1.0f;
28             addContainer.Opacity = 1.0f;
29             profileText1.Opacity = 1.0f;
30             profileText2.Opacity = 1.0f;
31             cinematicText.Show();
32         }
33
34         public void HideInitObject()
35         {
36             profileContainer.Opacity = 0.0f;
37             addContainer.Opacity = 0.0f;
38             profileText1.Opacity = 0.0f;
39             profileText2.Opacity = 0.0f;
40             cinematicText.Hide();
41         }
42     }
43 }