Dax Pandhi's nAESTHETIC Dax Pandhi's nAESTHETIC Dax Pandhi's nAESTHETIC Subscribe to this Blog's RSS feed Subscribe to my DeviantArt RSS feed

Popular art from my DeviantArt account:


  Wednesday, June 13, 2007


Furthering Triggers for simplification

I was recently ranting about WPF and Silverlight. Andy expanded and clarified his thoughts on his blog, where he also mentions:

| My fear, though, is that the industry will try to make XAML yet-another utility language

That brings up a point I will be raising with some people at Microsoft. I think XAML can be made more powerful in a few key aspects. I'm not talking about making Andy's fears real. Far from it. I want XAML to take over as much of visual side of things so that developers have to do even less for the UI and concentrate on their code.

One of these is the Triggers architecture. I think it should be expanded out of the Template zone. Right now only ControlTemplates and Styles use Triggers. If you introduce higher level property and event triggers in XAML objects, a lot of visual programming is possible.

Let's take an example of a simple textbox. Our goal is to make the textbox red when a negative value is entered. You can easily inherit the textbox, add two bits of code and voila. It's done. But that's with procedural code. If you have more powerful triggers, a designer can go in, select a control and add the trigger for this like you would a IsMouseOver = True trigger. It would make things easier. A lot.

This was just a simple and stupid example. But a lot of interactivity can be added with this. And lots of functionality can be added by the designer - mostly functionality relating to the UX that he or she would have to depend upon a developer for.

.NET 4.0 will be great. I can't wait.









6/14/2007 6:31:13 AM (India Standard Time, UTC+05:30)
Great point Dax, that's what I was trying to get at -- let's make XAML specific to UX, and leave the general purpose tools to other languages.

Waiting for .NET 4.0? sheesh, I'm still playing with the bubble wrap from .NET 3.0!
2/17/2008 12:53:06 AM (India Standard Time, UTC+05:30)
I agree. As a designer many times I want to do other things as well in triggers like if X < Y... Why can I only do equals to!!!!

4/26/2008 5:16:32 AM (India Standard Time, UTC+05:30)
I'm agree with you.
4/30/2008 10:31:20 AM (India Standard Time, UTC+05:30)
I'm agree with you.
5/15/2008 2:38:46 AM (India Standard Time, UTC+05:30)
Yes, I'm agree...
5/30/2008 5:07:17 AM (India Standard Time, UTC+05:30)
Yes. Im agree.
6/14/2008 3:04:28 PM (India Standard Time, UTC+05:30)
Yes. Im agree.
Name
E-mail
Home page

Comment (HTML not allowed)  

Enter the code shown (prevents robots):

Copyright � 2005-2007 Dax Pandhi. All rights reserved.
designed by nukeation
Sign In