Thursday, May 26, 2022 ..:: ::.. Register  Login
 Bloggers Minimize

 Sponsors Minimize

 Users Online Minimize
Membership Membership:
Latest New User Latest: HarrisSampso
New Today New Today: 10
New Yesterday New Yesterday: 6
User Count Overall: 9826

People Online People Online:
Visitors Visitors: 17
Members Members: 0
Total Total: 17

Online Now Online Now:

 Welcome to! Minimize

If you are a developer or designer who is creating cutting edge user interface experiences using Microsoft Expression Blend you've just found a great resource!  The purpose of this site is to share our experience with this brand new product.  As with any new piece of software there is a ton to discover.  Bugs will be revealed and workarounds discovered, hopefully this can be a resource to share in the discovery process!

While this site will focus largely on Expression Blend, it will also encompass WPF, Visual Studio, Silverlight, and other .net 3.5 technologies as they relate to the creation of great software.

Please login using your Microsoft LiveID or register a new account.  Doing so will let you comment on any of the blog entries on the site.  We look forward to helping you in your endeavors as well as you helping others in theirs!  We'd love to have more bloggers on our site...if you are interested please register and contact us!

Follow us:

 Timelines and resources Minimize
Location: BlogsSean Cullinan    
Posted by: Sean Cullinan 1/18/2008 4:47 PM

I will explain the problem in simple terms that illustrate the limitation I'm running into.

I created a new blend project.  I set the window's background to Red.  I then add a button.  I create a timeline that is triggered to run when the button is clicked.  I create a keyframe at start and a keyframe half a second later that changes the background of the window to Blue.  I run the program and click the button and the background fades from red to blue.

I do this again, but this time I make Red a brush resource and blue a brush resource.  I set the window's background color to the red resource.  On my timeline I try to make it so that the first keyframe references the red resource and the second keyframe references the blue resources.  Blend (and apparantly WPF) doesn't let you do this.

Unless I'm missing something this seems to really limit your options when using defined resources instead of static colors for things.  The practical application of this is that I've created a control that has a "title bar" section that uses some resources defined in a resource dictionary.  I want the title bar to change color whenever gotfocus and lost focus happens on the control.  I want those colors defined as resources so I can skin my application.  In order to do this it looks like I have to figure something out in code (and probably not have any kind of animated fading between the two colors) instead of being able to create it in the XAML via blend.

Maybe someone out there can tell me that I'm overlooking something?

Permalink |  Trackback

Your name:
Add Comment   Cancel 

 Search Minimize

 Archive Minimize

 Blendblog Survey Minimize
Our next client application will be written using:

Which Tablet Do you expect to buy?

Submit Survey  View Results

Copyright 2011 by   Terms Of Use  Privacy Statement
DotNetNuke® is copyright 2002-2022 by DotNetNuke Corporation