Avalon Property Invalidation

If you are writing custom control. You sometimes need to know if your property change so that youcan do something about it. For example, your control is CustomControl and have Size property. If the Size property change, you need to Invalidate Measure so that it will go back and call your MeasureCore() again. For those…


String Theory (not char[])

I recently watch a science program from Nova and it’s really fascinating. It’s about a theory for everything. I strongly recommend this program… http://www.pbs.org/wgbh/nova/elegant/

1

Another h/w item failed right after warranty …

I really wonder if electronics component are made to fail right after basic 12 months warranty. This time is my MP3 player from iRock. 12 months + 2 days.

1

Visual Tree in Avalon Style…

A control itself is just a behavior and separate from visual presentation. A control normally comes with a default visual style (normally styles from the current desktop theme) and it can be override by the user of the control. They can override with by specifying their own Visual Tree within the Style tag. This will only…

1

Follow up: Animation in code. ..

Follow up my last posting with a link to Avalon animation in code.


Intro Animation in XAML

Animation is a based on change of certain value in the object over a duration. The value change can be the following type – DoubleAnimation, PointAnimatiom, ColorAnimation, LengthAnimation, FloatAnimation, SizeAnimation etc.. It’s all based on type. So which type should I use? The type used is based on the property that you want to animate. Take obj.Opacity as…


ILMerge …

A utility from Microsoft Research to merge multiple assemblies into one. For more info – http://research.microsoft.com/%7Embarnett/ilmerge.aspx

1

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

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