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
|
using System.Windows;
namespace Gestor.Application.Componentes;
public class CustomIsReadOnlyControl : CustomItemControl
{
public static readonly DependencyProperty IsReadOnlyProperty = DependencyProperty.Register("IsReadOnly", typeof(bool), typeof(CustomIsReadOnlyControl), (PropertyMetadata)new FrameworkPropertyMetadata((object)false, (FrameworkPropertyMetadataOptions)256));
public static readonly DependencyProperty HasValidationProperty = DependencyProperty.Register("HasValidation", typeof(bool), typeof(CustomIsReadOnlyControl), (PropertyMetadata)new FrameworkPropertyMetadata((object)false, (FrameworkPropertyMetadataOptions)256));
public static readonly DependencyProperty TextProperty = DependencyProperty.Register("Text", typeof(string), typeof(CustomIsReadOnlyControl), (PropertyMetadata)new FrameworkPropertyMetadata((object)string.Empty, (FrameworkPropertyMetadataOptions)256));
public static readonly DependencyProperty TextAlignmentProperty = DependencyProperty.Register("TextAlignment", typeof(TextAlignment), typeof(CustomIsReadOnlyControl), (PropertyMetadata)new FrameworkPropertyMetadata((object)(TextAlignment)0, (FrameworkPropertyMetadataOptions)256));
public bool IsReadOnly
{
get
{
return (bool)((DependencyObject)this).GetValue(IsReadOnlyProperty);
}
set
{
((DependencyObject)this).SetValue(IsReadOnlyProperty, (object)value);
}
}
public bool HasValidation
{
get
{
return (bool)((DependencyObject)this).GetValue(HasValidationProperty);
}
set
{
((DependencyObject)this).SetValue(HasValidationProperty, (object)value);
}
}
public string Text
{
get
{
return (string)((DependencyObject)this).GetValue(TextProperty);
}
set
{
((DependencyObject)this).SetValue(TextProperty, (object)value);
}
}
public TextAlignment TextAlignment
{
get
{
//IL_000b: Unknown result type (might be due to invalid IL or missing references)
return (TextAlignment)((DependencyObject)this).GetValue(TextAlignmentProperty);
}
set
{
//IL_0006: Unknown result type (might be due to invalid IL or missing references)
((DependencyObject)this).SetValue(TextAlignmentProperty, (object)value);
}
}
}
|