kick it on DotNetKicks.com   Shout it  

Visual Studio 2010 Beta 2: Xaml Designer Surface With Binding

Just installed Visual Studio 2010 Beta 2 and the first thing I needed to see was how well the xaml designer worked. More specifically, I wanted to know if design-time data binding worked properly. Well here’s the screen shot. Looks great!

VS2010SilverlightWithDesignTimeBinding

The only thing was when I first opened the view instead of the formatted time, it displayed the name of the object in DataContext (CodeCamp.Model.Message). When I changed the binding from {Binding Date, … } to {Binding Path=Date,…} it fixed it. What was really weird was when I changed it back (removed “Path=”) the problem didn’t return.

The only other problem I ran into was when the install completed I got an error message telling me that the Silverlight 3 SDK didn’t install properly. AFAIK, this is because I had already installed it. Here’s a link where others have had the same problem.

http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=498710

I didn’t have to do anything to fix this, I was still able to open Visual Studio 2010 and then open and convert a 2008 solution file (the above image). So if you’re having this problem don’t worry about it. If you haven’t installed Visual Studio 2010 yet then I’d recommend uninstalling Silverlight 3 SDK before you install Visual Studion 2010 just to avoid the error in the first place.

Anyway, I’ll have to play around with it a bit to find out if I’ll start using it to develop all my own personal projects or not. I’ll have to see if there are any quirks. If I find any show stoppers I’ll let you know.

tags: , ,

kick it on DotNetKicks.com   Shout it  

Feedback

# re: Visual Studio 2010 Beta 2: Xaml Designer Surface With Binding

Gravatar Hi, Mark!

I am from WPF/Silverlight designer team at Microsoft.

Thanks for your initial feedback on Visual Studio 2010 Beta 2.

For the Silverlight SDK issue, please take a look at blog (blogs.msdn.com/.../...0-and-silverlight-3-sdk.aspx). It is recommended that you uninstall Silverlight 3 SDK build 3.0.40624 from Add/Remove Programs and then install Silverlight 3 SDK build 3.0.40818.

We are interested to repro the "Binding in ItemTemplate" issue when you first open the XAML. Can you consistently repro each time you open the XAML? If so, will you please send me the XAML you use that can demonstrate the very issue. We will make sure that it gets fixed (but I am unable to repro it based on a simple project to mimic your screenshot). Your help is very much appreciated.

Zhanbo 10/22/2009 3:08 AM | Zhanbo

# re: Visual Studio 2010 Beta 2: Xaml Designer Surface With Binding

Gravatar Zhanbo,

Thanks for your comments. Below is a link to a zip file of the solution which reproduces the bug. The version of the files in the zip archive is a 2008 solution file. Below are the steps to reproduce the problem:

1) Open the file with VS 2010 Beta 2
2) Run the conversion wizard
3) When asked to upgrade web.config - uncheck the "always do this..." option and then decline
4) Open the HistoryView.xaml file in the CodeCamp.History project

When the file loads in the designer you'll see the fully qualified name of the model assigned to the data context (it's cut off and all you see is the first part of the namespace in bold green). To fix it edit the binding by changing "{Binding Date" to {Binding Path=Date". If you undo the change w/o saving the correct display of the view remains, but if you close the solution (leaving out "Path=") and re-open it the problem will manifest itself again.

I've included the built assemblies with the archive since the solution must be built initially before the design-time data binding works (I'm sure you already know that - I'm just being thorough ;) ). Let me know if you are still unable to reproduce the bug. I can reproduce it w/o going through the conversion process, but I just wanted to make sure everything was exactly as it was when I first opened the solution in 2010 beta 2.

dl.getdropbox.com/u/273037/XamlDesignerBug.zip 10/23/2009 3:05 PM | MarkJMiller

# re: Visual Studio 2010 Beta 2: Xaml Designer Surface With Binding

Gravatar The concept of Visual Studio in the case of programming remains the same always. It is a very elementary thing in programming. In prism also, the module remains the same. It is a block of code that is discovered at the runtime. I have never tried using Visual studio. I will give it a try and post here if any problems. 8/13/2010 12:36 AM | voip phone systems

# re: Visual Studio 2010 Beta 2: Xaml Designer Surface With Binding

Gravatar I went back and looked at the Prism docs on Supervising Presenter and Presentation Model after reading your comment. I haven't really read anything on the MVP pattern up to this point and so I hadn't really noticed it in the Controller QuickStart. I might just need to introduce a sidebar for the series at some point comparing the two. The docs are a good starting point. It'll give me a chance to look at them in more detail and understand the distinction better. 8/20/2010 12:22 AM | online keno

Post a comment





 

Please add 5 and 6 and type the answer here:

 

 

Copyright © Mark J. Miller