summaryrefslogtreecommitdiff
path: root/Gestor.Application/Componentes/CustomIsReadOnlyControl.cs
blob: 988f8fc592a75ccd117e9ad40913f3ed8ef065f4 (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
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
using System;
using System.Windows;

namespace Gestor.Application.Componentes
{
	public class CustomIsReadOnlyControl : CustomItemControl
	{
		public readonly static DependencyProperty IsReadOnlyProperty;

		public readonly static DependencyProperty HasValidationProperty;

		public readonly static DependencyProperty TextProperty;

		public readonly static DependencyProperty TextAlignmentProperty;

		public bool HasValidation
		{
			get
			{
				return (bool)base.GetValue(CustomIsReadOnlyControl.HasValidationProperty);
			}
			set
			{
				base.SetValue(CustomIsReadOnlyControl.HasValidationProperty, value);
			}
		}

		public bool IsReadOnly
		{
			get
			{
				return (bool)base.GetValue(CustomIsReadOnlyControl.IsReadOnlyProperty);
			}
			set
			{
				base.SetValue(CustomIsReadOnlyControl.IsReadOnlyProperty, value);
			}
		}

		public string Text
		{
			get
			{
				return (string)base.GetValue(CustomIsReadOnlyControl.TextProperty);
			}
			set
			{
				base.SetValue(CustomIsReadOnlyControl.TextProperty, value);
			}
		}

		public System.Windows.TextAlignment TextAlignment
		{
			get
			{
				return (System.Windows.TextAlignment)base.GetValue(CustomIsReadOnlyControl.TextAlignmentProperty);
			}
			set
			{
				base.SetValue(CustomIsReadOnlyControl.TextAlignmentProperty, value);
			}
		}

		static CustomIsReadOnlyControl()
		{
			CustomIsReadOnlyControl.IsReadOnlyProperty = DependencyProperty.Register("IsReadOnly", typeof(bool), typeof(CustomIsReadOnlyControl), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault));
			CustomIsReadOnlyControl.HasValidationProperty = DependencyProperty.Register("HasValidation", typeof(bool), typeof(CustomIsReadOnlyControl), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault));
			CustomIsReadOnlyControl.TextProperty = DependencyProperty.Register("Text", typeof(string), typeof(CustomIsReadOnlyControl), new FrameworkPropertyMetadata(string.Empty, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault));
			CustomIsReadOnlyControl.TextAlignmentProperty = DependencyProperty.Register("TextAlignment", typeof(System.Windows.TextAlignment), typeof(CustomIsReadOnlyControl), new FrameworkPropertyMetadata((object)System.Windows.TextAlignment.Left, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault));
		}

		public CustomIsReadOnlyControl()
		{
		}
	}
}