Carlos Femmer's Blog

Carlos Femmer lives in Lafayette, LA and builds a few solutions for JCLS and Agency Virtual Tours

Silverlight Toolkit Released

October 31, 2008 04:50 by carlos

Microsoft has recently released the Silverlight Toolkit. 

What is the Silverlight Toolkit?

The Silverlight Toolkit is a collection of Silverlight controls, components and utilities made available outside the normal Silverlight release cycle. It adds new functionality quickly for designers and developers, and provides the community an efficient way to help shape product development by contributing ideas and bug reports. This first release includes full source code, unit tests, samples and documentation for 12 new controls covering charting, styling, layout, and user input.

 

 You can download this set HERE.


Tags:
Categories: Silverlight
Actions: E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed

Silverlight 2 has been released

October 14, 2008 05:20 by carlos

Silverlight 2 has now been RTM'd.  Here is a quick overview of whats new in Silverlight 2.

  • Text Rendering - a lot of improvements went into overall text rendering.  This is an area that we will continue to improve and focus efforts.  The Portable User Interface font (default font if no FontFamily value is provided) looks a heck of a lot better in my opinion.
  • Controls - Read Shawn's post about the new controls
  • Networking - The ability to call secure (SSL) services from a non-secure hosted Silverlight XAP.  The only caveat is the new service endpoint must specify a policy via clientaccesspolicy.xml at the root of the endpoint domain.  Once this is in place (at the root of the endpoint domain), your XAP hosted in a non-secure SSL HTTP instance can call an HTTPS-based service.
  • ADO.NET Services - Finally made it in!

 Some links to download:

Host of other good information about the release - Recommend reading the official release here.

 


Tags:
Categories: Silverlight
Actions: E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed

Slides / Demos from Building Applications with Silverlight 2

April 1, 2008 05:10 by carlos

Thanks to everyone who attended the Acadiana .NET User Group Presentation.

Slides from the presentation

Source for Financial Demo

Source for Controls Demo

I will have a couple of follow up posts to answer some of the questions that came up during the meeting.  Also, I will post the full source for the Deep Zoom demo in a couple of days. 

 


Tags: ,
Categories: C# | Silverlight
Actions: E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed

Presenting at the Acadiana .NET User Group

March 24, 2008 15:37 by carlos

I will be giving a presentation this Thursday (March 27, 2008) in Lafayette, LA.  Hope to see you there!  Details follow below:

Flyer for event

Topic

Building Business Applications with Silverlight 2:

- A brief introduction to Silverlight 2
- RIA and Silverlight 2

- Silverlight 2 Controls
- Communication and Services

- Deep Dive with Deep Zoom
- Your questions

Cheers,

Carlos


What is ADO.NET Data Services in plain English

March 18, 2008 09:57 by carlos

I am trying to get my head around the concept of ADO.NET Data Services.  Why is there a need for such a component and what was wrong with web services.  I did a search and found this interesting explanation by Mike Flasko.  Here is his explanation (Easy for me to understand!!!).

In general the goals of ADO.NET Data Services are to create a simple REST-based framework for exposing data centric services.  We built the framework in part from analysis of traditional websites and then looked at how architectures were changing with the move to AJAX and RIA based applications.  One key observation the team had was that in traditional approaches to web development the information exchanged between a client (ex. a webbrowser) and the mid tier was a combination of presentation + behavior + data (ex. HTML file with javascript and inline HTML tables of data) and that the core interactions to retrieve raw data was between the mid-tier and backend store (ex. SQL server or other).  When we looked at RIA, AJAX, smart client, etc applications it became apparent that these architectures pushed much more "smarts" to the client tier where the client first retrieves the presentation + behavior information (as a DLL in the case of a Silverlight application) and then as the user interacts with the client application, the app turns back (ex. background async call) to the mid-tier to retrieve the data needed to drive the user experience.  This is nothing new (separation of presentation + behavior from data), but its interesting to note it now not only a best practice but mandated in the architectures of today’s web and RIA apps. From this we looked at how such clients could consume data from the mid-tier today and how could we help improve the experience for the developer.  A few areas came up:

1)Creating and maintaining rich data oriented services with current approaches requires a significant developer investment

2) Building generation purpose client libs/tools with current approaches to data centric services is hard

For #1, imagine you wanted to expose the data in your CRM database to you client tier application.  Further assume you want to enable typical application scenarios like retrieving sorted views of the data, paging over the data, filtering, etc.  To expose this data as a set of callable remote methods (using current approaches to developing web services) you would need to write a large number of methods to expose each of the entities in your CRM DB (customers, orders, etc) and then add additional methods for each to retrieve entities by key, sort them, page over them, etc etc.  ADO.NET Data Services, addresses this issue by allowing you to declaratively state the contract of such a data centric service, by telling us the schema of the data and having the data services technology automatically create the required remote endpoints, enabling paging, sorting, etc with no code from the developer.  Then as you change your data model, your service endpoints also change.

For #2 above, an interesting artifact of a REST-based approach to web services is that it promotes creating a uniform interface.  That is, how you address items in an ADO.NET Data Service (i.e. how to construct URIs), how to interact with data (using HTTP verbs), etc is the same across any ADO.NET Data Service, regardless of the data it exposes.  This uniform interface enables code reuse against your web services such that one can create reusable client libraries and UI widgets for all their services.  For example, the ADO.NET Data Service team is doing this by shipping .NET , Silver light, AJAX, etc libraries which can talk to any data service.  In addition, this feature (uniform interface) enables us to add features such as LINQ to ADO.NET Data Services since the translation of LINQ query statements to URIs is stable and well known.

This is already probably a bit too long Smile, but in addition to the items noted above, additional advantages of REST-based approaches also apply such as rich integration with HTTP such that you can leverage existing HTTP infrastructure (ex. HTTP Proxies) deployed at large ... 

I hope that helps....

-Mike


How to enable datagrid in Expression Blend - Silverlight 2

March 17, 2008 18:12 by carlos

Where is the datagrid??? 

Here are the steps to enable the datagrid in Expression Blend. 

If you expand the asset library you will find the datagrid missing.  To get the datagrid in your asset library, follow the steps below:

 

1) Right click on References and click Add Reference.

2) Browse to Silverlight SDK folder (c:\program files\microsoft sdks\Silverlight\v2.0\Libraries\Client) and select System.Windows.Controls.Data.dll (see image below).

3) Browse Asset library by selecting the arrow keys on the left toolbar.  You will now see the datagrid listed in the controls.  Odd way of adding it but I could not find any other way.  It works fine when building a solution.

 

Cheers,

Carlos


Scott has taken the wraps off of Silverlight 2.0!!!

February 25, 2008 05:29 by carlos

Scott has recently made public the list of features that will be seen in Silverlight 2.0.  He has a list of tutorials (8 you can view in this one post) instead of looking for them one by one.  He mentions that they are shortly going to release the first public beta of Silverlight 2.  We should see them unwrap the 2.0 package at MIX 08.

 Here are a few new features mentioned:

  • a bevy of built-in controls (2 way databinding controls)
  • Support for WCF 
  • Cross domain support (Very Cool)
  • LINQ to XML support (More AJAX support)

What I find most impressive is is the 4MB download.  We are talking about 3-11 seconds to install.  I will be attending MIX and will post about some of the new features that will be made public.

 Here is a snapshot of the hierachical structure of the controls in Silverlight 2.

  • FrameworkElement
    • Control
      • Calendar
      • ContentControl
        • ButtonBase
          • Button
            • HyperlinkButton
          • RepeatButton
          • ToggleButton
            • CheckBox
            • RadioButton
        • ScrollViewer
        • ToolTip
        • UserControl 
      • DataGrid
      • DatePicker
      • GridSplitter
      • ListBox
      • ScrollBar
      • Slider
      • TextBox
        • WatermarkedTextBox 
    • Decorator (?) 
      • Border
    • Glyphs
    • MediaBase
      • Image
        • BitmapImage
        • MultiScaleImage
      • MediaElement
    • Panel
      • Canvas
        • InkCanvas
      • Grid
      • StackPanel
    • Shape
      • Ellipse
      • Line
      • Path
      • Polygon
      • Polyline
      • Rectangle
    • TextBlock

  • Tags:
    Categories: Silverlight
    Actions: E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed

    How to enable Intellisense with Silverlight XAML VS 2008

    February 7, 2008 06:40 by carlos

    I came across this issue while building a Silverlight applicaiton.  I had a full install of VS 2008 and did not have any problems on the install.  When I built up my XAML file, VS 2008 did not give any Intellisense.  I will post the reason this is happening as well as the solution.  The problem is VS 2008 wants to open XML files in the WPF Designer.   There is an assumption that VS 2008 lacks a Silverlight XSD file but VS 2008 does include a Silverlight XSD document named WPFE.XSD.  You will have a better experience if you open your Silverlight XAML in the XML Editor.  To correct this problem simply follow the steps below:

    1.  Problem (Intellisense not recognized in you XAML document / VS 2008.

    2.  To correct the problem right click the XAML file in the solution explorer and select "Open With ...."

     

    3.  Select the XML Editor for the list and select "Set as Default"

    4.  Close the XAML page then reopen it.  This should do the trick.

     


    Tags:
    Categories: Silverlight
    Actions: E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed