diff options
| author | Lucas Faria Mendes <lucas.fariamo08@gmail.com> | 2026-03-30 15:29:41 +0000 |
|---|---|---|
| committer | Lucas Faria Mendes <lucas.fariamo08@gmail.com> | 2026-03-30 15:29:41 +0000 |
| commit | 225aa1499e37faf9d38257caabbadc68d78b427e (patch) | |
| tree | 102bb7a40c58595348ae9d3c7076201759fe0720 /Decompiler/Gestor.Application.Componentes/CustomIsReadOnlyControl.cs | |
| parent | 1f4e14b2e973ee7de337fd4866d9a5ceff5cb6d1 (diff) | |
| download | gestor-225aa1499e37faf9d38257caabbadc68d78b427e.tar.gz gestor-225aa1499e37faf9d38257caabbadc68d78b427e.zip | |
decompiler.com
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); + } + } +} |