Summary: This document provides basic information about the extension providing Silverlight support for C# and VB.NET
This extension provides support for Silverlight. The calculation of Automated Function Points for your .NET analyses will be supplemented through the creation of new objects and links specific to the Silverlight framework that will link back to objects/links produced by the base .NET analyzer.
In what situation should you install this extension?
If your .NET application contains Silverlight source code and you want to view these object types and their links, then you should install this extension.
- The extension is now shipped with a set of CAST Transaction Configuration Center Entry Points, specifically related to Silverlight. Please see CAST Transaction Configuration Center (TCC) Entry Points below for more information about this.
- See also: Silverlight 1.2 - Bug Fix List.
Silverlight framework support
The following Silverlight frameworks are supported by this extension:
|All versions up to 5.0|
- Function Points (transactions): a green tick indicates that OMG Function Point counting and Transaction Risk Index are supported
- Quality and Sizing: a green tick indicates that CAST can measure size and that a minimum set of Quality Rules exist
|Quality and Sizing|
CAST AIP release
|8.2.x||C# and VB.NET|
|8.1.x||C# and VB.NET|
|8.0.x||C# and VB.NET|
|7.3.7 and all higher 7.3.x releases||C# only|
Supported DBMS servers
This extension is compatible with the following DBMS servers:
|All supported releases|
|An installation of any compatible release of CAST AIP (see table above)|
Download and installation instructions
The latest release status of this extension can be seen when downloading it from the CAST Extend server.
CAST Transaction Configuration Center (TCC) Entry Points
In Silverlight ≥ 1.2.x, if you are using the extension with CAST AIP ≥ 8.3.x, a set of Silverlight specific Transaction Entry Points are now automatically imported when the extension is installed. These Transaction Entry Points will be available in the CAST Transaction Configuration Center:
Manual import action for CAST AIP ≤ 8.2.x
- Locate the .TCCSetup file in the extension folder: Configuration\TCC\DotNet_Silverlight.TCCSetup
- In the CAST Transaction Configuration Center, ensure you have selected the Templates node:
- This .TCCSetup file is to be imported into the CAST Transaction Calibration Center using either the:
- File > Import Configuration menu option:
- Or right clicking on the Template node and selecting Import Configuration:
- The import of the "DotNet_Silverlight.TCCSetup" file will provide you with a sample Transaction Entry point in the Free Definition node under Templates:
- Now right click the "Default Entry Point Silverlight" item and select copy:
- Paste the item into the equivalent node under the Application, for example, below we have copied it into the Application MEUDON:
Packaging, delivering and analyzing your source code
Once the extension is installed, no further configuration changes are required before you can package your source code and run an analysis. The process of packaging, delivering and analyzing your source code does not change in any way:
- Package and deliver your application (that includes source code which uses Silverlight) in the exact same way as you always have. You can refer to the existing official CAST documentation for more information about this - see:
- Analyze your delivered J2EE application source code in the CAST Management Studio in the exact same way as you always have - the source code which uses Silverlight will be detected and handled correctly. You can refer to the existing official CAST documentation for more information about configuring an analysis - see: http://doc.castsoftware.com/display/DOC82/2.+Application+Analysis+Process+with+CAST+AIP
What results can you expect?
Once the analysis/snapshot generation has completed, you can view the results in the normal manner. The following objects and links will be displayed in CAST Enlighten:
All objects are represented under the File browser > Xaml Source file folders in CAST Enlighten:
Note that if the Name Attribute of an object is present, then it will be used to display that object in CAST Enlighten. For example:
|Name not present||Name present|
The following objects are detected:
|XAML Control||call||Action Event method implemented in source file|
|XAML Control||relyOn||Set and get accessors of Property implemented in source file|
|XAML Control||relyOn||XAML Control which is used by another XAML Control|
|XAML Source File||relyOn||Referred Class|
|C# property (relay command)||relyOn|
C# method (delegate
|XAML Control||call||C# property (relay command)|
In this section we list the most significant functional limitations that may affect the analysis of applications using Silverlight:
- Binding in code is not supported - see https://msdn.microsoft.com/en-us/library/ms742863(v=vs.110).aspx?cs-save-lang=1&cs-lang=csharp#code-snippet-1 for an example
Binding links are not handled correctly when the same binding target exists in different classes
- The direction of the data flow (Binding.Mode properties such as OneWay, TwoWay and OneWayToSource) is not supported - see https://msdn.microsoft.com/en-us/library/ms752347(v=vs.110).aspx#direction_of_data_flow for an example
- The RelativeSource property (Gets or sets the binding source by specifying its location relative to the position of the binding target) is not supported - see https://msdn.microsoft.com/en-us/library/system.windows.data.binding.relativesource(v=vs.110).aspx for an example
- Some XAML control objects which are visible in CAST Enlighten may not be seen in the CAST Application Engineering Dashboard.
- Links between XAML Control objets and code embedded in XAML are not supported.