Silverlight Controls and a Touch of LINQ in Orcas Beta 1
In a previous post I took a look at building a simple Silverlight application in Visual Studio Orcas. This post shows how to add a button control that comes with the Silverlight SDK. You can see the button in Figure 1. I will also add a few lines of code to show how to use LINQ inside Silverlight.
Figure 01: A simple button of the type that comes with the Silverlight Alpha 1.1 SDK.
In this post I’ll also show how to handle an event initiated by a click on the button. The event will cause the text in the button to change.
This post describes how a C# developer can set up and run a Silverlight project in Visual Studio Orcas.
Here are all the pieces you need:
- Orcas Beta 1
- Silverlight 1.1 Alpha for Windows
- Silverlight Tools Alpha for Visual Studio
- Expression Blend 2 Free Trial
- You will also find it helpful to download the Silverlight SDK as it contains useful documentation and examples.
A First Silverlight Project
What’s New in C#
- Dinesh Kulkarni is the C# PM in charge of LINQ to SQL. He has recently revved up his blog: http://blogs.msdn.com/dinesh.kulkarni/. Here are a few of his recent posts:
- Sreekar Choudhary is an SDE on the C# Team. This is his second post.
- Browsing Eric Lippert’s blog for the first time is a bit like finding a first class book on C#. Fortunately for us, he has many wonderful new posts to browse:
- Matt Warren is one of the top developers on the C# Team
- Jomo Fisher is C# developer on the LINQ to SQL team. Any technical posts he produce are mandatory reading in my book. He has three new posts for us:
- Luca Bolognese is C# Lead PM
- Luke Hoban is the PM on the Compiler Team
- Wes Dyer
- I have a few new posts:
- How to be random with LINQ to Objects
- LINQ to the Semantic Web Additional information here and also on Hooked on LINQ.
- LINQ to Expressions
- LINQ to Bits
- Work at Microsoft: http://blogs.msdn.com/jobsblog/archive/2007/06/12/my-new-gig-as-a-sourcer.aspx
Community Web Sites and Downloads
Source from : Charlie Calvert’s Community Blog
It has been a little over a week since we released Beta 2 of VS 2008 and .NET 3.5. So far the feedback from people using it has been really great. I’ve received a lot of emails from people saying it is the best beta we’ve ever shipped, and several who have moved over to using it full time for all development.
I have also helped people with a few gotchas that they have run into (mainly around setup / installation). Below are some notes on the issues I’ve seen as well as how to fix them:
Setup / Installation Issues
ASP.NET AJAX Multi-Targeting
Here are some pointers to on-line forums where you can ask questions or get help:
- VS 2008 and .NET 3.5 Setup
- VS 2008 for Web Development
- VS 2008 WPF Designer
- Visual Studio Languages
ASP.NET AJAX included in .NET 3.5
Starting with the .NET Framework 3.5 release, all of these features are built-in with ASP.NET, which means you no longer have to download and install a separate ASP.NET AJAX setup when building or deploying applications.
When you create a new ASP.NET application or web-site in VS 2008 that targets the .NET 3.5 framework, VS will automatically add the appropriate AJAX registrations in your web.config file and the core ASP.NET AJAX server controls will show up in your toolbox.
Using the LINQ to SQL Debug Visualizer
One of the nice development features that LINQ to SQL supports is the ability to use a “debug visualizer” to hover over a LINQ expression while in the VS 2008 debugger and inspect the raw SQL that the ORM will ultimately execute at runtime when evaluating the LINQ query expression.
For example, assume we write the below LINQ query expression code against a set of data model classes:
We could then use the VS 2008 debugger to hover over the “products” variable after the query expression has been assigned:
And if we click the small magnifying glass in the expression above, we can launch the LINQ to SQL debug visualizer to inspect the raw SQL that the ORM will execute based on that LINQ query:
If you click the “Execute” button, you can even test out the SQL query and see the raw returned results that will be returned from the database:
This obviously makes it super easy to see precisely what SQL query logic LINQ to SQL ORM is doing for you.
You can learn even more about how all this works by reading the Part 3: Querying our Database segment in my LINQ to SQL series above.
How to Install the LINQ to SQL Debug Visualizer
Read More …
ASP.NET AJAX Articles
ASP.NET AJAX Control Toolkit Articles
ASP.NET AJAX in VS 2008 and .NET 3.5 Articles
ASP.NET AJAX and AJAX Control Toolkit Videos
In this video series Joe Stagner and others from the Microsoft product team demonstrate how to use ASP.NET AJAX.
ASP.NET AJAX Booksdel.icio.us Tags: Ajax