From 225aa1499e37faf9d38257caabbadc68d78b427e Mon Sep 17 00:00:00 2001 From: Lucas Faria Mendes Date: Mon, 30 Mar 2026 12:29:41 -0300 Subject: decompiler.com --- .../CustomIsReadOnlyControl.cs | 64 ++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 Decompiler/Gestor.Application.Componentes/CustomIsReadOnlyControl.cs (limited to 'Decompiler/Gestor.Application.Componentes/CustomIsReadOnlyControl.cs') 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); + } + } +} -- cgit v1.2.3