EPG-Erinnerung: logical child Fehler behoben
This commit is contained in:
parent
b3d1e2e851
commit
4db5dd6f23
1 changed files with 5 additions and 2 deletions
|
|
@ -1025,8 +1025,9 @@ public partial class MainWindow : Window
|
|||
BorderBrush = new System.Windows.Media.SolidColorBrush(borderColor),
|
||||
BorderThickness = new Thickness(1), CornerRadius = new CornerRadius(3),
|
||||
Cursor = Cursors.Hand,
|
||||
Tag = ch, Child = content
|
||||
Tag = ch
|
||||
};
|
||||
box.Child = content;
|
||||
|
||||
// Tooltip mit Zeilenumbruch und Beschreibung
|
||||
var ttText = $"{ev.StartTime:HH:mm}\u2013{ev.EndTime:HH:mm} {ev.Title}";
|
||||
|
|
@ -1095,9 +1096,11 @@ public partial class MainWindow : Window
|
|||
menu.IsOpen = true;
|
||||
};
|
||||
|
||||
// Erinnerungs-Indikator anzeigen wenn Erinnerung gesetzt
|
||||
// Erinnerungs-Indikator: bell-Icon oben rechts
|
||||
if (_reminderService.HasReminder(ch.Name, ev.StartTime))
|
||||
{
|
||||
// box.Child auf null damit content aus dem logical tree raus ist
|
||||
box.Child = null;
|
||||
var bell = new TextBlock
|
||||
{
|
||||
Text = "\u23f0",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue