Anonymous Methods …

I read Anonymous Methods support in Whidbey (CLR) last week and decided to play with it. This looks a lot like how Javascript (in IE) handles event – <body onload=”msgbox(‘hello’)” ..> In general Anonymous Methods allows code block in place of delegate. For example, public class TestApp: Windows.Application{ protected override void    OnStartingUp(Windows.StartingUpCancelEventArgs e) {  Window win =…

13

NNTP Reader built 100% using Avalon [WinHEC version]

Just finishing fine tuning my NNTP reader. This is a stateless news reader that requires outgoing permission to TCP Port 119. I guessed NNTP is less and less important since many corporation is blocking access out to abritary port these days. Once I zip up my app with source code (and find a location to…

12

Create Assembly in-memory and run it…

This has to do with CodeDom and Microsoft.CSharp namespace. The following code will let you compile and run code in memory, IMHO – perfect for scripting engine needs: using System;using Specialized = System.Collections.Specialized;using Reflection = System.Reflection;using CSharp = Microsoft.CSharp;using CodeDom = System.CodeDom.Compiler; public sealed class TestCompile{ static string ScriptCodeToCompileInMem = “public class Script {public void ScriptExecute(){System.Console.WriteLine(123);}…

5

source code for Avalon WINHEC NNTP reader …

This post is a follow up for http://blogs.msdn.com/digitalnetbizz/archive/2004/05/11/130291.aspx Some details of this sample project, I create this project to test out some features of Avalon [WinHEC version]. It’s currently all C# and MSBUILD. I have touched a few areas but on all – 1. Grid and other layout. 2. Animation 3. UIContext and Worker Thread…

4

XAML using CLR object as property …

Just today I discovered a feature of XAML – ability to use custom CLR object as property to my Avalon control. All you need in the XAML is to map your assembly into a namespace in XAML. This is kinda like XML serialization in CLR. Here’s an example of the usage in standard XAML element[from http://longhorn.msdn.microsoft.com]…

3

New and improved Nntp [dude] for Avalon March CTP …

I read Chris Sell’s blog and found out that the new Avalon CTP is available to public. As a member of the public I was too excited and decided to download and play with the CTP, CLR beta 2 and Visual C# Express. I was a bit worried as I have all kinds of VS…

3

Certain CS Books Appreciate in value…

Just last month I sold of my old CS books for more than what I purchase for.I bought all 3 in 1994 for about ~$25 each. I sold them for ~$37 each.I gained ~50% and make extra room in my bookshelf. How weird? I thought only house appreciate in value. If you are curious, the…

2

self::probe Avalon smart client

Ok. I got the Windows Presentation Framework (aka Avalon) from amazon.com 3 weeks back. It’s a great book to learn WPF and be sure to check Chris’s code sample update site. It’s been quite a bit of breaking change in WPF. So again, I decided to write a cool smart client application to learn about…

2

WPF 3d going mainstream?

I read Petzold’s blog from time to time and I realized recently he has posted a lot of good 3d content. http://www.charlespetzold.com/blog/2006/12/140114.htmlhttp://www.charlespetzold.com/blog/2006/12/160115.htmlhttp://www.charlespetzold.com/blog/2006/12/171020.htmlhttp://www.charlespetzold.com/blog/2006/12/220812.htmlhttp://www.charlespetzold.com/blog/2007/01/190146.html and finally it’s coming WPF 3d book by Petzold.http://www.charlespetzold.com/blog/2006/12/270206.html  5-6 years ago, there’s a trend to have app written in irregular window, layered window, pixel opacity or different chrome. Then came a wave of products…

1