-
Notifications
You must be signed in to change notification settings - Fork 849
Expand file tree
/
Copy pathMyExtControl.cs
More file actions
57 lines (46 loc) · 1.78 KB
/
MyExtControl.cs
File metadata and controls
57 lines (46 loc) · 1.78 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;
namespace Uno.UI.Tests.ViewLibrary
{
public partial class MyExtControl : Control
{
public MyExtControl()
{
DefaultStyleKey = typeof(MyExtControl);
}
public string MyTag
{
get { return (string)GetValue(MyTagProperty); }
set { SetValue(MyTagProperty, value); }
}
public static readonly DependencyProperty MyTagProperty =
DependencyProperty.Register("MyTag", typeof(string), typeof(MyExtControl), new PropertyMetadata("Default"));
public string MyTag2
{
get { return (string)GetValue(MyTag2Property); }
set { SetValue(MyTag2Property, value); }
}
public static readonly DependencyProperty MyTag2Property =
DependencyProperty.Register("MyTag2", typeof(string), typeof(MyExtControl), new PropertyMetadata("Default"));
public string MyTagThemed1
{
get { return (string)GetValue(MyTagThemed1Property); }
set { SetValue(MyTagThemed1Property, value); }
}
// Using a DependencyProperty as the backing store for MyTagThemed1. This enables animation, styling, binding, etc...
public static readonly DependencyProperty MyTagThemed1Property =
DependencyProperty.Register("MyTagThemed1", typeof(string), typeof(MyExtControl), new PropertyMetadata("Default"));
public string MyTagThemed2
{
get { return (string)GetValue(MyTagThemed2Property); }
set { SetValue(MyTagThemed2Property, value); }
}
// Using a DependencyProperty as the backing store for MyTagThemed2. This enables animation, styling, binding, etc...
public static readonly DependencyProperty MyTagThemed2Property =
DependencyProperty.Register("MyTagThemed2", typeof(string), typeof(MyExtControl), new PropertyMetadata("Default"));
}
}