随笔 - 35  文章 - 4  评论 - 0  阅读 - 8511 
//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   码农小白修炼记  阅读(84)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 【译】Visual Studio 中新的强大生产力特性
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构
· 字符编码:从基础到乱码解决
点击右上角即可分享
微信分享提示