2 using Tizen.NUI.BaseComponents;
3 using Tizen.NUI.Components;
4 using Tizen.NUI.Wearable;
6 namespace Tizen.NUI.Samples
8 public class TitleSample : IExample
13 public void Activate()
15 Window window = NUIApplication.GetDefaultWindow();
17 TextLabelStyle attr = new TextLabelStyle
19 Size = new Size(300, 39),
20 BackgroundColor = Color.Black,
21 TextColor = Color.White,
25 * The title inherits textlabel.
28 title = new Title(attr);
29 title.Text = "The title can has a fadeOut effect.";
33 * The title has a fadeout effect.
34 * The default width is 32. You can change the value through FadeOutWidth.
35 * ex) title.FadeOutWidth = 10;
36 * The default color is BackgroundColor. You can change the color value through FadeOutColor.
37 * ex) title.FadeOutColor = Color.Red;
42 public void Deactivate()
46 NUIApplication.GetDefaultWindow().Remove(root);