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); } } }