Zhanbo Sun [MS]

Realize .NET & Windows Vista Potential

Browse by Tags

All Tags
  • Silverlight QuickStart Using Microsoft Expression Blend 2

    Filed under:
    Silverlight QuickStart Using Microsoft Expression Blend 2 is live now. It is similar to the the Silverlight 1.0 Beta QuickStart except that it focuses on using the designer tool Microsoft Expression Blend 2 to create Silverlight graphics and UI rather
    PostTypeIcon
    19,443 Views
  • 5 Intensive Nights, 1.1 Silverlight Game

    Filed under:
    Vincent Vergonjeanne just posted BubbleFactory game written with Microsoft Silverlight 1.1 Alpha. You can play with it at http://cosmik.members.winisp.net/BubbleFactory/ . And if you are really good at this game, you can get yourself in its scoreboard
    PostTypeIcon
    3,771 Views
  • Windows Vista Tips (1-3)

    Filed under:
    I would like to share a few tips in using Windows Vista. I verified them in both Windows Vista Ultimate and Windows Vista Business, but they should be applicable to other versions as well. Maybe you have found one or two, but most of my friends were unaware
    PostTypeIcon
    13,139 Views
  • Just .NET (1): CurrentCulture or CurrentUICulture as IFormatProvider in String.Format()?

    Filed under:
    Either Thread.CurrentCulture or Thread.CurrentUICulture can serve as value for the first parameter in String.Format Method (IFormatProvider, String, Object[]) . But they are not interchangeable. We should use Thread.CurrentCulture here instead of Thread
    PostTypeIcon
    4,329 Views
  • Happy Lunar New Year 2006

    Filed under:
    One of my (Lunar) New Year Resolutions is to write more in longhornblogs.
    PostTypeIcon
    2,397 Views
  • Avalon Q&A 101-102 (on XAML)

    Q101: In XAML file, what can be used as x:Key value within Resources section? Answer: A key for a dictionary can be String, LiteralExtension, TypeExtension and StaticExtension. You will get this error message from parsing the following XAML: < Grid
    PostTypeIcon
    4,909 Views
  • Bill Gates Keynote from WinHEC 2005

    In his keynote presentation (April 25th, 2005), Microsoft Chairman and Chief Software Architect Bill Gates reflects upon the hardware industry over the last 20 years and how the introduction of 64-bit and multicore computing will create a wave of industry
    PostTypeIcon
    2,806 Views
  • WinHEC 2005 Starts

    The annual Microsoft conference on computer hardware and drivers, WinHEC 2005 starts today. It also hosts the launch event for Windows x64 . (More highlights .) Of course, many people are very interested in previewing latest longhorn build. Attendants
    PostTypeIcon
    2,452 Views
  • DockPanel.DockProperty, of type DependencyProperty, is a CLR field

    In Avalon property system, DockPanel.DockProperty is an instance of DependencyProperty. DependencyProperty is a CLR class, and DockProperty is a CLR field defined within DockPanel class: .field public static initonly [WindowsBase]System.Windows.DependencyProperty
    PostTypeIcon
    3,409 Views
  • Locally set value takes precedence over Style value

    (Note: Whoever has a better tool to post code into this blog system please contact me. ) If a DependencyProperty’s value is locally set, this value takes precedence over whatever value specified in Style. For example, the only button’s Background is LightGreen
    PostTypeIcon
    2,541 Views
  • FrameworkPropertyMetadata.Inherits

    Filed under:
    FrameworkPropertyMetadata.Inherits indicates whether the DependencyProperty registered with this metadata is inheritable or not. For example, Binding.DataContextProperty is inheritable, yet DockPanel.DockProperty is not. The demo code below firstly creates
    PostTypeIcon
    2,703 Views
  • Visual Studio 2005 Shortcut Keys

    The more you play with March 2005 CTP with VS2005, the more likely you will pick up new shortcut keys to speed up your programming. Here are just five of them (for Visual C# projects): Ctrl+K, Ctrk+X: Insert Snippet Ctrl+K, Ctrl+S: Surround With Ctrl
    PostTypeIcon
    6,950 Views
  • What’s New in Avalon March 2005 CTP

    For people who are following WinFX in general and Avalon in particular, this MSDN technical article is very informative: Introducing the March 2005 CTP: What's New in "Avalon". It provides two sample projects you can download and play with while you are
    PostTypeIcon
    2,985 Views
  • CLR Event vs. Routed Event: Two Demo Applications

    Because it is extremely difficult to paste code snippet into longhornblogs' new rich text editor, I have to move the bulk of my post into msdn blogs. As you may have already known, you can define and use Dependency Property as well as CLR Property in
    PostTypeIcon
    2,473 Views
  • Raise Routed Event through RaiseEvent

    Filed under: ,
    (Version: Avalon CTP 2004 November) Both UIElement and ContentElement implement IInputElement interface, which defines RaiseEvent method. This post gives you an example of using it. We start with a simple Xaml file: < Window x:Class = " AvalonApplication1
    PostTypeIcon
    6,141 Views
  • Show me the Info of Visual Tree

    Filed under:
    (Version: Avalon CTP 2004 November) What does mainWindow ‘s visual tree look like when a simple Xaml file (below) is rendered onto the screen? < Window x:Class = " AvalonApplication1.Window1 " xmlns = " http://schemas.microsoft.com/2003/xaml
    PostTypeIcon
    11,162 Views
  • define:Avalon

    Filed under:
    Many years ago when Microsoft.NET is released, the first question people ask is “What is .NET”? Well still different people have different answers, but hopefully you have one! Here comes Avalon. What is it? I like the explanation in the autorun
    PostTypeIcon
    5,031 Views
  • IFE: Input, Focus & Event

    Filed under:
    Have you ever wondered what IFE means while reading MSDN document on System.Windows.ContentElement class? It states, ContentElement Class is a DependencyObject with IFE. As it turns out, it stands for Input, Focus and Event. Next document refresh will
    PostTypeIcon
    2,452 Views