Silverlight Composite UI starts from CanvasShellApplication class that defines main application class. It is similar to FormsShellApplication in P&P CAB. The shell in Xaml context is the root canvas in start Xaml file. The main Xaml is in the following form:

<Canvas
    xmlns="http://schemas.microsoft.com/client/2007"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    x:Class="Elisy.Theater.Application;assembly=ClientBin/Elisy.Theater.dll"
    x:Name="rootCanvas"
    Width="995" Height="600"
    Background="Green">
</Canvas>

Where Elisy.Theater.Application is derived from CanvasShellApplication<WorkItem> and can be placed in the same or different assembly. Silverlight Composite UI will contain only one WorkItem to simplify the implementation and reduce assembly size.

Please, note that Silverlight 1.1 Alpha does not support x:Class definition for classes derived from the classes in other assemblies (http://silverlight.net/forums/t/9854.aspx). To workaround this, please compile your class into Scab assembly or use x:Class="Elisy.Scab.SimpleApplication;assembly=ClientBin/Elisy.Scab.dll" definition.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5