summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls/HanselForms/BaseView.cs
blob: 926dbc96482d6fad85fe3d45099f1ed42c4b64ea (plain)
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
namespace Xamarin.Forms.Controls
{
	public class BaseView : ContentPage
	{
		public BaseView()
		{
			SetBinding(Page.TitleProperty, new Binding(HBaseViewModel.TitlePropertyName));
			SetBinding(Page.IconProperty, new Binding(HBaseViewModel.IconPropertyName));
		}
	}

	public class HanselmanNavigationPage : NavigationPage
	{
		public HanselmanNavigationPage(Page root) : base(root)
		{
			Init();
		}

		public HanselmanNavigationPage()
		{
			Init();
		}

		void Init()
		{

			BarBackgroundColor = Color.FromHex("#03A9F4");
			BarTextColor = Color.White;
		}
	}

}