Quellcode durchsuchen

avalonia: MonthView you can click through the day numbers now

Kenric Nugteren vor 2 Wochen
Ursprung
Commit
1b77e79d28
1 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  1. 2 1
      InABox.Avalonia/Components/MonthView/MonthView.axaml.cs

+ 2 - 1
InABox.Avalonia/Components/MonthView/MonthView.axaml.cs

@@ -434,7 +434,8 @@ public partial class MonthView : UserControl
                     Background = new SolidColorBrush(date == DateTime.Today && CurrentDate.Month == date.Month ? Colors.CornflowerBlue : Colors.Transparent),
                     Background = new SolidColorBrush(date == DateTime.Today && CurrentDate.Month == date.Month ? Colors.CornflowerBlue : Colors.Transparent),
                     Width = _dayLabelWidth,
                     Width = _dayLabelWidth,
                     Height = _dayLabelWidth,
                     Height = _dayLabelWidth,
-                    CornerRadius = new(_dayLabelWidth / 2)
+                    CornerRadius = new(_dayLabelWidth / 2),
+                    IsHitTestVisible = false
                 };
                 };
 
 
                 var block = new TextBlock
                 var block = new TextBlock