//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);

            
                 

  //      }
posted on 2022-09-16 15:57  码农小白修炼记  阅读(90)  评论(0)    收藏  举报