diff options
Diffstat (limited to 'Decompiler/Gestor.Application.Componentes/CustomIsReadOnlyControl.cs')
| -rw-r--r-- | Decompiler/Gestor.Application.Componentes/CustomIsReadOnlyControl.cs | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/Decompiler/Gestor.Application.Componentes/CustomIsReadOnlyControl.cs b/Decompiler/Gestor.Application.Componentes/CustomIsReadOnlyControl.cs new file mode 100644 index 0000000..b5a43b1 --- /dev/null +++ b/Decompiler/Gestor.Application.Componentes/CustomIsReadOnlyControl.cs @@ -0,0 +1,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); + } + } +} |