using System.Windows; using System.Windows.Controls; namespace Gestor.Application.Componentes; public class CustomItemControl : ItemsControl { public static readonly DependencyProperty LabelProperty = DependencyProperty.Register("Label", typeof(string), typeof(CustomItemControl), (PropertyMetadata)new FrameworkPropertyMetadata((object)string.Empty, (FrameworkPropertyMetadataOptions)256)); public static readonly DependencyProperty LabelVisibilityProperty = DependencyProperty.Register("LabelVisibility", typeof(Visibility), typeof(CustomItemControl), (PropertyMetadata)new FrameworkPropertyMetadata((object)(Visibility)0, (FrameworkPropertyMetadataOptions)256)); public bool Entered { get; set; } public string Label { get { return (string)((DependencyObject)this).GetValue(LabelProperty); } set { ((DependencyObject)this).SetValue(LabelProperty, (object)value); } } public Visibility LabelVisibility { get { //IL_000b: Unknown result type (might be due to invalid IL or missing references) return (Visibility)((DependencyObject)this).GetValue(LabelVisibilityProperty); } set { //IL_0006: Unknown result type (might be due to invalid IL or missing references) ((DependencyObject)this).SetValue(LabelVisibilityProperty, (object)value); } } }