-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathBaseSelector.vb
More file actions
35 lines (31 loc) · 1.35 KB
/
BaseSelector.vb
File metadata and controls
35 lines (31 loc) · 1.35 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
'''*************** NCore Softwares Pvt. Ltd., India **************************
'''
''' ColorPicker
'''
''' Copyright (C) 2013 NCore Softwares Pvt. Ltd.
'''
''' This program is provided to you under the terms of the Microsoft Public
''' License (Ms-PL) as published at http://ColorPicker.codeplex.com/license
'''
'''**********************************************************************************
Friend MustInherit Class BaseSelector
Inherits FrameworkElement
Public Property Orientation() As Orientation
Get
Return CType(GetValue(OrientationProperty), Orientation)
End Get
Set(ByVal value As Orientation)
SetValue(OrientationProperty, value)
End Set
End Property
Public Shared ReadOnly OrientationProperty As DependencyProperty = DependencyProperty.Register("Orientation", GetType(Orientation), GetType(BaseSelector), New UIPropertyMetadata(Orientation.Vertical))
Public Property Color() As Color
Get
Return CType(GetValue(ColorProperty), Color)
End Get
Protected Set(ByVal value As Color)
SetValue(ColorProperty, value)
End Set
End Property
Public Shared ReadOnly ColorProperty As DependencyProperty = DependencyProperty.Register("Color", GetType(Color), GetType(BaseSelector), New UIPropertyMetadata(Colors.Red))
End Class