private void Control_MouseUp(object sender, MouseButtonEventArgs e) { var destinationNode = DestinationNodeGetter?.Invoke(); if (destinationNode != null) { NavigateToNode(destinationNode); } }
private void Control_MouseEnter(object sender, MouseEventArgs e) { var destinationNode = DestinationNodeGetter?.Invoke(); if (destinationNode == null) { return; } this.TextDecorations = System.Windows.TextDecorations.Underline; if (defaultForeground == null) { defaultForeground = this.Foreground; } Foreground = Brushes.Blue; }