I'm testing and developing WinFX Applications on Windows Vista Beta. I'll post all things I consider as interesting here and keep you up to date with my developing experiences.
Visual Studio 2005 - Award for Customer Excellence
Get link
Facebook
X
Pinterest
Email
Other Apps
I'm proud to tell you that I just received a Award for Customer Excellence related to Visual Studio 2005!
Some of you may have wondered who the creators of Microsoft Max did the Chrome. Although this breaks one of the Top 10 Vista rules I will show how to create a WPF window with custom chrome. You can't get there by simply setting the border of a WPF Window to None because always a thick border remains. You have to do a work around and create an empty Win32 window and fill it with your own WPF controls. You can use the HwndSource object to do this. This object is intended to place WPF controls into Win32 Applications but you can also use it to place a WPF control onto your Windows Desktop which is also a Win32 application. HwndSource will call the native function CreateWindowEx and create the window for you. Dim params As HwndSourceParameters = New HwndSourceParameters("CustomChrome 1", 400, 300) Dim hwnd As HwndSource = New HwndSource(params) hwnd.RootVisual = New Page1 This code will create a default window for you. The HwndSourceParameters 's constructor sets the...
Whenever you offer a Cancel Changes command you need to delay updates to the Source until the user Accepts Changes e.g. by clicking OK or Save. Although WPF's two way bindings update the source immediately you can delay the update by adding UpdateSourceTrigger=Explicit to your binding expression. {Binding Path=Text, UpdateSourceTrigger=Explicit} The Source won't be updated until you call BindingExpression.UpdateSource .
IValueConverter moved from System.ComponentModel to System.Windows.Data PropertyGroupDescription moved from System.ComponentModel to System.Windows.Data Its new constructors allow you to write: Dim g As System.ComponentModel.PropertyGroupDescription g = New System.ComponentModel.PropertyGroupDescription() g.PropertyName = "Status" g.ValueConverter = conv like this: Dim g As System.Windows.Data.PropertyGroupDescription g = New System.Windows.Data.PropertyGroupDescription("Status", conv) ICollectionView properties were renamed Sort --> SortDescriptions GroupBy --> GroupDescriptions and much more ... Unfortunatelly MS released December CTP before I could complete this. So stay tuned to receive information about December CTP! ATM I'm downloading and Installing Vista December CTP WinFX December CTP WinFX December CTP SDK Microsoft Visual Studio Code Name "Orcas" Community Technology Preview - WinFX Development Tools
Comments