<?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>Tweened &#187; Actus</title>
	<atom:link href="http://www.tweened.org/en/category/actus/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tweened.org</link>
	<description>powered by Silverlight</description>
	<lastBuildDate>Thu, 17 Jun 2010 13:10:57 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>fr</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>A new Book in french to learn Silverlight</title>
		<link>http://www.tweened.org/en/2009/12/28/un-nouveau-livre-sur-silverlight/</link>
		<comments>http://www.tweened.org/en/2009/12/28/un-nouveau-livre-sur-silverlight/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 16:54:36 +0000</pubDate>
		<dc:creator>Eric Ambrosi</dc:creator>
				<category><![CDATA[Actus]]></category>
		<category><![CDATA[Livre - Pratique de Silverlight]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[livre]]></category>
		<category><![CDATA[Pratique de Silverlight]]></category>

		<guid isPermaLink="false">http://www.tweened.org/fr/?p=417</guid>
		<description><![CDATA[
French version

I recently completed writing my book Silverlight Practice wich is dedicated to technology of the same name. It should be over 500 pages and focuses on learning good practices and team production. It is published by Pearson Education France and released February 2, 2010. I have not designed as a glossary of features but [...]]]></description>
			<content:encoded><![CDATA[<ul class="#dtreecatwrapper">
<li class="#dtreecatwrapper"><a href="http://www.tweened.org/fr/2009/12/28/un-nouveau-livre-sur-silverlight/">French version</a></li>
</ul>
<p>I recently completed writing my book Silverlight Practice wich is dedicated to technology of the same name. It should be over 500 pages and focuses on learning good practices and team production. It is published by Pearson Education France and released February 2, 2010. I have not designed as a glossary of features but rather as a production guide and learning. He draws a sketch of the design of Silverlight applications, starting from the display list to loading external data in the design model MVVM through prototyping or organizational workflow.</p>
<p>The general idea of the book is to provide concrete examples downloadable for both designers and for developers. You can reserve a copy on the website of <a href="http://www.pearson.fr/livre/?GCOI=27440100843070" target="_blank">Pearson France here</a>.</p>
<p><a href="http://www.tweened.org/wp-content/files/referencepratiquesilverlight.jpg" title="reference_pratique_de_silverlight" rel="lightbox[417]"><img title="reference_pratique_de_silverlight" src="http://www.tweened.org/wp-content/files/referencepratiquesilverlight.jpg" alt="" width="580" height="184" /></a></p>
<p>This book is for Web integrators, interactive designers, graphic designers and pure web developers unfamiliar platform. Net. It creates a bridge between development and design, to improve collaboration and productivity.</p>
<p>Its content takes into account the specificities of developers and designers of interactive forms of complementary exercises. The C # is chosen as the only logical language for clarity. The theory, examples and exercises (downloadable) are progressive and can be a learning base for non-developers. However this is not a book for beginners Web, but to those who have acquired bases on other technologies.</p>
<p>Here is the summary of the book:)</p>
<p>Part I. Approach Silverlight</p>
<p>1. Introduction<br />
1.1 What does Silverlight?<br />
1.2 In. Net 1 to Silverlight<br />
1.3 The benefits of Silverlight<br />
1.4 The Expression Studio<br />
1.5 Positioning business<br />
1.6 Development language and choice</p>
<p>2. The couple XAML / C #<br />
2.1 XML<br />
2.2 XAML, a declarative language powerful<br />
2.3 The fundamentals of C #</p>
<p>3. HelloWorld<br />
3.1 A first Silverlight application<br />
3.2 Architecture of a solution<br />
3.3 The root container<br />
3.4 Add Text<br />
3.5 Test and compile</p>
<p>4. A site full screen in 2 minutes<br />
4.1 type projects website<br />
4.2 Creating resizable containers<br />
4.3 The component button<br />
4.4 Add interactivity<br />
4.5 Files deployed</p>
<p>5. The visual and logical tree<br />
5.1 Components Visual<br />
5.2 Principle of Nesting<br />
5.3 Adding children to the display list<br />
5.4 Remove objects from the visual tree<br />
5.5 Exchange index</p>
<p>Part II. Interactivity and graphic design</p>
<p>6. Animation<br />
6.1 Introduction<br />
6.2 Animating with Expression Blend<br />
6.3 Managing acceleration<br />
6.4 Animating with C<br />
6.5 The transformations on<br />
6.6 Animate particles</p>
<p>7. Buttons<br />
7.1 Create a video player<br />
7.2 Visual Style<br />
7.3 Generic Button<br />
7.4 The manager of visual states<br />
7.5 The switch or button ToggleButton</p>
<p>8. Interactivity and event model<br />
8.1 The foundations of event model<br />
8.2 withdrawn listening to an event<br />
8.3 The weak coupling in practice<br />
8.4 Event Propagation<br />
8.5 The behavior</p>
<p>9. The basics of 3D projection<br />
9.1 The 3D environment<br />
9.2 The properties of 3D<br />
9.3 The camera<br />
9.4 Introduction to matrices</p>
<p>10. Prototyping dynamic SketchFlow<br />
10.1 The Environment<br />
10.2 Simple Prototype<br />
10.3 The player SketchFlow<br />
10.4 Interactivity<br />
10.5 Interface rich</p>
<p>Part III. Designing rich applications</p>
<p>11. Graphic Resources<br />
11.1 What is a resource<br />
11.2 brushes<br />
11.3 Fonts<br />
11.4 Styles and component models<br />
11.5 The model Slider<br />
11.6 connections<br />
11.7 The model ListBox</p>
<p>12. Custom Components<br />
User Control 12.1<br />
12.2 Connection Box<br />
12.3 Custom Controls</p>
<p>13. Media and Data<br />
13.1 Loading media<br />
13.1.1 Dynamic loading of images<br />
13.1.2 video formats and modes of dissemination<br />
13.1.3 A simple video player<br />
13.1.4 Dynamic Loading videos<br />
13.2 Design MVVM<br />
13.2.1 Principles<br />
12.2.2 Model<br />
12.2.3 Model-View<br />
13.3 Loading Data<br />
13.3.1 The object WebClient<br />
13.3.2 Introduction to LINQ<br />
13.3.3 Lambda Expression<br />
13.3.4 Consuming XML with LINQ<br />
13.3.5 Loading a JSON feed<br />
13.3.6 Cross Domain Security</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tweened.org/en/2009/12/28/un-nouveau-livre-sur-silverlight/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>CustomControl ColorChooser and ColorPicker</title>
		<link>http://www.tweened.org/en/2009/10/30/customcontrol-colorchooser-and-colorpicker/</link>
		<comments>http://www.tweened.org/en/2009/10/30/customcontrol-colorchooser-and-colorpicker/#comments</comments>
		<pubDate>Fri, 30 Oct 2009 11:34:04 +0000</pubDate>
		<dc:creator>Eric Ambrosi</dc:creator>
				<category><![CDATA[Actus]]></category>
		<category><![CDATA[Composants]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Tutos Vidéos]]></category>
		<category><![CDATA[Tweened]]></category>
		<category><![CDATA[Silverlight 3]]></category>

		<guid isPermaLink="false">http://www.tweened.org/fr/?p=354</guid>
		<description><![CDATA[
French version


Hi, I recently have to find a solution create two customs controls
I recently needed controls customizable type ColorPicker ColorChooser and, finding none, I have designed from scratch, here's a demo.

They are in beta but I think provide a final version by November 15. In the meantime, if you want to test those controls and [...]]]></description>
			<content:encoded><![CDATA[<ul class="#dtreecatwrapper">
<li class="#dtreecatwrapper"><a href="http://www.tweened.org/fr/2009/10/30/customcontrol-colorchooser-and-colorpicker/">French version</a></li>
</ul>
<p><a href="http://www.tweened.org/wp-content/files/capture21.jpg" title="capture21" rel="lightbox[354]"><img class="alignnone size-full wp-image-365" style="border: 0pt none; margin-top: 5px; margin-bottom: 5px;" title="capture21" src="http://www.tweened.org/wp-content/files/capture21.jpg" alt="" width="580" height="184" /></a></p>
<p>Hi, I recently have to find a solution create two customs controls</p>
<p>I recently needed controls customizable type ColorPicker ColorChooser and, finding none, I have designed from scratch, here's a demo.</p>
<p><div id="silverlightControlHost"><object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="540" height="330"><param name="source" value="http://www.tweened.org/wp-content/uploads/applis/colorPicker.xap"/><param name="windowless" value="true"/><param name="background" value="#00FFFFFF" /><param name="minRuntimeVersion" value="3.0.40818.0" /><param name="autoupgrade" value="true" /><param name="enableHtmlAccess" value="true" /><param name="initParams" value="3.0.40818.0" /><a href="http://go.microsoft.com/fwlink/?LinkID=149156" style="text-decoration: none;"><img src="http://storage.timheuer.com/sl4wp-ph.png" alt="Install Microsoft Silverlight" style="border-style: none; width:400px; height:200px"/></a></object><iframe style="visibility:hidden;height:0;width:0;border:0px" id="_sl_historyFrame"></iframe></div><br /></p>
<p>They are in beta but I think provide a final version by November 15. In the meantime, if you want to test those controls and download the dll to test in SL3 is <a href="http://www.tweened.org/wp-content/uploads/applis/TweenedControls.dll">here</a>.</p>
<p>Ps: the Silverlight plugin for wordpress provided by  <a href="http://timheuer.com/blog/" target="_blank">Tim Heuer</a>, is powerful and useful, so thank you to him, I will only use this solution from now.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tweened.org/en/2009/10/30/customcontrol-colorchooser-and-colorpicker/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ProxyRenderTransform Library v2</title>
		<link>http://www.tweened.org/en/2009/05/20/proxyrendertransform-v2/</link>
		<comments>http://www.tweened.org/en/2009/05/20/proxyrendertransform-v2/#comments</comments>
		<pubDate>Wed, 20 May 2009 10:31:07 +0000</pubDate>
		<dc:creator>Eric Ambrosi</dc:creator>
				<category><![CDATA[Actus]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Silverlight 3]]></category>

		<guid isPermaLink="false">http://www.tweened.org/fr/?p=302</guid>
		<description><![CDATA[
French version


I've just released V2 of ProxyrenderTransform. ProxyRenderTransform use extensions methods to allow easy access to renderTransforms nodes. These are difficult to target by C# when they are not named. If you add the reference ProxyRenderTransform.dll, you will easily reach RenderTransform for any FrameWork element by extensions methods :

SetX / GetX
SetScaleX / GetScaleX
SetRotate / GetRotate
SetSkewX [...]]]></description>
			<content:encoded><![CDATA[<ul class="#dtreecatwrapper">
<li class="#dtreecatwrapper"><a href="http://www.tweened.org/fr/2009/05/20/proxyrendertransform-v2/">French version</a></li>
</ul>
<p><span id="ctl00_ctl00_MasterContent_Content_wikiSourceLabel"><img src="http://i3.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=proxyrd&amp;DownloadId=59039" alt="proxyRenderTransform.jpg" /><br />
I've just released V2 of ProxyrenderTransform. ProxyRenderTransform use extensions methods to allow easy access to renderTransforms nodes. These are difficult to target by C# when they are not named. If you add the reference ProxyRenderTransform.dll, you will easily reach RenderTransform for any FrameWork element by extensions methods :</span></p>
<ul>
<li>SetX / GetX</li>
<li>SetScaleX / GetScaleX</li>
<li>SetRotate / GetRotate</li>
<li>SetSkewX / SetSkewY</li>
</ul>
<p>You can get PropertyPath corresponding the way Blend create RenderTransformGroup via static properties</p>
<ul>
<li>_SCALE_X_PATH    // (UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)</li>
<li>_SCALE_Y_PATH</li>
<li>_SKEW_X_PATH</li>
<li>_SKEW_Y_PATH</li>
<li>_ROTATE_PATH</li>
<li>_TRANSLATE_X_PATH</li>
<li>_TRANSLATE_Y_PATH</li>
</ul>
<p>You can also get reference to transform nodes themselves</p>
<ul>
<li>GetScaleNode</li>
<li>GetTranslateNode</li>
<li>GetRotateNode</li>
<li>GetSkewNode</li>
</ul>
<p>there's an example below :</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
</pre></td><td class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000066; font-weight: bold;">void</span> Page_Loaded<span style="color: #009900;">&#40;</span>object sender, RoutedEventArgs e<span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
<span style="color: #666666; font-style: italic;">//any FrameworkElement can now have direct access to his RenderTransform</span>
rec.<span style="color: #006633;">SetX</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">605</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
Debug.<span style="color: #006633;">WriteLine</span><span style="color: #009900;">&#40;</span> rec.<span style="color: #006633;">GetX</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">//rec.SetX(105);</span>
<span style="color: #666666; font-style: italic;">//rec.SetRotate(60);</span>
<span style="color: #666666; font-style: italic;">//rec.SetScaleX(2);</span>
&nbsp;
dp.<span style="color: #006633;">Interval</span> <span style="color: #339933;">=</span> TimeSpan.<span style="color: #006633;">FromMilliseconds</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">10</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
dp.<span style="color: #006633;">Tick</span> <span style="color: #339933;">+=</span> <span style="color: #000000; font-weight: bold;">new</span> EventHandler<span style="color: #009900;">&#40;</span>dp_Tick<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
dp.<span style="color: #006633;">Start</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000066; font-weight: bold;">void</span> dp_Tick<span style="color: #009900;">&#40;</span>object sender, EventArgs e<span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
<span style="color: #000066; font-weight: bold;">double</span> newX <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">double</span><span style="color: #009900;">&#41;</span>rec_Copy.<span style="color: #006633;">GetX</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#40;</span> <span style="color: #cc66cc;">500</span> <span style="color: #339933;">-</span> <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">double</span><span style="color: #009900;">&#41;</span>rec_Copy.<span style="color: #006633;">GetX</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">*</span> .2<span style="color: #339933;">;</span>
rec_Copy.<span style="color: #006633;">SetX</span><span style="color: #009900;">&#40;</span>newX<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>In that release, you will have access to 3D projection plan too...</p>
<p><span id="ctl00_ctl00_MasterContent_Content_wikiSourceLabel">You can get library under MS-PL licence on Code Plex <a title="Code Plex project" href="http://proxyrd.codeplex.com/Wiki/View.aspx?title=Home" target="_blank">here</a>.<br />
Don't hesitate to send me an email or post a comment if you encounter bugs or difficulties when you use it <img src='http://www.tweened.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tweened.org/en/2009/05/20/proxyrendertransform-v2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Reflection Api in Silverlight</title>
		<link>http://www.tweened.org/en/2008/12/09/utiliser-lapi-de-reflection-au-sein-de-silverlight/</link>
		<comments>http://www.tweened.org/en/2008/12/09/utiliser-lapi-de-reflection-au-sein-de-silverlight/#comments</comments>
		<pubDate>Tue, 09 Dec 2008 15:06:48 +0000</pubDate>
		<dc:creator>Eric Ambrosi</dc:creator>
				<category><![CDATA[Actus]]></category>
		<category><![CDATA[Tutos Docs]]></category>
		<category><![CDATA[WPF]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[Silverlight]]></category>

		<guid isPermaLink="false">http://www.tweened.org/fr/?p=166</guid>
		<description><![CDATA[
French version

Recently i needed to get static method contained by a Class to display their visual result.
Indeed The idea was to display Robert Penner's Equation used by tweened. For doing such task you just have to use Reflection Api provided by Silverlight Framework that you can find in System.Reflection package. You will find the code [...]]]></description>
			<content:encoded><![CDATA[<ul class="#dtreecatwrapper">
<li class="#dtreecatwrapper"><a href="http://www.tweened.org/fr/2008/12/09/utiliser-lapi-de-reflection-au-sein-de-silverlight/">French version</a></li>
</ul>
<p>Recently i needed to get static method contained by a Class to display their visual result.<br />
Indeed The idea was to display Robert Penner's Equation used by tweened. For doing such task you just have to use Reflection Api provided by Silverlight Framework that you can find in <strong>System.Reflection</strong> package. You will find the code I used in this article.<span id="more-166"></span></p>
<p>First it is the code for the UserControl TweenedEquationThumb :</p>

<div class="wp_syntax"><div class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #0600FF;">using</span> <span style="color: #008080;">System</span><span style="color: #008000;">;</span>
<span style="color: #0600FF;">using</span> <span style="color: #008080;">System.Windows</span><span style="color: #008000;">;</span>
<span style="color: #0600FF;">using</span> <span style="color: #008080;">System.Windows.Controls</span><span style="color: #008000;">;</span>
<span style="color: #0600FF;">using</span> <span style="color: #008080;">System.Windows.Documents</span><span style="color: #008000;">;</span>
<span style="color: #0600FF;">using</span> <span style="color: #008080;">System.Windows.Ink</span><span style="color: #008000;">;</span>
<span style="color: #0600FF;">using</span> <span style="color: #008080;">System.Windows.Input</span><span style="color: #008000;">;</span>
<span style="color: #0600FF;">using</span> <span style="color: #008080;">System.Windows.Media</span><span style="color: #008000;">;</span>
<span style="color: #0600FF;">using</span> <span style="color: #008080;">System.Windows.Media.Animation</span><span style="color: #008000;">;</span>
<span style="color: #0600FF;">using</span> <span style="color: #008080;">System.Windows.Shapes</span><span style="color: #008000;">;</span>
<span style="color: #0600FF;">using</span> <span style="color: #008080;">Tweened</span><span style="color: #008000;">;</span>
<span style="color: #0600FF;">using</span> <span style="color: #008080;">System.Diagnostics</span><span style="color: #008000;">;</span>
&nbsp;
<span style="color: #0600FF;">namespace</span> TweenEquationSlideShow
<span style="color: #000000;">&#123;</span>
	<span style="color: #0600FF;">public</span> <span style="color: #0600FF;">partial</span> <span style="color: #FF0000;">class</span> TweenedEquationThumb <span style="color: #008000;">:</span> UserControl
	<span style="color: #000000;">&#123;</span>
        <span style="color: #0600FF;">public</span> Func TweenEquation<span style="color: #008000;">;</span>
        <span style="color: #FF0000;">double</span> EndValue<span style="color: #008000;">;</span>
        <span style="color: #FF0000;">double</span> StartValue<span style="color: #008000;">;</span>
        <span style="color: #FF0000;">double</span> BaseValue<span style="color: #008000;">;</span>
        Tween showTween <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Tween<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
        <span style="color: #0600FF;">public</span> TweenedEquationThumb<span style="color: #000000;">&#40;</span>Func tweenEquation, <span style="color: #FF0000;">double</span> endValue, <span style="color: #FF0000;">double</span> startValue, <span style="color: #FF0000;">double</span> baseValue<span style="color: #000000;">&#41;</span>
        <span style="color: #000000;">&#123;</span>
                <span style="color: #008080; font-style: italic;">// Required to initialize variables</span>
                InitializeComponent<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
                TweenEquation <span style="color: #008000;">=</span> tweenEquation<span style="color: #008000;">;</span>
                StartValue <span style="color: #008000;">=</span> startValue<span style="color: #008000;">;</span>
                EndValue <span style="color: #008000;">=</span> endValue<span style="color: #008000;">;</span>
                BaseValue <span style="color: #008000;">=</span> baseValue<span style="color: #008000;">;</span>
                TweenDoubleDescription tdc <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> TweenDoubleDescription<span style="color: #000000;">&#40;</span>animPath,         TweenableProperties.<span style="color: #0000FF;">Left</span>, TweenEquation, <span style="color: #FF0000;">2</span>, <span style="color: #FF0000;">180</span>, <span style="color: #FF0000;">20</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
                 tdc.<span style="color: #0000FF;">Definition</span> <span style="color: #008000;">=</span> <span style="color: #FF0000;">200</span><span style="color: #008000;">;</span>
                showTween.<span style="color: #0000FF;">AddSequences</span><span style="color: #000000;">&#40;</span>tdc<span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
                showTween.<span style="color: #0000FF;">TweenCompleted</span> <span style="color: #008000;">+=</span> <span style="color: #008000;">new</span> Tween.<span style="color: #0000FF;">StoryboardComplete</span><span style="color: #000000;">&#40;</span>showTween_TweenCompleted<span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
                Loaded <span style="color: #008000;">+=</span> <span style="color: #008000;">new</span> RoutedEventHandler<span style="color: #000000;">&#40;</span>TweenedEquationThumb_Loaded<span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
        <span style="color: #000000;">&#125;</span>
&nbsp;
        <span style="color: #0600FF;">void</span> showTween_TweenCompleted<span style="color: #000000;">&#40;</span>Tween sender, <span style="color: #FF0000;">object</span> freeReference<span style="color: #000000;">&#41;</span>
        <span style="color: #000000;">&#123;</span>
            sender.<span style="color: #0000FF;">Stop</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
        <span style="color: #000000;">&#125;</span>
&nbsp;
        <span style="color: #0600FF;">void</span> TweenedEquationThumb_Loaded<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">object</span> sender, RoutedEventArgs e<span style="color: #000000;">&#41;</span>
        <span style="color: #000000;">&#123;</span>
            MouseLeftButtonDown <span style="color: #008000;">+=</span> <span style="color: #008000;">new</span> MouseButtonEventHandler<span style="color: #000000;">&#40;</span>TweenedEquationThumb_MouseLeftButtonDown<span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            DrawCurve<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
        <span style="color: #000000;">&#125;</span>
&nbsp;
        <span style="color: #0600FF;">void</span> TweenedEquationThumb_MouseLeftButtonDown<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">object</span> sender, MouseButtonEventArgs e<span style="color: #000000;">&#41;</span>
        <span style="color: #000000;">&#123;</span>
            showTween.<span style="color: #0000FF;">Start</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
        <span style="color: #000000;">&#125;</span>
&nbsp;
        <span style="color: #0600FF;">private</span> <span style="color: #0600FF;">void</span> DrawCurve<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
        <span style="color: #000000;">&#123;</span>
&nbsp;
            <span style="color: #FF0000;">double</span> ecart <span style="color: #008000;">=</span> Math.<span style="color: #0000FF;">Round</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span><span style="color: #FF0000;">double</span><span style="color: #000000;">&#41;</span><span style="color: #FF0000;">1</span><span style="color: #008000;">/</span><span style="color: #FF0000;">200</span>, <span style="color: #FF0000;">3</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            Debug.<span style="color: #0000FF;">WriteLine</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;ecart :: &quot;</span><span style="color: #008000;">+</span>ecart<span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
            <span style="color: #0600FF;">for</span> <span style="color: #000000;">&#40;</span><span style="color: #FF0000;">int</span> i <span style="color: #008000;">=</span> <span style="color: #FF0000;">0</span><span style="color: #008000;">;</span> i <span style="color: #008000;">&amp;</span>lt<span style="color: #008000;">;</span> <span style="color: #FF0000;">200</span><span style="color: #008000;">;</span> i<span style="color: #008000;">++</span><span style="color: #000000;">&#41;</span>
            <span style="color: #000000;">&#123;</span>
                <span style="color: #FF0000;">double</span> currentTime <span style="color: #008000;">=</span> ecart <span style="color: #008000;">*</span> i<span style="color: #008000;">;</span>
                <span style="color: #FF0000;">double</span> XTimeValue <span style="color: #008000;">=</span> currentTime <span style="color: #008000;">*</span> <span style="color: #FF0000;">180</span><span style="color: #008000;">;</span>
                <span style="color: #FF0000;">double</span> YValue <span style="color: #008000;">=</span> BaseValue <span style="color: #008000;">+</span> <span style="color: #000000;">&#40;</span><span style="color: #FF0000;">double</span><span style="color: #000000;">&#41;</span>Math.<span style="color: #0000FF;">Round</span><span style="color: #000000;">&#40;</span><span style="color: #0600FF;">this</span>.<span style="color: #0000FF;">TweenEquation</span><span style="color: #000000;">&#40;</span>currentTime, StartValue, EndValue, <span style="color: #FF0000;">1</span><span style="color: #000000;">&#41;</span> <span style="color: #008000;">*</span> <span style="color: #FF0000;">1000</span><span style="color: #000000;">&#41;</span> <span style="color: #008000;">/</span> <span style="color: #FF0000;">1000</span><span style="color: #008000;">;</span>
&nbsp;
                Ellipse bulle <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Ellipse<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
                bulle.<span style="color: #0000FF;">Width</span> <span style="color: #008000;">=</span> <span style="color: #FF0000;">1.2</span><span style="color: #008000;">;</span>
                bulle.<span style="color: #0000FF;">Height</span> <span style="color: #008000;">=</span> <span style="color: #FF0000;">1.2</span><span style="color: #008000;">;</span>
                bulle.<span style="color: #0000FF;">Fill</span> <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> SolidColorBrush<span style="color: #000000;">&#40;</span>Color.<span style="color: #0000FF;">FromArgb</span><span style="color: #000000;">&#40;</span>0xff, 0xff, 0xff, 0xff<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
                Curve.<span style="color: #0000FF;">Children</span>.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span>bulle<span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
                Canvas.<span style="color: #0000FF;">SetLeft</span><span style="color: #000000;">&#40;</span>bulle, <span style="color: #FF0000;">20</span><span style="color: #008000;">+</span>XTimeValue<span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
                Canvas.<span style="color: #0000FF;">SetTop</span><span style="color: #000000;">&#40;</span>bulle, YValue<span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
                EquationName.<span style="color: #0000FF;">Text</span> <span style="color: #008000;">=</span> TweenEquation.<span style="color: #0000FF;">Method</span>.<span style="color: #0000FF;">Name</span><span style="color: #008000;">;</span>
&nbsp;
            <span style="color: #000000;">&#125;</span>
        <span style="color: #000000;">&#125;</span>
     <span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></div></div>

<p>And here the code for Page.xaml.cs :</p>

<div class="wp_syntax"><div class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #0600FF;">namespace</span> TweenEquationSlideShow
<span style="color: #000000;">&#123;</span>
	<span style="color: #0600FF;">public</span> <span style="color: #0600FF;">partial</span> <span style="color: #FF0000;">class</span> Page <span style="color: #008000;">:</span> UserControl
	<span style="color: #000000;">&#123;</span>
		<span style="color: #0600FF;">public</span> Page<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
		<span style="color: #000000;">&#123;</span>
			<span style="color: #008080; font-style: italic;">// Required to initialize variables</span>
			InitializeComponent<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
			Loaded <span style="color: #008000;">+=</span> <span style="color: #008000;">new</span> RoutedEventHandler<span style="color: #000000;">&#40;</span>Page_Loaded<span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
		<span style="color: #000000;">&#125;</span>
&nbsp;
		<span style="color: #0600FF;">void</span> Page_Loaded<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">object</span> sender, RoutedEventArgs e<span style="color: #000000;">&#41;</span>
		<span style="color: #000000;">&#123;</span>
			<span style="color: #008080; font-style: italic;">//In first time I get the TweenedEquations' Type</span>
			Type myTypeEq <span style="color: #008000;">=</span> <span style="color: #008000;">typeof</span><span style="color: #000000;">&#40;</span>Tweened.<span style="color: #0000FF;">TweenedEquations</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
			var b <span style="color: #008000;">=</span> true<span style="color: #008000;">;</span>
			<span style="color: #008080; font-style: italic;">//Then I get All methods contained with GetMethods() wich returns me an array of MethodInfo</span>
			<span style="color: #0600FF;">foreach</span> <span style="color: #000000;">&#40;</span>MemberInfo memberInfo <span style="color: #0600FF;">in</span> myTypeEq.<span style="color: #0000FF;">GetMethods</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
			<span style="color: #000000;">&#123;</span>
				<span style="color: #008080; font-style: italic;">//If methods' name begin with &quot;Ease&quot; </span>
				<span style="color: #0600FF;">if</span> <span style="color: #000000;">&#40;</span>memberInfo.<span style="color: #0000FF;">Name</span>.<span style="color: #0000FF;">IndexOf</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;Ease&quot;</span>, <span style="color: #FF0000;">0</span><span style="color: #000000;">&#41;</span> <span style="color: #008000;">!=</span> <span style="color: #008000;">-</span><span style="color: #FF0000;">1</span><span style="color: #000000;">&#41;</span>
				<span style="color: #000000;">&#123;</span>
					<span style="color: #008080; font-style: italic;">//then I get each method</span>
					MethodInfo myMethod <span style="color: #008000;">=</span> myTypeEq.<span style="color: #0000FF;">GetMethod</span><span style="color: #000000;">&#40;</span>memberInfo.<span style="color: #0000FF;">Name</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
					<span style="color: #008080; font-style: italic;">//And i create a new delegate with returned MethodInfo Object</span>
					var myD <span style="color: #008000;">=</span> <span style="color: #FF0000;">Delegate</span>.<span style="color: #0000FF;">CreateDelegate</span><span style="color: #000000;">&#40;</span><span style="color: #008000;">typeof</span> <span style="color: #000000;">&#40;</span>Func<span style="color: #008000;">&lt;</span><span style="color: #FF0000;">double</span> ,<span style="color: #FF0000;">double</span>,<span style="color: #FF0000;">double</span>,<span style="color: #FF0000;">double</span>,<span style="color: #FF0000;">double</span><span style="color: #008000;">&gt;</span><span style="color: #000000;">&#41;</span>,myMethod<span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
					<span style="color: #008080; font-style: italic;">//In fact we get the reference of that method without calling her</span>
					<span style="color: #008080; font-style: italic;">//I create a new instance of TweenedEquationThumb with a first argument taking my Delegate</span>
                    			TweenedEquationThumb tetb <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> TweenedEquationThumb<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>Func<span style="color: #008000;">&lt;/</span><span style="color: #FF0000;">double</span><span style="color: #008000;">&gt;&lt;</span><span style="color: #FF0000;">double</span> ,<span style="color: #FF0000;">double</span>,<span style="color: #FF0000;">double</span>,<span style="color: #FF0000;">double</span>,<span style="color: #FF0000;">double</span><span style="color: #008000;">&gt;</span><span style="color: #000000;">&#41;</span>myD, <span style="color: #008000;">-</span><span style="color: #FF0000;">55</span>, <span style="color: #FF0000;">0</span>, <span style="color: #FF0000;">65</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
                    			<span style="color: #008080; font-style: italic;">//if you want you could invoke each method using Invoke method of MethodInfo object</span>
                    			<span style="color: #0600FF;">if</span> <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span> CurveIn.<span style="color: #0000FF;">Children</span>.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span>tetb<span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span> 
                    			<span style="color: #0600FF;">else</span> CurveOut.<span style="color: #0000FF;">Children</span>.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span>tetb<span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span> 
                    			b <span style="color: #008000;">=</span> <span style="color: #008000;">!</span>b
                		<span style="color: #000000;">&#125;</span>
            		<span style="color: #000000;">&#125;</span>
        	<span style="color: #000000;">&#125;</span>
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span><span style="color: #008000;">&lt;/</span><span style="color: #FF0000;">double</span><span style="color: #008000;">&gt;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.tweened.org/en/2008/12/09/utiliser-lapi-de-reflection-au-sein-de-silverlight/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VisualStateManager available in Blend 2 SP1 for WPF projects</title>
		<link>http://www.tweened.org/en/2008/12/01/visualstatemanager-disponible-dans-blend-2-sp1-pour-les-projets-wpf/</link>
		<comments>http://www.tweened.org/en/2008/12/01/visualstatemanager-disponible-dans-blend-2-sp1-pour-les-projets-wpf/#comments</comments>
		<pubDate>Mon, 01 Dec 2008 11:37:07 +0000</pubDate>
		<dc:creator>Eric Ambrosi</dc:creator>
				<category><![CDATA[Actus]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[WPF]]></category>

		<guid isPermaLink="false">http://www.tweened.org/fr/?p=148</guid>
		<description><![CDATA[
French version

Until now VisualStateManager was a Silverlight 2 projects feature( You will find french video on how it works here ) but now with  the WPF ToolKit you will find here, it's possible to create Blend 2 projects including WisualStateManager. To get this feature I encourage you to go here where you will find full [...]]]></description>
			<content:encoded><![CDATA[<ul class="#dtreecatwrapper">
<li class="#dtreecatwrapper"><a href="http://www.tweened.org/fr/2008/12/01/visualstatemanager-disponible-dans-blend-2-sp1-pour-les-projets-wpf/">French version</a></li>
</ul>
<div id="attachment_48" class="wp-caption alignleft" style="width: 320px"><img class="size-full wp-image-48" title="vsm" src="http://www.tweened.org/wp-content/uploads/2008/06/vsm.png" alt="Visual State Manager" width="310" height="235" /><p class="wp-caption-text">Visual State Manager</p></div>
<p>Until now VisualStateManager was a Silverlight 2 projects feature( You will find french video on how it works <a href="http://www.tweened.org/wp-content/uploads/videos/14_advanceVisualStateManager.wmv">here </a>) but now with  the <a href="http://www.codeplex.com/wpf/Release/ProjectReleases.aspx?ReleaseId=15598" target="_blank">WPF ToolKit you will find here</a>, it's possible to create Blend 2 projects including WisualStateManager. To get this feature I encourage you to go <a href="http://blogs.msdn.com/expression/archive/2008/10/30/blend-2-sp1-wpf-toolkit-visual-state-manager-for-wpf.aspx" target="_blank">here</a> where you will find full explanations. It's a very good news that permit to understand the direction blend 2 has taken. For myself I have tried it et all work perfectly but there's no a real integration into controls as we have in Silverlight 2 Projects. Of course you can create States in Controls but they are not defined by default in the Design view.<a href="../post.php?action=edit&amp;post=148"> </a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tweened.org/en/2008/12/01/visualstatemanager-disponible-dans-blend-2-sp1-pour-les-projets-wpf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://www.tweened.org/wp-content/uploads/videos/14_advanceVisualStateManager.wmv" length="22277647" type="video/x-ms-wmv" />
		</item>
	</channel>
</rss>
