{
nav.Next();
};
+ nextButton.SetFontStyle(new PropertyMap().AddBoldFontStyle());
Button prev = new Button(ButtonStyles.Previous);
prev.Position2D = new Position2D(56, 512);
{
nav.Previous();
};
+ prev.SetFontStyle(new PropertyMap().AddBoldFontStyle());
TextLabel guide = new TextLabel(TextLabelStyles.GuideTextLabelStyle);
guide.Position2D = new Position2D(155, 442);
next.ClickEvent += (obj, args) => {\r
nav.Finish();\r
};\r
+ next.SetFontStyle(new PropertyMap().AddBoldFontStyle());\r
\r
container.Add(title);\r
container.Add(next);\r
--- /dev/null
+using System;
+using Tizen.NUI.Components;
+using Tizen.NUI;
+using Tizen.NUI.BaseComponents;
+
+namespace Oobe.Common.Styles
+{
+ public static class ButtonsExtensions
+ {
+ public static PropertyMap GetFontStyle(this Button button)
+ {
+ // workaround for limitation of settings FontStyle of button text
+ // throught TextLabelStyle class
+ foreach (View child in button.Children)
+ {
+ if (child is TextLabel label)
+ {
+ return label.FontStyle;
+ }
+ }
+ return null;
+ }
+
+ public static void SetFontStyle(this Button button, PropertyMap map)
+ {
+ // workaround for limitation of settings FontStyle of button text
+ // throught TextLabelStyle class
+ foreach (View child in button.Children)
+ {
+ if (child is TextLabel label)
+ {
+ label.FontStyle = map;
+ break;
+ }
+ }
+ }
+ }
+}
}\r
nav.Next();\r
};\r
+ btn.SetFontStyle(new PropertyMap().AddBoldFontStyle());\r
\r
carousel.SelectedItemChanged += (sender, args) =>\r
{\r
}\r
nav.Next();\r
};\r
+ next.SetFontStyle(new PropertyMap().AddBoldFontStyle());\r
\r
Button prev = new Button(ButtonStyles.Previous);\r
prev.Position2D = new Position2D(56, 512);\r
prev.ClickEvent += (obj, args) => {\r
nav.Previous();\r
};\r
+ prev.SetFontStyle(new PropertyMap().AddBoldFontStyle());\r
\r
container.Add(carousel);\r
container.Add(title);\r
Position = new Position(56, 10),
Size2D = new Size2D(240, 72),
};
+ Oobe.Common.Styles.ButtonsExtensions.SetFontStyle(prev, new PropertyMap().AddBoldFontStyle());
prev.ClickEvent += (s, e) => nav.Previous();
view.Add(prev);
Position = new Position(888, 10),
Size2D = new Size2D(240, 72),
};
+ next.SetFontStyle(new PropertyMap().AddBoldFontStyle());
next.ClickEvent += (s, e) => nav.Next();
view.Add(next);