示例#1
0
        private Hyperlink CreateHyperLinkByShapedWord(IShapedWord shapedWord)
        {
            var link = new SandoQueryHyperLink(new Run(shapedWord.Word),
                                               searchBox.Text + " " + shapedWord.Word, 0)
            {
                FontSize        = shapedWord.FontSize,
                Foreground      = shapedWord.Color,
                IsEnabled       = true,
                TextDecorations = null,
            };

            link.Click += (sender, args) => LogEvents.AddWordFromTagCloud(searchBox.Text,
                                                                          "TOFIXTHE", shapedWord.Word);
            link.Click += StartSearchAfterClick;
            link.Click += (sender, args) => TagCloudPopUpWindow.IsOpen = false;
            return(link);
        }