Tag Archives: last

Modern User Interface Design Tools - Part 3: Expression Blend vs. Flex Builder

In the previous part I took a closer look at how and to what extent Microsoft Expression Blend and Adobe Flex Builder offer pixel-graphics and vector-graphics tools to enable GUI designers to create modern user interfaces. In addition I outlined the concept of 9-Slice-Scaling, a method to make pixel graphics scalable without any quality loss. In this last part of the series I’m going to give a short example of how the concept is implemented in both tools and finally provide an overall comparison

Go here to read the rest:
Modern User Interface Design Tools - Part 3: Expression Blend vs. Flex Builder

Using Silverlight/Expression Blend for eLearning Development

Elearning development tools: only Adobe? Over the last ten years or so, major elearning developers have preferred to use tools like Flash, Authorware and Director from Adobe (earlier Macromedia). The reason was simple– it was an easier way to achieve the multimedia integration needed to deliver engaging content over variety of media (standalone CD based and then transitioning to web based). In recent years, with the inclusion of various features in Flash and the vast installation base of Flas

Original post: 
Using Silverlight/Expression Blend for eLearning Development

XAML By FARR

For the last year and a half I have been working extensively on WPF applications.  During this time I have learned a great deal in architecting, coding and improving WPF application design and development.  This will be my first of a series of blog posts detailing my knowledge gained.  One may ask why it has taken so long to begin blogging about this topic?  I can answer with one word, laziness.  Yes, I have been lazy when it comes to blogging about the things I have learned, however, it is bett

Here is the original: 
XAML By FARR

Maintaining balance [A versatile red-black tree implementation for .NET (via Silverlight/WPF Charting)]

Problem I spent some time in my last post explaining how Silverlight/WPF Charting takes advantage of an ordered multi-dictionary to improve the performance of various scenarios . I wrote about Charting’s use of a custom binary tree implementation and…( read more )

See the original post here:
Maintaining balance [A versatile red-black tree implementation for .NET (via Silverlight/WPF Charting)]

Animation Hack Using Attached Properties in Silverlight

In my last post I blogged about using Attached Properties to get around the limitation that only Dependency Properties can be animated. One astute commented noted that he was guessing this could be applied to animations as well and the answer is yet it can. However, it requires one extra step that makes it a little less appealing. Also I mentioned in my last post, I got this idea from the Climbing Mt Avalon workshop at MIX which has now been posted online and I would recommend watching if you’re doing Silverlight or WPF work. And now on to the code… Typically if you want to animating something like the width of a grid in a column that isn’t animatable either because it isn’t a double, color, or another easily animatable type, then you would declare a dependency property on your own host class, usually a UserControl, and then animate that instead. A good example is this blog post on the subject which is what I’ve referred to many times. However, if we take the attached property route instead of putting the code in our user control, we could declare our own attached property to do the work for us. Here is a simple example: public static class Attachments { public static readonly DependencyProperty ColumnWidthProperty = DependencyProperty .RegisterAttached( “ColumnWidth” , typeof ( double ), typeof ( Attachments ), new PropertyMetadata ( new PropertyChangedCallback (OnColumnWidthChanged))); public static void SetColumnWidth( DependencyObject o, double value) { o.SetValue(ColumnWidthProperty, value); } public static double GetColumnWidth( DependencyObject o) { return ( double )o.GetValue(ColumnWidthProperty); } private static void OnColumnWidthChanged( DependencyObject d, DependencyPropertyChangedEventArgs e) { (( ColumnDefinition )d).Width = new GridLength (( double )e.NewValue); } } Once we have this code we can now simply animate the attached property like so: Unfortunately if you try the above code (after adding in the mouse event handlers) it won’t work. Why not? Well there seems to be an issue with animating custom attached properties when setting the target property directly in code (actually you’ll notice I left that out above. However, there is a way around it which I found over on Ed’s blog which is to set the target property in code . So here is the code behind with the work around: public partial class MainPage : UserControl { public MainPage() { InitializeComponent(); Storyboard .SetTargetProperty(expandBlue.Children[0], new PropertyPath ( Attachments .ColumnWidthProperty)); Storyboard .SetTargetProperty(expandBlue.Children[1], new PropertyPath ( Attachments .ColumnWidthProperty)); Storyboard .SetTargetProperty(expandRed.Children[0], new PropertyPath ( Attachments .ColumnWidthProperty)); Storyboard .SetTargetProperty(expandRed.Children[1], new PropertyPath ( Attachments .ColumnWidthProperty)); } private void Blue_MouseLeftButtonDown( object sender, MouseButtonEventArgs e) { expandBlue.Begin(); } private void Red_MouseLeftButtonDown( object sender, MouseButtonEventArgs e) { expandRed.Begin(); } } Once we set the target property via code, then everything works great. However, that is a pain and makes things a lot less clean. But still I think this is a useful approach to animating the properties that are not easily animatable.

Originally posted here:
Animation Hack Using Attached Properties in Silverlight

Silverlight vs Flash: 3D Spinning/Rotating Globe

I found that there isn’t too much 3d globe resources. Therefore, I am here to release a new one. Again, this a comparison between Papever Vision 3D and Kit 3D. This post is actually a minor modification of my previous article Image Rotating Cube. I suppose the Flash and Silverlight versions will look like more or less the same as in the last one. However, out of my expectation, Kit3D engine seems not generating a textured mapped sphere very well.

See the rest here:
Silverlight vs Flash: 3D Spinning/Rotating Globe