blob: 12adba1bf16d3c9723b7833f5614533d0db51c24 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
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);
}
}
}
|