Silverlight Games: Getting the infrastructure down by blowing it out of the browser
In the XAML AppManifest.XML file there is a bunch of arcane symbols and words. In the previous blog I detailed the high level of how to detach the Silverlight Application. This is an important part of the future of Silverlight, works in the browser and works out of the browser. Build once and really use everywhere and every when. Uggh, just getting examples for the AssemblyPart that is comprehensive is going to take awhile. Okey dokey, here are the combined links, as you can tell it is mostly cut and paste from MSDN. Although I did add a few comments here and there. Anyway, mark this one for the future discussions.
<Deployment xmlns=https://schemas.microsoft.com/client/2007/deployment >
<Deployment.Parts>
<AssemblyPart x:Name="xamlName" Source="assembly" />
</Deployment.Parts>
</Deployment>
AssemblyPart Class
An assembly part is an assembly that is to be included in a Silverlight-based application package (.xap).
AssemblyPart Members exposes these members:
-
- AssemblyPart, used in managed code, not XAML
AssemblyPart Methods
Name: Description
CheckAccess: Determines whether the calling thread has access to this object. (Inherited from DependencyObject.)
ClearValue: Clears the local value of a property. (Inherited from DependencyObject.)
Equals: Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Finalize: Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
GetAnimationBaseValue: Returns any base value established for a Silverlight dependency property, which would apply in cases where an animation is not active. (Inherited from DependencyObject.) Returns any base value established for a Silverlight dependency property, which would apply in cases where an animation is not active. Can only be used in Managed Code not XAML.
GetHashCode: Serves as a hash function for a particular type. (Inherited from Object.)
GetType: Gets the Type of the current instance. (Inherited from Object.)
GetValue: Returns the current effective value of a dependency property from a DependencyObject. (Inherited from DependencyObject.)
Load: Converts a Stream to an Assembly that is subsequently loaded into the current application domain.
MemberwiseClone: Creates a shallow copy of the current Object. (Inherited from Object.)
ReadLocalValue: Returns the local value of a dependency property, if a local value is set. (Inherited from DependencyObject.)
SetValue: Sets the local value of a dependency property on a DependencyObject. (Inherited from DependencyObject.)
toString: Returns a String that represents the current Object. (Inherited from Object.)
AssemblyPart Properties
Dispatcher: Gets the Dispatcher this object is associated with. (Inherited from DependencyObject.) A dispatcher object provides services for managing the queue of work items for a thread. Cannot be directly created in an instance of XAML, it is used only in managed code. (Reference)
Source: Gets the Uri that identifies an assembly as an assembly part. The value of the Source property should be the physical name of the assembly, including the .dll file extension. For example, Application.dll.