<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Silverlike &#187; XAML</title>
	<atom:link href="http://silverlike.net/tag/xaml/feed/" rel="self" type="application/rss+xml" />
	<link>http://silverlike.net</link>
	<description>We Like Silverlight</description>
	<lastBuildDate>Mon, 07 Dec 2009 06:34:42 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Vector Arrows</title>
		<link>http://silverlike.net/vector-arrows/</link>
		<comments>http://silverlike.net/vector-arrows/#comments</comments>
		<pubDate>Fri, 09 Oct 2009 22:33:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Common]]></category>
		<category><![CDATA[Geometry]]></category>
		<category><![CDATA[XAML]]></category>

		<guid isPermaLink="false">http://silverlike.net/vector-arrows/</guid>
		<description><![CDATA[Laurent Bugnion created 56 useful vector arrows in XAML format. Resource is available in WPF and Silverlight format.]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.galasoft.ch/archive/2009/08/31/56-vector-arrows-in-xaml.aspx" target="_blank">Laurent Bugnion</a> created 56 useful vector arrows in XAML format. Resource is available in WPF and Silverlight format.</p>
<p class="image"><a href="http://blog.galasoft.ch/archive/2009/08/31/56-vector-arrows-in-xaml.aspx" target="_blank"><img style="display: inline" title="Vector Arrows" alt="Vector Arrows" src="http://silverlike.net/wp-content/uploads/2009/10/VectorArrows.jpg" width="450" height="250" /></a> </p>
<div class="demo-area">Silverlight Demo: <a class="new-window" href="http://silverlike.net/silverlight/index.php?xap=%2Fwp-content%2Fuploads%2Fxap%2FUsefulArrows.xap&TB_iframe=true&caption=Vector+Arrows&height=400&width=650" target="_blank">Click here to view</a></div>
<div class="reference-info"><strong>Website:</strong> <a href="http://silverlike.net/vector-arrows/" title="http://silverlike.net/vector-arrows/" target="_blank">Click here</a></div>
<div class="reference-info"><strong>Download:</strong> <a href="http://silverlike.net/vector-arrows/" title="http://silverlike.net/vector-arrows/" target="_blank">Click here</a></div>
<img src="http://silverlike.net/?ak_action=api_record_view&id=702&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://silverlike.net/vector-arrows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Loading Animation</title>
		<link>http://silverlike.net/loading-animation/</link>
		<comments>http://silverlike.net/loading-animation/#comments</comments>
		<pubDate>Sun, 27 Sep 2009 06:20:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Common]]></category>
		<category><![CDATA[Utilities]]></category>
		<category><![CDATA[XAML]]></category>

		<guid isPermaLink="false">http://silverlike.net/loading-animation/</guid>
		<description><![CDATA[A very simple loading animation in XAML format.]]></description>
			<content:encoded><![CDATA[<p>A very simple loading animation in XAML format.</p>
<p class="image"><a class="thickbox" href="http://www.shinedraw.com"><img style="display: inline" title="Loading Animation" alt="Loading Animation" src="http://silverlike.net/wp-content/uploads/2009/09/LoadingAnimation_thumb.jpg" width="400" height="250" /></a></p>
<div class="demo-area">Silverlight Demo: <a class="new-window" href="http://silverlike.net/silverlight/index.php?xap=%2Fwp-content%2Fuploads%2Fxap%2FShineDraw.Controls.xap&TB_iframe=true&caption=Loading+Animation&height=400&width=650" target="_blank">Click here to view</a></div>
<div class="xaml-area">Create a simple loading in XAML: </div>
<pre class="brush: xml;">&lt;UserControl x:Class=&quot;ShineDraw.Controls.LoadingAnimation&quot;
    xmlns=&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;
    xmlns:x=&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;
    Width=&quot;400&quot; Height=&quot;400&quot; &gt;
    &lt;UserControl.Resources&gt;
        &lt;Storyboard x:Name=&quot;Rotation&quot; RepeatBehavior=&quot;Forever&quot;&gt;
            &lt;DoubleAnimationUsingKeyFrames BeginTime=&quot;00:00:00&quot; Storyboard.TargetName=&quot;LayoutRoot&quot; Storyboard.TargetProperty=&quot;(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)&quot;&gt;
                &lt;SplineDoubleKeyFrame KeyTime=&quot;00:00:00&quot; Value=&quot;0&quot;/&gt;
                &lt;SplineDoubleKeyFrame KeyTime=&quot;00:00:00.2000000&quot; Value=&quot;0&quot;/&gt;
                &lt;SplineDoubleKeyFrame KeyTime=&quot;00:00:00.2000000&quot; Value=&quot;45&quot;/&gt;
                &lt;SplineDoubleKeyFrame KeyTime=&quot;00:00:00.4000000&quot; Value=&quot;45&quot;/&gt;
                &lt;SplineDoubleKeyFrame KeyTime=&quot;00:00:00.4000000&quot; Value=&quot;90&quot;/&gt;
                &lt;SplineDoubleKeyFrame KeyTime=&quot;00:00:00.6000000&quot; Value=&quot;90&quot;/&gt;
                &lt;SplineDoubleKeyFrame KeyTime=&quot;00:00:00.6000000&quot; Value=&quot;135&quot;/&gt;
                &lt;SplineDoubleKeyFrame KeyTime=&quot;00:00:00.8000000&quot; Value=&quot;135&quot;/&gt;
                &lt;SplineDoubleKeyFrame KeyTime=&quot;00:00:00.8000000&quot; Value=&quot;180&quot;/&gt;
                &lt;SplineDoubleKeyFrame KeyTime=&quot;00:00:01.0000000&quot; Value=&quot;180&quot;/&gt;
                &lt;SplineDoubleKeyFrame KeyTime=&quot;00:00:01.0000000&quot; Value=&quot;225&quot;/&gt;
                &lt;SplineDoubleKeyFrame KeyTime=&quot;00:00:01.2000000&quot; Value=&quot;225&quot;/&gt;
                &lt;SplineDoubleKeyFrame KeyTime=&quot;00:00:01.2000000&quot; Value=&quot;270&quot;/&gt;
                &lt;SplineDoubleKeyFrame KeyTime=&quot;00:00:01.4000000&quot; Value=&quot;270&quot;/&gt;
                &lt;SplineDoubleKeyFrame KeyTime=&quot;00:00:01.4000000&quot; Value=&quot;315&quot;/&gt;
                &lt;SplineDoubleKeyFrame KeyTime=&quot;00:00:01.6000000&quot; Value=&quot;315&quot;/&gt;
            &lt;/DoubleAnimationUsingKeyFrames&gt;
        &lt;/Storyboard&gt;
    &lt;/UserControl.Resources&gt;

    &lt;Grid x:Name=&quot;LayoutRoot&quot; Background=&quot;Transparent&quot; RenderTransformOrigin=&quot;0.5,0.5&quot;&gt;
        &lt;Grid.RenderTransform&gt;
            &lt;TransformGroup&gt;
                &lt;ScaleTransform/&gt;
                &lt;SkewTransform/&gt;
                &lt;RotateTransform/&gt;
                &lt;TranslateTransform/&gt;
            &lt;/TransformGroup&gt;
        &lt;/Grid.RenderTransform&gt;
        &lt;Ellipse Width=&quot;100&quot; Height=&quot;100&quot; Fill=&quot;#FF000000&quot; &gt;
            &lt;Ellipse.RenderTransform&gt;
                &lt;TransformGroup&gt;
                    &lt;ScaleTransform/&gt;
                    &lt;SkewTransform/&gt;
                    &lt;RotateTransform/&gt;
                    &lt;TranslateTransform X=&quot;-150&quot;/&gt;
                &lt;/TransformGroup&gt;
            &lt;/Ellipse.RenderTransform&gt;
        &lt;/Ellipse&gt;
        &lt;Ellipse Width=&quot;100&quot; Height=&quot;100&quot; Fill=&quot;#FFAAAAAA&quot; &gt;
            &lt;Ellipse.RenderTransform&gt;
                &lt;TransformGroup&gt;
                    &lt;ScaleTransform/&gt;
                    &lt;SkewTransform/&gt;
                    &lt;RotateTransform Angle=&quot;45&quot; CenterX=&quot;200&quot; CenterY=&quot;50&quot;/&gt;
                    &lt;TranslateTransform X=&quot;-150&quot;/&gt;
                &lt;/TransformGroup&gt;
            &lt;/Ellipse.RenderTransform&gt;
        &lt;/Ellipse&gt;
        &lt;Ellipse Width=&quot;100&quot; Height=&quot;100&quot; Fill=&quot;#FFAAAAAA&quot;  &gt;
            &lt;Ellipse.RenderTransform&gt;
                &lt;TransformGroup&gt;
                    &lt;ScaleTransform/&gt;
                    &lt;SkewTransform/&gt;
                    &lt;RotateTransform Angle=&quot;90&quot; CenterX=&quot;200&quot; CenterY=&quot;50&quot;/&gt;
                    &lt;TranslateTransform X=&quot;-150&quot;/&gt;
                &lt;/TransformGroup&gt;
            &lt;/Ellipse.RenderTransform&gt;
        &lt;/Ellipse&gt;
        &lt;Ellipse Width=&quot;100&quot; Height=&quot;100&quot; Fill=&quot;#FFAAAAAA&quot;  &gt;
            &lt;Ellipse.RenderTransform&gt;
                &lt;TransformGroup&gt;
                    &lt;ScaleTransform/&gt;
                    &lt;SkewTransform/&gt;
                    &lt;RotateTransform Angle=&quot;135&quot; CenterX=&quot;200&quot; CenterY=&quot;50&quot;/&gt;
                    &lt;TranslateTransform X=&quot;-150&quot;/&gt;
                &lt;/TransformGroup&gt;
            &lt;/Ellipse.RenderTransform&gt;
        &lt;/Ellipse&gt;
        &lt;Ellipse Width=&quot;100&quot; Height=&quot;100&quot; Fill=&quot;#FF999999&quot;  &gt;
            &lt;Ellipse.RenderTransform&gt;
                &lt;TransformGroup&gt;
                    &lt;ScaleTransform/&gt;
                    &lt;SkewTransform/&gt;
                    &lt;RotateTransform Angle=&quot;180&quot; CenterX=&quot;200&quot; CenterY=&quot;50&quot;/&gt;
                    &lt;TranslateTransform X=&quot;-150&quot;/&gt;
                &lt;/TransformGroup&gt;
            &lt;/Ellipse.RenderTransform&gt;
        &lt;/Ellipse&gt;
        &lt;Ellipse Width=&quot;100&quot; Height=&quot;100&quot; Fill=&quot;#FF777777&quot; &gt;
            &lt;Ellipse.RenderTransform&gt;
                &lt;TransformGroup&gt;
                    &lt;ScaleTransform/&gt;
                    &lt;SkewTransform/&gt;
                    &lt;RotateTransform Angle=&quot;225&quot; CenterX=&quot;200&quot; CenterY=&quot;50&quot;/&gt;
                    &lt;TranslateTransform X=&quot;-150&quot;/&gt;
                &lt;/TransformGroup&gt;
            &lt;/Ellipse.RenderTransform&gt;
        &lt;/Ellipse&gt;
        &lt;Ellipse Width=&quot;100&quot; Height=&quot;100&quot; Fill=&quot;#FF555555&quot;  &gt;
            &lt;Ellipse.RenderTransform&gt;
                &lt;TransformGroup&gt;
                    &lt;ScaleTransform/&gt;
                    &lt;SkewTransform/&gt;
                    &lt;RotateTransform Angle=&quot;270&quot; CenterX=&quot;200&quot; CenterY=&quot;50&quot;/&gt;
                    &lt;TranslateTransform X=&quot;-150&quot;/&gt;
                &lt;/TransformGroup&gt;
            &lt;/Ellipse.RenderTransform&gt;
        &lt;/Ellipse&gt;
        &lt;Ellipse Width=&quot;100&quot; Height=&quot;100&quot; Fill=&quot;#FF333333&quot;  &gt;
            &lt;Ellipse.RenderTransform&gt;
                &lt;TransformGroup&gt;
                    &lt;ScaleTransform/&gt;
                    &lt;SkewTransform/&gt;
                    &lt;RotateTransform Angle=&quot;315&quot; CenterX=&quot;200&quot; CenterY=&quot;50&quot;/&gt;
                    &lt;TranslateTransform X=&quot;-150&quot;/&gt;
                &lt;/TransformGroup&gt;
            &lt;/Ellipse.RenderTransform&gt;
        &lt;/Ellipse&gt;
    &lt;/Grid&gt;
&lt;/UserControl&gt;</pre>
<div class="reference-info"><strong>Website:</strong> <a href="http://silverlike.net/loading-animation/" title="http://silverlike.net/loading-animation/" target="_blank">Click here</a></div>
<img src="http://silverlike.net/?ak_action=api_record_view&id=424&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://silverlike.net/loading-animation/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Text Strike Through</title>
		<link>http://silverlike.net/text-strike-through/</link>
		<comments>http://silverlike.net/text-strike-through/#comments</comments>
		<pubDate>Thu, 24 Sep 2009 11:40:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Common]]></category>
		<category><![CDATA[Text]]></category>
		<category><![CDATA[XAML]]></category>

		<guid isPermaLink="false">http://silverlike.net/text-strike-through/</guid>
		<description><![CDATA[The follow XAML let you to add a "strike though" effect on your text. It works for single line text and you are able to customize the fontzie and color.]]></description>
			<content:encoded><![CDATA[<p>The follow XAML let you to add a &quot;strike though&quot; effect on your text. It works for single line text and you are able to customize the font size and color.</p>
<p class="image"><a class="thickbox" href="http://www.shinedraw.com/" target="_blank"><img style="display: inline" title="Text-Strike-Through" alt="Text-Strike-Through" src="http://silverlike.net/wp-content/uploads/2009/09/TextStrikeThrough.jpg" width="400" height="250" /></a></p>
<div class="demo-area">Silverlight Demo: <a class="new-window" href="http://silverlike.net/silverlight/index.php?xap=%2Fwp-content%2Fuploads%2Fxap%2FShineDraw.Controls_0.xap&TB_iframe=true&caption=Text+Strike+Through&height=400&width=650" target="_blank">Click here to view</a></div>
<div class="xaml-area">XAML to create a strike through text: </div>
<pre class="brush: xml;">&lt;usercontrol height=&quot;300&quot; width=&quot;400&quot; x:class=&quot;ShineDraw.Controls.MainPage&quot; xmlns=&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot; xmlns:x=&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;&gt;
    &lt;grid background=&quot;White&quot; x:name=&quot;LayoutRoot&quot;&gt;
        &lt;grid horizontalalignment=&quot;Center&quot; verticalalignment=&quot;Center&quot;&gt;
            &lt;grid.columndefinitions&gt;
                &lt;columndefinition width=&quot;Auto&quot;&gt;&lt;/columndefinition&gt;
            &lt;/grid.columndefinitions&gt;
            &lt;textblock fontsize=&quot;28&quot; text=&quot;Shine Draw&quot;&gt;&lt;/textblock&gt;
            &lt;line x:name=&quot;StrikeThroughLine&quot; stretch=&quot;Fill&quot; x2=&quot;20&quot; x1=&quot;0&quot; strokethickness=&quot;1&quot; stroke=&quot;Black&quot;&gt;&lt;/line&gt;
        &lt;/grid&gt;
    &lt;/grid&gt;
&lt;/usercontrol&gt;</pre>
<div class="reference-info"><strong>Website:</strong> <a href="http://silverlike.net/text-strike-through/" title="http://silverlike.net/text-strike-through/" target="_blank">Click here</a></div>
<img src="http://silverlike.net/?ak_action=api_record_view&id=289&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://silverlike.net/text-strike-through/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create Path in C# and XAML</title>
		<link>http://silverlike.net/create-path-in-csharp-xaml/</link>
		<comments>http://silverlike.net/create-path-in-csharp-xaml/#comments</comments>
		<pubDate>Thu, 24 Sep 2009 10:40:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Common]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Geometry]]></category>
		<category><![CDATA[XAML]]></category>

		<guid isPermaLink="false">http://silverlike.net/create-path-in-c/</guid>
		<description><![CDATA[Matthias Shapiro demonstrated how you create a geometry object using C# and XAML.]]></description>
			<content:encoded><![CDATA[<p><a href="http://blogs.veracitysolutions.com/creating-a-programmatic-path-in-silverlight-or-wpf/" target="_blank">Matthias Shapiro</a> demonstrated how you create a geometry object using C# and XAML.</p>
<p class="image"><a class="thickbox" href="http://silverlike.net/wp-content/uploads/2009/09/CreatePathinC_.jpg"><img style="display: inline" title="Create-Path-in-C#" alt="Create-Path-in-C#" src="http://silverlike.net/wp-content/uploads/2009/09/CreatePathinC__thumb.jpg" width="400" height="250" /></a></p>
<div class="reference-info"><strong>View:</strong> <a href="http://silverlike.net/create-path-in-csharp-xaml/" title="http://silverlike.net/create-path-in-csharp-xaml/" target="_blank">Click here</a></div>
<div class="reference-info"><strong>Download:</strong> <a href="http://silverlike.net/create-path-in-csharp-xaml/" title="http://silverlike.net/create-path-in-csharp-xaml/" target="_blank">Click here</a></div>
<img src="http://silverlike.net/?ak_action=api_record_view&id=269&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://silverlike.net/create-path-in-csharp-xaml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create Gradient Background</title>
		<link>http://silverlike.net/create-gradient-background/</link>
		<comments>http://silverlike.net/create-gradient-background/#comments</comments>
		<pubDate>Sun, 27 Sep 2009 06:50:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Common]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Utilities]]></category>
		<category><![CDATA[XAML]]></category>

		<guid isPermaLink="false">http://silverlike.net/create-gradient-background-in-xaml/</guid>
		<description><![CDATA[Most of the time when you are using Visual Studio and you don't' want to open Blend for just setting a very Gradient Background! The below code can surely help you.]]></description>
			<content:encoded><![CDATA[<p>Most of the time when you are using Visual Studio and you don&#8217;t&#8217; want to open Blend for just setting a very Gradient Background! The below code can surely help you.</p>
<p class="image"><a class="thickbox" href="http://silverlike.net/wp-content/uploads/2009/09/CreateGradientBackgroundinXAML.jpg"><img style="display: inline" title="Create Gradient Background in XAML" alt="Create Gradient Background in XAML" src="http://silverlike.net/wp-content/uploads/2009/09/CreateGradientBackgroundinXAML_thumb.jpg" width="400" height="250" /></a></p>
<div class="csharp-area">Creat gradient background in c#: </div>
<pre class="brush: c-sharp;">
LinearGradientBrush linear = new LinearGradientBrush();
linear.StartPoint = new Point(0.5, 0);
linear.EndPoint = new Point(0.5, 1);

GradientStop g1 = new GradientStop();
g1.Color = _backgroundColor1;
g1.Offset = 0;

GradientStop g2 = new GradientStop();
g2.Color = _backgroundColor2;
g1.Offset = 1;

linear.GradientStops.Add(g2);
linear.GradientStops.Add(g1);

Border border = new Border();
border.Background = linear;</pre>
<div class="xaml-area">Creating gradient background in xaml: </div>
<pre class="brush: xml;">&lt;UserControl x:Class=&quot;GradientBackground.Page&quot;
    xmlns=&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;
    xmlns:x=&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;
    Width=&quot;600&quot; Height=&quot;400&quot;&gt;
    &lt;Grid x:Name=&quot;LayoutRoot&quot; Background=&quot;White&quot;&gt;
        &lt;Rectangle Stroke=&quot;Black&quot; Height=&quot;180&quot; HorizontalAlignment=&quot;Left&quot; Margin=&quot;10,10,0,0&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;285&quot;&gt;
            &lt;Rectangle.Fill&gt;
                &lt;LinearGradientBrush EndPoint=&quot;0.5,1&quot; StartPoint=&quot;0.5,0&quot;&gt;
                    &lt;GradientStop Color=&quot;Black&quot; Offset=&quot;0&quot;/&gt;
                    &lt;GradientStop Color=&quot;White&quot; Offset=&quot;1&quot;/&gt;
                &lt;/LinearGradientBrush&gt;
            &lt;/Rectangle.Fill&gt;
        &lt;/Rectangle&gt;
        &lt;Rectangle Stroke=&quot;Black&quot; Height=&quot;190&quot; HorizontalAlignment=&quot;Left&quot; Margin=&quot;10,0,0,10&quot; VerticalAlignment=&quot;Bottom&quot; Width=&quot;285&quot;&gt;
            &lt;Rectangle.Fill&gt;
                &lt;LinearGradientBrush EndPoint=&quot;0,0&quot; StartPoint=&quot;0,1&quot;&gt;
                    &lt;GradientStop Color=&quot;Black&quot; Offset=&quot;0&quot;/&gt;
                    &lt;GradientStop Color=&quot;White&quot; Offset=&quot;0.1&quot;/&gt;
                    &lt;GradientStop Color=&quot;Black&quot; Offset=&quot;0.2&quot;/&gt;
                    &lt;GradientStop Color=&quot;White&quot; Offset=&quot;0.3&quot;/&gt;
                    &lt;GradientStop Color=&quot;Black&quot; Offset=&quot;0.4&quot;/&gt;
                    &lt;GradientStop Color=&quot;White&quot; Offset=&quot;0.5&quot;/&gt;
                    &lt;GradientStop Color=&quot;Black&quot; Offset=&quot;0.6&quot;/&gt;
                    &lt;GradientStop Color=&quot;White&quot; Offset=&quot;0.7&quot;/&gt;
                    &lt;GradientStop Color=&quot;Black&quot; Offset=&quot;0.8&quot;/&gt;
                    &lt;GradientStop Color=&quot;White&quot; Offset=&quot;0.9&quot;/&gt;
                    &lt;GradientStop Color=&quot;Black&quot; Offset=&quot;1&quot;/&gt;
                &lt;/LinearGradientBrush&gt;
            &lt;/Rectangle.Fill&gt;
        &lt;/Rectangle&gt;
        &lt;Rectangle Stroke=&quot;Black&quot; Height=&quot;180&quot; HorizontalAlignment=&quot;Right&quot; Margin=&quot;0,10,10,0&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;285&quot;&gt;
            &lt;Rectangle.Fill&gt;
                &lt;LinearGradientBrush EndPoint=&quot;0,0&quot; StartPoint=&quot;1,1&quot;&gt;
                    &lt;GradientStop Color=&quot;Black&quot; Offset=&quot;0&quot;/&gt;
                    &lt;GradientStop Color=&quot;Red&quot; Offset=&quot;1&quot;/&gt;
                &lt;/LinearGradientBrush&gt;
            &lt;/Rectangle.Fill&gt;
        &lt;/Rectangle&gt;
        &lt;Rectangle Stroke=&quot;Black&quot; Height=&quot;190&quot; HorizontalAlignment=&quot;Right&quot; Margin=&quot;0,0,10,10&quot; VerticalAlignment=&quot;Bottom&quot; Width=&quot;285&quot;&gt;
            &lt;Rectangle.Fill&gt;
                &lt;RadialGradientBrush&gt;
                    &lt;GradientStop Color=&quot;White&quot; Offset=&quot;0&quot;/&gt;
                    &lt;GradientStop Color=&quot;Black&quot; Offset=&quot;1&quot;/&gt;
                &lt;/RadialGradientBrush&gt;
            &lt;/Rectangle.Fill&gt;
        &lt;/Rectangle&gt;
    &lt;/Grid&gt;
&lt;/UserControl&gt;</pre>
<div class="demo-area">Silverlight Demo: <a class="new-window" href="http://silverlike.net/silverlight/index.php?xap=%2Fwp-content%2Fuploads%2Fxap%2FGradientBackground.xap&TB_iframe=true&caption=Create+Gradient+Background&height=400&width=650" target="_blank">Click here to view</a></div>
<div class="reference-info"><strong>Website:</strong> <a href="http://silverlike.net/create-gradient-background/" title="http://silverlike.net/create-gradient-background/" target="_blank">Click here</a></div>
<img src="http://silverlike.net/?ak_action=api_record_view&id=450&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://silverlike.net/create-gradient-background/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clip/Mask To Actual Size</title>
		<link>http://silverlike.net/clipmask-to-actual-size/</link>
		<comments>http://silverlike.net/clipmask-to-actual-size/#comments</comments>
		<pubDate>Sun, 27 Sep 2009 09:30:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Common]]></category>
		<category><![CDATA[Behavior]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[XAML]]></category>

		<guid isPermaLink="false">http://silverlike.net/clip-to-bounds-actual-size/</guid>
		<description><![CDATA[Colin Eberhardt created a very useful Clipping behavior class which helps you do clipping easily. The behavior can detect the ActualHeight and ActualWidth at run time and create a RectangleGeometry() to Clip your Grid.]]></description>
			<content:encoded><![CDATA[<p><b><a href="http://www.codeproject.com/Articles/36495/Silverlight-ClipToBounds-Can-I-Clip-It-Yes-You-Can.aspx" target="_blank">Colin Eberhardt</a></b> created a very useful Clipping behavior class which helps you do clipping easily. The behavior can detect the ActualHeight and ActualWidth at run time and create a RectangleGeometry() to Clip your Grid. </p>
<p class="image"><a class="thickbox" href="http://www.codeproject.com/Articles/36495/Silverlight-ClipToBounds-Can-I-Clip-It-Yes-You-Can.aspx" target="_blank"><img style="display: inline" title="Clip To Bounds" alt="Clip To Bounds" src="http://silverlike.net/wp-content/uploads/2009/09/ClipToBounds.png" width="400" height="250" /></a></p>
<div class="csharp-area">c# implementation of the behavior: </div>
<pre class="brush: c-sharp;">using System;
using System.Windows;

namespace Namespace
{

    public class Clip
    {
        public static bool GetToBounds(DependencyObject depObj)
        {
            return (bool)depObj.GetValue(ToBoundsProperty);
        }

        public static void SetToBounds(DependencyObject depObj, bool clipToBounds)
        {
            depObj.SetValue(ToBoundsProperty, clipToBounds);
        }

        /// &lt;summary&gt;
        /// Identifies the ToBounds Dependency Property.
        /// &lt;summary&gt;
        public static readonly DependencyProperty ToBoundsProperty =
        DependencyProperty.RegisterAttached(&quot;ToBounds&quot;, typeof(bool),
        typeof(Clip), new PropertyMetadata(false, OnToBoundsPropertyChanged));

        private static void OnToBoundsPropertyChanged(DependencyObject d,
        DependencyPropertyChangedEventArgs e)
        {
        FrameworkElement fe = d as FrameworkElement;
        if (fe != null)
        {
            ClipToBounds(fe);

            // whenever the element which this property is attached to is loaded
            // or re-sizes, we need to update its clipping geometry
            fe.Loaded += new RoutedEventHandler(fe_Loaded);
            fe.SizeChanged += new SizeChangedEventHandler(fe_SizeChanged);

        }
        }

        /// &lt;summary&gt;
        /// Creates a rectangular clipping geometry which matches the geometry of the
        /// passed element
        /// &lt;/summary&gt;
        private static void ClipToBounds(FrameworkElement fe)
        {
        if (GetToBounds(fe))
        {
            fe.Clip = new RectangleGeometry()
            {
            Rect = new Rect(0, 0, fe.ActualWidth, fe.ActualHeight)
            };
        }
        else
        {
            fe.Clip = null;
        }
        }

        static void fe_SizeChanged(object sender, SizeChangedEventArgs e)
        {
            ClipToBounds(sender as FrameworkElement);
        }

        static void fe_Loaded(object sender, RoutedEventArgs e)
        {
            ClipToBounds(sender as FrameworkElement);
        }
    }
}</pre>
<div class="xaml-area">sample usage in XAML: </div>
<pre class="brush: xml;">&lt;UserControl x:Class=&quot;Namespace.MainPage&quot;
    xmlns=&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;
    xmlns:x=&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;
    xmlns:this=&quot;clr-namespace:Namespace;assembly=Namespace&quot;
    &gt;
    &lt;Grid x:Name=&quot;LayoutRoot&quot;  this:Clip.ToBounds=&quot;True&quot; &gt;

    &lt;/Grid&gt;
&lt;/UserControl&gt;</pre>
<div class="reference-info"><strong>Website:</strong> <a href="http://silverlike.net/clipmask-to-actual-size/" title="http://silverlike.net/clipmask-to-actual-size/" target="_blank">Click here</a></div>
<div class="reference-info"><strong>Download:</strong> <a href="http://silverlike.net/clipmask-to-actual-size/" title="http://silverlike.net/clipmask-to-actual-size/" target="_blank">Click here</a></div>
<img src="http://silverlike.net/?ak_action=api_record_view&id=494&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://silverlike.net/clipmask-to-actual-size/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create Storyboard using C# and XAML</title>
		<link>http://silverlike.net/create-storyboard-using-c-and-xaml/</link>
		<comments>http://silverlike.net/create-storyboard-using-c-and-xaml/#comments</comments>
		<pubDate>Thu, 24 Sep 2009 11:13:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Common]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Storyboard]]></category>
		<category><![CDATA[XAML]]></category>

		<guid isPermaLink="false">http://silverlike.net/create-storyboard-using-c-and-xaml/</guid>
		<description><![CDATA[Kris Meeusen demonstrated how to create Storyboard animation identically using C# or XAML. A good article for you to reference how to create your first animation.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.lab101.be/2009/03/easing-in-c-storyboards/" target="_blank">Kris Meeusen</a> demonstrated how to create Storyboard animation identically using C# or XAML. A good article for you to reference how to create your first animation. </p>
<p class="image"><a class="thickbox" href="http://www.lab101.be/2009/03/easing-in-c-storyboards/" target="_blank"><img style="display: inline" title="Storyboard" alt="Storyboard" src="http://silverlike.net/wp-content/uploads/2009/09/Storyboard.jpg" width="400" height="250" /></a></p>
<div class="demo-area">Silverlight Demo: <a class="new-window" href="http://silverlike.net/silverlight/index.php?xap=%2Fwp-content%2Fuploads%2Fxap%2FEasingStoryBoard.xap&TB_iframe=true&caption=Create+Storyboard+using+C%23+and+XAML&height=400&width=650" target="_blank">Click here to view</a></div>
<div class="reference-info"><strong>Website:</strong> <a href="http://silverlike.net/create-storyboard-using-c-and-xaml/" title="http://silverlike.net/create-storyboard-using-c-and-xaml/" target="_blank">Click here</a></div>
<div class="reference-info"><strong>Download:</strong> <a href="http://silverlike.net/create-storyboard-using-c-and-xaml/" title="http://silverlike.net/create-storyboard-using-c-and-xaml/" target="_blank">Click here</a></div>
<img src="http://silverlike.net/?ak_action=api_record_view&id=279&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://silverlike.net/create-storyboard-using-c-and-xaml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!--
This site's performance optimized by W3 Total Cache:

W3 Total Cache improves the user experience of your blog by caching
frequent operations, reducing the weight of various files and providing
transparent content delivery network integration.

Learn more about our WordPress Plugins: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk

Served from: shareelements.silverlighteffect.com @ 2010-09-08 19:04:42 -->