private void Text(double x, double y, string text, Color color) { Hyperlink h = new Hyperlink(); TextBlock textBlock = new TextBlock(); textBlock.Text = text; textBlock.Foreground = new SolidColorBrush(color); Canvas.SetLeft(textBlock, x); Canvas.SetTop(textBlock, y); mycanvas.Children.Add(textBlock); }
var h = new Hyperlink(); h.Inlines.Add(text); var textBlock = new TextBlock(); textBlock.Inlines.Add(h);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)