コード例 #1
0
        private void Control_MouseUp(object sender, MouseButtonEventArgs e)
        {
            var destinationNode = DestinationNodeGetter?.Invoke();

            if (destinationNode != null)
            {
                NavigateToNode(destinationNode);
            }
        }
コード例 #2
0
        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;
        }