07月 29th, 2007
下午安装了Windows Server2008 June CTP和VS2008 Beta2,在Server2008上VS的运行速度还可以,而且运行几次后启动速度会变得非常快,可能得益于系统的内置应用程序优化吧。
安装速度比Beta1版本有了较大提高(P.S:而且安装.NET Framework3.5过程中不用重启了,可能与我没有安Windows SDK有关。当时在Vista上安装Beta1时第一次竟然出现Error,导致我重装Vista-_-!!)。UI配色更喜欢了(偶喜欢那种蓝色 ^^)。在新建工程时可以选择Framework的版本,这在以前的版本中提到过。明显的变化是XAML设计器中增加了缩放工具,在Design区下方的状态栏中增加了XAML元素的选取,比以前更方便了,并且XAML的智能感知功能更加强大。其他方面由于我没有涉及,新增或改变我无法说起,但对于新技术的支持应该是肯定的~希望正式版早日出来~
C#, VisualStudio, WPF Develop
07月 24th, 2007
Visual Studio 2008 Beta 2 was released to the web for download today. The releases are available both as regular installs and as VPC images. If you choose the regular installation, you should run this script to "ensure that the installation of .NET Framework 3.5 Beta 2 will not affect the development of ASP.NET AJAX 1.0 applications."
This version is a 全功能 version. It includes C#3.0, VB 9, LINQ and so on, also .NET Framework 3.5 has more new features:
- Support for Addins
- Xbaps now run in FoerFox
- Cookies can be shared between XBAP's and Web Apps
- Better support for binding to BindingList coll and LINQ
- new UIElement3D, Contai
- nerUIElement3D, ModelUIElement3D classes which make 3D stuff easy
- Place 2D elements on 3D using Viewport2DVisual3D
- RichTextBox has embedded elements enabled (IsDocumentEnabled property)
- IME support has improved. Filtering text in IME is now a well suported scenario

C#, VisualStudio, WPF Develop
07月 18th, 2007
在WPF中,Windows窗体的风格(Style)有如下四种:
None.
SingleBorderWindow (default).
ThreeDBorderWindow.
ToolWindow.

但有时我们却想创建非矩形框的Windows,例如程序界面无边框,背景透明,可在xaml文档中的Windows Element下添加如下代码可实现窗体背景的透明化。
<window windowstyle="None" allowstransparency="True" background="Transparent"> </window>

P.S:还记得4月去小易那里看到的他们做的IM软件的登录窗口,帅!
C#, WPF Develop
07月 17th, 2007
C#, Program Develop
06月 21st, 2007
WinForms的C#实现,还没有认真去看WPF,不知在WPF中怎样实现。
[coolcode]double countOpacity;
for (countOpacity=this.Opacity; countOpacity >= 0; countOpacity = countOpacity - 0.01)
{
this.Opacity = countOpacity;
Thread.Sleep(5);
}
this.Close();[/coolcode]
C# Develop