Difference between revisions of "Silverlight"

From Richard's Wiki
Jump to: navigation, search
(Silverlight & CAL (PRISM))
Line 36: Line 36:
 
* [http://forums.silverlight.net/forums/p/100016/228954.aspx Silverlight 3 and MVVM (Silverlight forum)]
 
* [http://forums.silverlight.net/forums/p/100016/228954.aspx Silverlight 3 and MVVM (Silverlight forum)]
 
* [http://development-guides.silverbaylabs.org/Video/Silverlight-Prism Prism for Silverlight - An Intro to Composite Applications]
 
* [http://development-guides.silverbaylabs.org/Video/Silverlight-Prism Prism for Silverlight - An Intro to Composite Applications]
 
+
* [http://weblogs.asp.net/fredriknormen/archive/2009/11/30/silverlight-4-mvvm-with-commanding-and-wcf-ria-services.aspx Silverlight 4 - MVVM with Commanding and WCF RIA Services]
  
 
==== Silverlight Control Libraries ====
 
==== Silverlight Control Libraries ====
 
* [http://silverlight.net/content/samples/sl3/toolkitcontrolsamples/run/default.html Silverlight Toolkit (Codeplex)]
 
* [http://silverlight.net/content/samples/sl3/toolkitcontrolsamples/run/default.html Silverlight Toolkit (Codeplex)]
 
* [http://mightymeaty.members.winisp.net/blacklight.silverlight/ Blacklight]
 
* [http://mightymeaty.members.winisp.net/blacklight.silverlight/ Blacklight]

Revision as of 17:54, 18 April 2010

<DropShadowEffect x:Key="DropShadow"  
               BlurRadius="15" 
               Color="Black" 
               Direction="320"
               Opacity="1.0"
               ShadowDepth="10" />

    • To use (in xaml):

Effect="{StaticResource DropShadow}"

    • To use (in .cs):

 control.Effect = Application.Current.Resources["DropShadow"] as System.Windows.Media.Effects.Effect

  • To get position of a UIElement:

// Obtain transform information based off root element
UIElement element = this as UIElement;
GeneralTransform gt = element.TransformToVisual(Application.Current.RootVisual);
// Find the four corners of the element
Point topLeft = gt.Transform(new Point(0, 0));
Point topRight = gt.Transform(new Point(element.RenderSize.Width, 0));
Point bottomLeft = gt.Transform(new Point(0, element.RenderSize.Height));
Point bottomRight = gt.Transform(new Point(element.RenderSize.Width, element.RenderSize.Height));

Silverlight & CAL (PRISM)

Silverlight Control Libraries