-
Notifications
You must be signed in to change notification settings - Fork 1
/
TitleBar.cs
39 lines (33 loc) · 1.14 KB
/
TitleBar.cs
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
33
34
35
36
37
38
39
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Documents;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
// The Templated Control item template is documented at https://go.microsoft.com/fwlink/?LinkId=234235
namespace TemplateApp
{
public sealed class TitleBar : Control
{
public TitleBar()
{
this.DefaultStyleKey = typeof(TitleBar);
}
public object CenterContent
{
get { return (object)GetValue(CenterContentProperty); }
set { SetValue(CenterContentProperty, value); }
}
public DependencyProperty CenterContentProperty { get; private set; }
public bool IsBackButtonEnabled
{
get { return (bool)GetValue(BackButtonEnabledProperty); }
set { SetValue(BackButtonEnabledProperty, value); }
}
public DependencyProperty BackButtonEnabledProperty { get; private set; }
}
}