);
lb.FontWeight = FontWeights.Bold;
lb.Background = Brushes.Blue;
lb.Foreground = Brushes.White;
lb.Content = name+"检测结果";
sp.Children.Add(lb);
TextBlock tb = new TextBlock();
tb.Padding = new Thickness(10);
tb.TextWrapping = TextWrapping.WrapWithOverflow;
tb.Width = 200;
tb.Text = name + "\r" + remark;
sp.Children.Add(tb);
Line ln = new Line();
ln.Stroke = Brushes.Black;
ln.StrokeThickness = 1;
ln.X2 = 200;
sp.Children.Add(ln);
StackPanel sp2 = new StackPanel();
sp2.Orientation = Orientation.Horizontal;
//-------------------sp2中增加一张
图片----------------------
Image myImage3 = new Image();
BitmapImage bi3 = new BitmapImage();
bi3.BeginInit();
bi3.UriSource = new Uri("images/help.jpg", UriKind.Relative);
bi3.EndInit();
myImage3.Stretch = Stretch.Fill;
myImage3.Source = bi3;
sp2.Children.Add(myImage3);
//-----------------------------------------------------------
Label lb2 = new Label();
lb2.FontWeight = FontWeights.Bold;
lb2.Content = "右键菜单显示路由信息";
sp2.Children.Add(lb2);
sp.Children.Add(sp2);
ToolTip ttp = new ToolTip();
ttp.Content = sp;
return (ttp);
}