summaryrefslogtreecommitdiff
path: root/Decompiler/Gestor.Application.Componentes/CustomItemControl.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Decompiler/Gestor.Application.Componentes/CustomItemControl.cs')
-rw-r--r--Decompiler/Gestor.Application.Componentes/CustomItemControl.cs39
1 files changed, 39 insertions, 0 deletions
diff --git a/Decompiler/Gestor.Application.Componentes/CustomItemControl.cs b/Decompiler/Gestor.Application.Componentes/CustomItemControl.cs
new file mode 100644
index 0000000..12adba1
--- /dev/null
+++ b/Decompiler/Gestor.Application.Componentes/CustomItemControl.cs
@@ -0,0 +1,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);
+ }
+ }
+}