[NUI] AppBar code refactoring to introduce AppBarStyle (#2713)
authorJaehyun Cho <29364140+jaehyun0cho@users.noreply.github.com>
Tue, 9 Mar 2021 03:25:31 +0000 (12:25 +0900)
committerjykeon <44285706+jykeon@users.noreply.github.com>
Wed, 10 Mar 2021 04:44:29 +0000 (13:44 +0900)
commit517508204aed46a31c6f97acf1d1de8dda116a5c
tree0ffe5f98dc0a0852e030bacbce3a3b835999e451
parent57b97f2ab63dc8a8a1056f9e3612d4414e7467f2
[NUI] AppBar code refactoring to introduce AppBarStyle (#2713)

Unused namespace System.Windows.Input is removed.

AppBar constructors with parameters are removed to reduce complexity by
adding constructors with style parameters.

private Initialize() is added to remove duplicate codes in constructors.

DefaultTitleContent and DefaultActionContent are added like
DefaultNavigationContent.

SetTitle() is added to set title text to DefaultTitleContent.
AddActions() and RemoveActions() are added to add and remove action
views to DefaultActionContent.

Co-authored-by: Jaehyun Cho <jae_hyun.cho@samsung.com>
Co-authored-by: Jiyun Yang <ji.yang@samsung.com>
src/Tizen.NUI.Components/Controls/Navigation/AppBar.cs
test/Tizen.NUI.Samples/Tizen.NUI.Samples/Samples/AppBarSample.cs