Search
Thursday, November 20, 2008 ..:: Blendblog.net ::.. Register  Login
 Bloggers Minimize

 Print   
 Sponsors Minimize

 Print   
 Users Online Minimize
Membership Membership:
Latest New User Latest: areel
New Today New Today: 0
New Yesterday New Yesterday: 0
User Count Overall: 15

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

Online Now Online Now:

 Print   
 Welcome to blendblog.net! 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!


 Print   
 Focus in WPF was behaving like my Ford Focus... Minimize
Location: BlogsSean Cullinan    
Posted by: Sean Cullinan 1/28/2008 11:45 AM

I live on an island and have 2 cars.  One is a classic Island Car that I use on the unpaved roads that lead to the nice beaches: the Ford Focus.  This car is right out of the Adam Sandler Song, Ode To My Car.  It often does unpredictable things (for instance right now the window doesn't stay up so I had to put a Pringles can in the door to hold it up).  Maybe the developers who worked on focus in WPF also had one of these beauties :)

Actually, I got WPF focus to work quite well for me, but only after getting a better understanding of Visibility in WPF.  WPF only lets you set the focus on a control if IsVisible = True.  I was adding a textbox to a control in code and the Visibilty property was set to Visible so I thought that I was ok.  However this is NOT the same as having IsVisble = True.  IsVisible is caluclated when the control is rendered as opposed to when layout is occuring so they are actually separate things.  The soultion is that in order to set the focus on a textbox control that you create in code you need to do it on the IsVisibleChanged event.  This fixed my problem and I know have control over my focus (for the time being) as expected.

Thanks to Kris' Blog for explaining this one!

Permalink |  Trackback

Your name:
Title:
Comment:
Add Comment   Cancel 

  
 Search Minimize

 Print   
 Archive Minimize

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




Submit Survey  View Results

 Print   
Copyright 2008 by blendblog.net   Terms Of Use  Privacy Statement
DotNetNuke® is copyright 2002-2008 by DotNetNuke Corporation