diff options
| author | Lucas Faria Mendes <lucas.fariamo08@gmail.com> | 2026-03-30 13:35:25 +0000 |
|---|---|---|
| committer | Lucas Faria Mendes <lucas.fariamo08@gmail.com> | 2026-03-30 13:35:25 +0000 |
| commit | 674ca83ba9243a9e95a7568c797668dab6aee26a (patch) | |
| tree | 4a905b3fb1d827665a34d63f67bc5559f8e7235b /Gestor.Application/Componentes/CustomItemControl.cs | |
| download | gestor-674ca83ba9243a9e95a7568c797668dab6aee26a.tar.gz gestor-674ca83ba9243a9e95a7568c797668dab6aee26a.zip | |
feat: upload files
Diffstat (limited to 'Gestor.Application/Componentes/CustomItemControl.cs')
| -rw-r--r-- | Gestor.Application/Componentes/CustomItemControl.cs | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/Gestor.Application/Componentes/CustomItemControl.cs b/Gestor.Application/Componentes/CustomItemControl.cs new file mode 100644 index 0000000..7f5cbeb --- /dev/null +++ b/Gestor.Application/Componentes/CustomItemControl.cs @@ -0,0 +1,54 @@ +using System;
+using System.Runtime.CompilerServices;
+using System.Windows;
+using System.Windows.Controls;
+
+namespace Gestor.Application.Componentes
+{
+ public class CustomItemControl : ItemsControl
+ {
+ public readonly static DependencyProperty LabelProperty;
+
+ public readonly static DependencyProperty LabelVisibilityProperty;
+
+ public bool Entered
+ {
+ get;
+ set;
+ }
+
+ public string Label
+ {
+ get
+ {
+ return (string)base.GetValue(CustomItemControl.LabelProperty);
+ }
+ set
+ {
+ base.SetValue(CustomItemControl.LabelProperty, value);
+ }
+ }
+
+ public System.Windows.Visibility LabelVisibility
+ {
+ get
+ {
+ return (System.Windows.Visibility)base.GetValue(CustomItemControl.LabelVisibilityProperty);
+ }
+ set
+ {
+ base.SetValue(CustomItemControl.LabelVisibilityProperty, value);
+ }
+ }
+
+ static CustomItemControl()
+ {
+ CustomItemControl.LabelProperty = DependencyProperty.Register("Label", typeof(string), typeof(CustomItemControl), new FrameworkPropertyMetadata(string.Empty, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault));
+ CustomItemControl.LabelVisibilityProperty = DependencyProperty.Register("LabelVisibility", typeof(System.Windows.Visibility), typeof(CustomItemControl), new FrameworkPropertyMetadata((object)System.Windows.Visibility.Visible, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault));
+ }
+
+ public CustomItemControl()
+ {
+ }
+ }
+}
\ No newline at end of file |