Pain Point 1: XAML always create the controls by its default constructor This means, you need to have a default constructor for you control, and the constructor will always be used by XAML. So, you can not use constructor dependency injection to pass things like services, gateways to your control. ...
Lesson 1: trust it Everything could cause problem. There is no API could be really stable. Even it is stable itself, the interop and version difference or mis-use could cause problems as well. Lesson 2: rely on 3rd party vendor Add-in express is causing lots of troubles. Should be no feature rely ...
Outlook的对象模型中,很多对象都有一个MAPIOBJECT属性。这个属性可以用来获得对应的MAPI对象。最简单的应用可能就是取得MailItem上的一些额外属性,比如取得Attachment的ContentId。 要正确使用这个属性不容易。首先,不要在进程外取得属性的值,也就是说不能用Office Automation来启动Outlook,必须是在AddIn中取值。用伪代码,示例如下: Marshal.GetIUnknownForObject(attachment.MAPIOBJECT) Marshal.QueryInterface(pUnk, ref IID_IMAPIProp, ...
早上送女友去上班,从东直门到宣武门。因为反正要返回东直门的,所以索性坐了完整一圈。早八点的二号线,真是相当的恐怖啊。观察出了一个最高峰的地铁段,从复兴门到阜成门。也许大家都住在一号线沿线,然后去金融街上班吧。东直门的人反而不是很多。
taowen
搜索本博客
我的相册
C6038ae3-566b-4f0f-a7a4-4e96c192012b-thumb
step2
共 6 张
存档
最新评论