惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

罗磊的独立博客
Cisco Talos Blog
Cisco Talos Blog
C
Check Point Blog
博客园_首页
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Martin Fowler
Martin Fowler
Recorded Future
Recorded Future
S
Security @ Cisco Blogs
L
LINUX DO - 最新话题
博客园 - 司徒正美
P
Privacy International News Feed
G
Google Developers Blog
I
Intezer
Hacker News - Newest:
Hacker News - Newest: "LLM"
博客园 - 聂微东
The GitHub Blog
The GitHub Blog
C
Cybersecurity and Infrastructure Security Agency CISA
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Scott Helme
Scott Helme
K
Kaspersky official blog
I
InfoQ
Y
Y Combinator Blog
T
The Blog of Author Tim Ferriss
Webroot Blog
Webroot Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
大猫的无限游戏
大猫的无限游戏
D
Docker
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
W
WeLiveSecurity
Microsoft Azure Blog
Microsoft Azure Blog
Spread Privacy
Spread Privacy
量子位
H
Hacker News: Front Page
Simon Willison's Weblog
Simon Willison's Weblog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
SecWiki News
SecWiki News
S
Security Affairs
Latest news
Latest news
人人都是产品经理
人人都是产品经理
C
CERT Recently Published Vulnerability Notes
S
Security Archives - TechRepublic
V
Visual Studio Blog
T
Troy Hunt's Blog
S
Secure Thoughts
F
Fortinet All Blogs
V
V2EX
The Register - Security
The Register - Security
J
Java Code Geeks
MongoDB | Blog
MongoDB | Blog
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO

博客园 - Eugene Leung

The AndroidManifest.xml File Make Web Not War 不使网站成为战场 地理考考你 开始进入SilverLight 这几个问题我来答 邓亚萍博士学位论文 英文题目 DartTrainer 免费下载 从MSN Messenger的Hand Writing开始 今天闲暇的时候画了两幅画 fyiReporting RDLC Report Custom Code - Eugene Leung 骑 自行车 从公司 到家 猴面包树果 baobab tree 继承Form中的DevExpress控件不能打开编辑器Designer LJP Little John PalmOS 1.0 Release 最新版 (RC9后的正式版) 当你老了 --叶芝 我的语文备忘 初中英语课本里隐藏着的惊人秘密(转载) 如果不出意外,我每周都会去工大打球 关于 韩国 申明 豆浆 和 端午 是其国家创造或历史的 看法
新开始做wpf,随便写点经验
Eugene Leung · 2007-10-29 · via 博客园 - Eugene Leung

1 偶尔遇到的问题  在编辑WPF UserControl的时候,发现新修改后的结果不能出现在window或page中

  问题在于工程中的obj目录下的文件保存了信息

  删除掉obj目录下的文件

2 使用UserControl的时候要注意在UserControl中指定命名空间,在Page或Window中引用命名空间,

  指定命名空间:
  方法是
 xmlns:x="wpfapp.TestControl"
 x:Class="wpfapp.UpDownListView"

 
  引用命名空间:
  xmlns:wpfapp="clr-namespace:wpfapp"
  xmlns:空间引用变量="clr-namespace":空间名

3.如果发现不能找到InitializeComponent的问题


  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
  <Import Project="$(MSBuildBinPath)\Microsoft.WinFx.targets" />

4.怎么像Winform那样通过代码动态加控件

            Button btn = new Button();
            btn.Width = 75;
            btn.Height = 23;

            btn.Margin = new Thickness(0, 0, btn.Margin.Right, btn.Margin.Bottom);
            btn.HorizontalAlignment = HorizontalAlignment.Left;
             
            StackPanel pnl = new StackPanel();
            pnl.Children.Add(btn);
            pnl.Children.Add(lst);

            this.Content = pnl;