//public Toolbox()
//{
// ItemsControl items = this as ItemsControl;
// TextBlock textBlock = new TextBlock();
// textBlock.IsHitTestVisible =false;
// textBlock.Text = "Template3";
// ToolTip toolTip = new ToolTip();
// Image image = new Image();
// image.Height = 75;
// image.Width = 150;
// image.Name = "Template3";
// //string str = string.Empty;
// //str = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
// BitmapImage bi=new BitmapImage();
// bi.BeginInit();
// bi.UriSource= new Uri("E:\\Database06\\BasicFunction\\InfoClient\\3.0\\Source\\InfoClient\\DiagramDesigner\\Resources\\Images\\Templates\\Template1.jpg", UriKind.RelativeOrAbsolute);
// bi.EndInit();
// //if (File.Exists(@str + "\\Template\\" + templateName + ".xml"))
// image.Source = bi;
// InlineUIContainer ui= new InlineUIContainer(image);
// //textBlock.Inlines.Add(ui);
// items.Items.Add(ui);
// }
//{
// ItemsControl items = this as ItemsControl;
// TextBlock textBlock = new TextBlock();
// textBlock.IsHitTestVisible =false;
// textBlock.Text = "Template3";
// ToolTip toolTip = new ToolTip();
// Image image = new Image();
// image.Height = 75;
// image.Width = 150;
// image.Name = "Template3";
// //string str = string.Empty;
// //str = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
// BitmapImage bi=new BitmapImage();
// bi.BeginInit();
// bi.UriSource= new Uri("E:\\Database06\\BasicFunction\\InfoClient\\3.0\\Source\\InfoClient\\DiagramDesigner\\Resources\\Images\\Templates\\Template1.jpg", UriKind.RelativeOrAbsolute);
// bi.EndInit();
// //if (File.Exists(@str + "\\Template\\" + templateName + ".xml"))
// image.Source = bi;
// InlineUIContainer ui= new InlineUIContainer(image);
// //textBlock.Inlines.Add(ui);
// items.Items.Add(ui);
// }
浙公网安备 33010602011771号