几乎正确, 只需小的改正.
You are doing almost everything right, need only a few minor corrections.
同样的方式, 通过使用..., 作为一部分..., 更进一步
You can have a WPF application pop a Windows Form much in the same way that you can pop a WPF window from a Windows Forms application. Furthermore, you can place Windows Forms controls side-by-side with WPF controls on a WPF window or page by using the WindowsFormsHost control that will ship as part of the interoperability layer.
意味着, 同样地, 你所要做的就是, 一个方便的方法是
Windows Forms user controls will work the same as the standard Windows Forms controls, which means you can certainly use them in WPF applications. As far as third-party controls go, it depends on how these controls are built. If they are built as managed Windows Forms custom controls they will also work fine in this scenario. If they are built as ActiveX controls they can also be used in a WPF application as long as they are contained within a WindowsFormsHost control. Since Windows Forms already has support for hosting ActiveX controls, all you need to do is generate the managed wrappers for the ActiveX control and then use those wrappers to instantiate the control and host it within the WindowsFormsHost control on a WPF window or page. One handy way to do this is to simply create a Windows Forms user control that contains the ActiveX control and then simply host the user control in the WindowsFormsHost control.
类似如下
If you are strictly using code, you would write code similar to the following
更进一步, 你还需要做...
In addition, you will need to modify the project file because the Windows Application does not what to do with the XAML file.
在过去的几个月,
Over the last few months I wrote a series of blog posts that covered some of the new language features that are coming with the Visual Studio and .NET Framework "Orcas" release.
习惯使用, 相同点, 退一步, 使...与...不同
If you are used to using SQL to query databases, you are going to have something of a head start with Linq, since they have many ideas in common. Before we dig into Linq itself, let's step back and look at what makes SQL different from C#.
通过...达到目的, 把问题分解, 对...熟悉, 依赖于我们挑选一个好算法
Here we are describing how to achieve the result we want by breaking the task into a series of instructions. This approach, which is very familiar to us, is called imperative programming. It relies on us to pick a good algorithm and not make any mistakes in the implementation of it; for more complex tasks, the algorithm is more complex and our chances of implementing it correctly decrease.
让...做, 被称为
Here we have not specified an algorithm, or how to get the data. We have just declared what we want and left the computer to work out how to do it. This is known as declarative or logic programming.
走一遍
Let's walk through the Main method.
分成几组, 次序, 对每个
There are a lot of changes in C# 3.0. I have grouped the changes into four topics and will cover a topic in each article. The topics in an article will be somewhat related, and there are some dependencies between the new features, so reading the articles in the following order will be helpful.
一段时间一直, 忙于, 下列, 有相关经历
I have been doing C# 3.0 for a while now but I never wrote any tutorial related to C# 3.0 in my blog before. So, I decided to write a few C# 3.0 tutorials while I’m waiting the release of Silverlight 2.0 beta 1. I also notice that some of my friends from Silverlight forum are so silent lately and they don’t even so active in the forum. I know that they are busy with preparing to go to Mix08 or learning WPF/Media/Flash/Flex.
In this tutorial series, I will cover the following topics with full of explanations, sample and etc (like my other tutorials in my blog). This tutorials are dedicatedly written for those who already have some experiences with C# 1 or 2 and totally newbie for C# 3.0. You will need to install Visual Studio 2008 to run the sample code.
习惯于, 通知, 共享...,
The links will be updated once I published the tutorial in my blog. Please feel free to let me know if you want me to add something or if you have the suggestion or comment.
You can subscribe my feed if you used to read the blog through feed reader. OR, you can give me your email here then I will inform you if I post new tutorial in my blog. (Of course, I promise that I won’t share your mail with anyone and I won’t be spam you. You will have to activate your mail after putting your email address in this link.)