karl140.6

Blend and Visual Studo Team,

I have a VS2005 (vb.net) WPF soution.

If I add a WPF form, I get two files in my solution explorer, the xaml and the xaml.vb file. The are both visible and very quick and easy access and open.

Now, if I open that same soltion in Blend, the problems start.

1. Blend does not recognize the code behind file that the solution has. If I select a control on the form and attempt to set an event handler, it tells me there is no code behind file, when clearly there is.

2. If I use Blend and add a new Window or Page to the above WPF solution, Blend create a xmal and xaml.vb file and tucks the xaml.vb file instead an arrow icon. I Blend now reconizes the .vb file and problem #1 no loger applies.

However... when I switch back to VS 2005, only the xaml file is visible. If I click the file, the soltuion explorer does not change it's toolbar (like it did in 2003), giving me the option to open the xaml file (Design) or open the xaml.vb file (Code). Instead, I have to right click the xaml file and select View Code.

I did some checking in the .project file and sure enough, these two files are added to the project differently!

Can you relase a hot fix to correct this problem.

Obviously, Blend needs to be able to recongize code behind files.

Can't we fix VS 2005, put the (Design) and (Code) button back in the Solution Explorer When I'm at, (sorry), someone moved the buttons around from where they were in 2003. 2003 had a much better position, since they were pinned left and not floating to the right, moving their position based on context. Those of the two most often clicked buttons, why would someone make those float left and right. Does not make sense.

Is there a hack I can employ Some registy setting to force the (Design) and (Code) icons to be present

Yes, I know I can press the show all files button, but...

Thank you your help,

Karl




Re: Windows Presentation Foundation (WPF) VS 2005 & Blend - Solution Explorers not friendly - Microsoft Can you address this?

Rob Relyea

Can you try VS 2008 ("Orcas") beta 1 and give us feedback on that experience

VS 2005 + extensions is not the mainline scenario, so we're unlikely to tweak it at all...as it takes away people from building VS 2008 to solve WPF developers problems.

See my recent blog post here: http://rrelyea.spaces.live.com/blog/cns!167AD7A5AB58D5FE!2096.entry

(If using VS 2008 doesn't work for you yet, you may be able to tweak the WPF project and item templates that ship with the extensions.)

Hope that helps. Sorry I don't have a bette answer for you...

Thanks, Rob

Rob Relyea | Program Manager, WPF & Xaml Language Team

robrelyea.com | /blog | /wpf | /xaml





Re: Windows Presentation Foundation (WPF) VS 2005 & Blend - Solution Explorers not friendly - Microsoft Can you address this?

karl140.6

Rob,

I have not tried VS 2008 yet. I normally stay away from pre-release software since I spend all my time in "production" mode.

What has your team expierenced

If you add a new file in Blend and then view the project in Orcas, can you simply click on the C# or VB.Net code file, or do you have to "right click the .xaml file" and select, View Code

Karl






Re: Windows Presentation Foundation (WPF) VS 2005 & Blend - Solution Explorers not friendly - Microsoft Can you address this?

NTDeveloper

In all honesty, I find the visual designers in both Expression and Orcas fairly useless. To start of with, their "look and feel" downright annoys me. Moreover, these designers don't expose 1/10 of the funtionality the framework provides. On a more positive note though, the Orcas XAML text editor is capable and has good intellisense support. It does crash quite a bit; however, that is to be expected from a Beta 1 product. Anyway, my advice to you is to thoroughly learn XAML and to not depend on the visual designers. Unless the XAML designer improves DRAMATICALLY between now and the time Orcas is released, the only thing I'll ever use it for is a preview pane with which to examine my layout.





Re: Windows Presentation Foundation (WPF) VS 2005 & Blend - Solution Explorers not friendly - Microsoft Can you address this?

Rob Relyea

It is hard to say what my team has experienced...we are busy primarily buildng WPF, not WPF applicatons. (although you can imagine that we build a lot of them...)

People on this forum are the best to ask.

With VS 2008 Beta 1 and Expressio Blend V1, I was able to create a WPF project in VS 2008 (in either VB or C#) and then open that same project/solution in Blend. When I added a new item in Blend and went over to VS, it realized there had been a change to the project file and said it needed to reload the project.

Once the project was reloaded, everything seemed fine...the code behind file was nested under the .xaml file in the Solution explorer.

Hope that helps.

Thanks, Rob

Rob Relyea | Program Manager, WPF & Xaml Language Team

robrelyea.com | /blog | /wpf | /xaml





Re: Windows Presentation Foundation (WPF) VS 2005 & Blend - Solution Explorers not friendly - Microsoft Can you address this?

jkhjhkjh

This appears to only happen to me when I initially create the project in VS 2005. If I create the project in Expression Blend and then open it up in VS 2005 everything seems to work fine, I can add new items in either VS 2005 or blend and both editors seem to be able to recognize the new items and work fine. But if I initially create the project in VS 2005 I end up getting the same problems that you are describing. I think VS 2005 must be leaving something out of the solution file that screws things up from then on. I haven't tested this as much as I would like, but hopefully that will help.

Tyler






Re: Windows Presentation Foundation (WPF) VS 2005 & Blend - Solution Explorers not friendly - Microsoft Can you address this?

Rob Relyea

Since I had posted to this thread I discovered a new tool from Blend team to make Blend work well with VS 2005 or VS 2008. It may help this situation.

I posted it to my WPF Tools category as Making Blend + VS 2008 work nicely together - using Blend Configurator

I haven't tested to see if it changes the behavior from RTM when you switch it to VS 2005...

Thanks, Rob

Rob Relyea | Program Manager, WPF & Xaml Language Team

robrelyea.com | /blog | /wpf | /xaml





Re: Windows Presentation Foundation (WPF) VS 2005 & Blend - Solution Explorers not friendly - Microsoft Can you address this?

karl140.6

Tyler,

Glad I'm not crazy. Thank you very much for the information, it's a big help.

Karl






Re: Windows Presentation Foundation (WPF) VS 2005 & Blend - Solution Explorers not friendly - Microsoft Can you address this?

karl140.6

Rob,

Thank you for for following up and passing this information along.

I think Microsoft is doing an awesome job with .Net 3.0 development and Blend.

Karl






Re: Windows Presentation Foundation (WPF) VS 2005 & Blend - Solution Explorers not friendly - Microsoft Can you address this?

karl140.6

Tyler,

I tried the suggestion. Everything worked, until I closed both Blend and Visual Studio 2005, then repoened VS 2005. The code behind files were no loger visible. Had to use Show All Files to get the little "+" icon or right click the file and select View Code.

I'll try the Blend Configurator on Sunday. I'm preparing for a demo of Blend in Raleigh, NC on Saturday and don't want to chance anything tonight.

I'm sure this won't be the case when Orcas and Blend are RTM.

Cheers,

Karl