<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.silverlight.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Getting Started</title><link>http://forums.silverlight.net/forums/14.aspx</link><description>The perfect forum for asking the basic questions. No question too simple!</description><dc:language>en</dc:language><generator>CommunityServer 2007 (Build: 20416.853)</generator><item><title>Re: Re: Re: Re: Creating a ticker moving text from right to left (C#)</title><link>http://forums.silverlight.net/forums/thread/237931.aspx</link><pubDate>Thu, 25 Jun 2009 18:52:37 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:237931</guid><dc:creator>Breezer100</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/237931.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=14&amp;PostID=237931</wfw:commentRss><description>&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;Here is a version of this that shows you how it can be done. I added comments as well :)&lt;/p&gt;
&lt;p&gt;If you improve it or fix something let me now :)&lt;/p&gt;
&lt;p&gt;PS: This is just a proof of concept for me so there are many improvements that could be done to code&lt;/p&gt;
&lt;p&gt;&lt;a href="http://cid-e20db49df7d9f1fa.skydrive.live.com/self.aspx/SL%20DEMO/TickerSilverlightApplication.zip"&gt;http://cid-e20db49df7d9f1fa.skydrive.live.com/self.aspx/SL%20DEMO/TickerSilverlightApplication.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://cid-e20db49df7d9f1fa.skydrive.live.com/self.aspx/SL%20DEMO/TickerSilverlightApplication.zip"&gt;&lt;/a&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Re: Re: Creating a ticker moving text from right to left (C#)</title><link>http://forums.silverlight.net/forums/thread/237707.aspx</link><pubDate>Thu, 25 Jun 2009 09:47:26 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:237707</guid><dc:creator>hadrien.reiner</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/237707.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=14&amp;PostID=237707</wfw:commentRss><description>&lt;p&gt;Can you post your solution here ? Because I need to do something exactly like that for a personal project.&lt;/p&gt;&lt;p&gt;Thank you,&lt;/p&gt;&lt;p&gt;&amp;nbsp;Hadrien REINER &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Re: Re: Creating a ticker moving text from right to left (C#)</title><link>http://forums.silverlight.net/forums/thread/235814.aspx</link><pubDate>Sat, 20 Jun 2009 11:43:34 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:235814</guid><dc:creator>Breezer100</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/235814.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=14&amp;PostID=235814</wfw:commentRss><description>&lt;p&gt;I figured it out in the end. &lt;/p&gt;
&lt;p&gt;I make a dynamic solution that generates a new storyboard each time a new ticker should be sent out. &lt;/p&gt;
&lt;p&gt;I know when a new storyboard should be created by checking the left canvas property of the text relative to the textblocks actualwidth. A Backgroundworker generates the new storyboards :)&lt;/p&gt;</description></item><item><title>Re: Re: Creating a ticker moving text from right to left (C#)</title><link>http://forums.silverlight.net/forums/thread/235798.aspx</link><pubDate>Sat, 20 Jun 2009 10:27:19 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:235798</guid><dc:creator>Galaad</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/235798.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=14&amp;PostID=235798</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Maybe you can make it with a begin time in a storyboard, no?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Re: Creating a ticker moving text from right to left (C#)</title><link>http://forums.silverlight.net/forums/thread/235372.aspx</link><pubDate>Fri, 19 Jun 2009 07:53:18 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:235372</guid><dc:creator>Breezer100</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/235372.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=14&amp;PostID=235372</wfw:commentRss><description>&lt;p&gt;&lt;span style="WIDOWS:2;TEXT-TRANSFORM:none;TEXT-INDENT:0px;BORDER-COLLAPSE:separate;FONT:16px &amp;#39;Times New Roman&amp;#39;;WHITE-SPACE:normal;ORPHANS:2;LETTER-SPACING:normal;WORD-SPACING:0px;-webkit-border-horizontal-spacing:0px;-webkit-border-vertical-spacing:0px;-webkit-text-decorations-in-effect:none;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" class="Apple-style-span"&gt;&lt;span style="FONT-FAMILY:-webkit-monospace;WHITE-SPACE:pre-wrap;FONT-SIZE:13px;" class="Apple-style-span"&gt;Yes this is excactly what I needed. &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="WIDOWS:2;TEXT-TRANSFORM:none;TEXT-INDENT:0px;BORDER-COLLAPSE:separate;FONT:16px &amp;#39;Times New Roman&amp;#39;;WHITE-SPACE:normal;ORPHANS:2;LETTER-SPACING:normal;WORD-SPACING:0px;-webkit-border-horizontal-spacing:0px;-webkit-border-vertical-spacing:0px;-webkit-text-decorations-in-effect:none;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" class="Apple-style-span"&gt;&lt;span style="FONT-FAMILY:-webkit-monospace;WHITE-SPACE:pre-wrap;FONT-SIZE:13px;" class="Apple-style-span"&gt;I was just wondering about one more thing. The text that I will animate might vary. I have my messages in a queue, and on each tickerAnimation_Completed I will pick another text from the queue and change the animated text. This works perfect. &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="WIDOWS:2;TEXT-TRANSFORM:none;TEXT-INDENT:0px;BORDER-COLLAPSE:separate;FONT:16px &amp;#39;Times New Roman&amp;#39;;WHITE-SPACE:normal;ORPHANS:2;LETTER-SPACING:normal;WORD-SPACING:0px;-webkit-border-horizontal-spacing:0px;-webkit-border-vertical-spacing:0px;-webkit-text-decorations-in-effect:none;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" class="Apple-style-span"&gt;&lt;span style="FONT-FAMILY:-webkit-monospace;WHITE-SPACE:pre-wrap;FONT-SIZE:13px;" class="Apple-style-span"&gt;My next challenge is since my canvas has e.g. a width of 800 and the text might just be &amp;quot;This is a ticker&amp;quot; it could be boring having to wait for that text to dissapear to the left before triggering another message. So I added another textblock that also picks from the queue. This also works, but I am having difficulties detecting excatcly when I should trigger the 2nd tickeranimation. I want this to happend when the first tickeranimation has revelaed all its text + some whitespace. Do you understand what I mean?&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="WIDOWS:2;TEXT-TRANSFORM:none;TEXT-INDENT:0px;BORDER-COLLAPSE:separate;FONT:16px &amp;#39;Times New Roman&amp;#39;;WHITE-SPACE:normal;ORPHANS:2;LETTER-SPACING:normal;WORD-SPACING:0px;-webkit-border-horizontal-spacing:0px;-webkit-border-vertical-spacing:0px;-webkit-text-decorations-in-effect:none;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" class="Apple-style-span"&gt;&lt;span style="FONT-FAMILY:-webkit-monospace;WHITE-SPACE:pre-wrap;FONT-SIZE:13px;" class="Apple-style-span"&gt;If I am able to do that I figure I could just generate tickeranimations dynamically. This would be really cool.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="WIDOWS:2;TEXT-TRANSFORM:none;TEXT-INDENT:0px;BORDER-COLLAPSE:separate;FONT:16px &amp;#39;Times New Roman&amp;#39;;WHITE-SPACE:normal;ORPHANS:2;LETTER-SPACING:normal;WORD-SPACING:0px;-webkit-border-horizontal-spacing:0px;-webkit-border-vertical-spacing:0px;-webkit-text-decorations-in-effect:none;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" class="Apple-style-span"&gt;&lt;span style="FONT-FAMILY:-webkit-monospace;WHITE-SPACE:pre-wrap;FONT-SIZE:13px;" class="Apple-style-span"&gt;So e.g. in my case I might have a queue of&amp;nbsp;2 messages&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="WIDOWS:2;TEXT-TRANSFORM:none;TEXT-INDENT:0px;BORDER-COLLAPSE:separate;FONT:16px &amp;#39;Times New Roman&amp;#39;;WHITE-SPACE:normal;ORPHANS:2;LETTER-SPACING:normal;WORD-SPACING:0px;-webkit-border-horizontal-spacing:0px;-webkit-border-vertical-spacing:0px;-webkit-text-decorations-in-effect:none;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" class="Apple-style-span"&gt;&lt;span style="FONT-FAMILY:-webkit-monospace;WHITE-SPACE:pre-wrap;FONT-SIZE:13px;" class="Apple-style-span"&gt;1) &lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Ronaldo leaves Manchester United&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="WIDOWS:2;TEXT-TRANSFORM:none;TEXT-INDENT:0px;BORDER-COLLAPSE:separate;FONT:16px &amp;#39;Times New Roman&amp;#39;;WHITE-SPACE:normal;ORPHANS:2;LETTER-SPACING:normal;WORD-SPACING:0px;-webkit-border-horizontal-spacing:0px;-webkit-border-vertical-spacing:0px;-webkit-text-decorations-in-effect:none;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" class="Apple-style-span"&gt;&lt;span style="FONT-FAMILY:-webkit-monospace;WHITE-SPACE:pre-wrap;FONT-SIZE:13px;" class="Apple-style-span"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;/font&gt;2) &lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;There has been a thunderstorm in Greenville&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff"&gt;&lt;font color="#0000ff"&gt;&lt;font color="#000000" size="2"&gt;Below is an example of what I have so far. Now I start the 2nd ticker by clicking the start button. But I want this to happend automatically when the first message e.g. is a its current position (the whole text is revealed and some spacing before next message)&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;
&lt;p&gt;&lt;span style="WIDOWS:2;TEXT-TRANSFORM:none;TEXT-INDENT:0px;BORDER-COLLAPSE:separate;FONT:16px &amp;#39;Times New Roman&amp;#39;;WHITE-SPACE:normal;ORPHANS:2;LETTER-SPACING:normal;WORD-SPACING:0px;-webkit-border-horizontal-spacing:0px;-webkit-border-vertical-spacing:0px;-webkit-text-decorations-in-effect:none;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" class="Apple-style-span"&gt;&lt;span style="FONT-FAMILY:-webkit-monospace;WHITE-SPACE:pre-wrap;FONT-SIZE:13px;" class="Apple-style-span"&gt;&lt;img src="http://iybspq.bay.livefilestore.com/y1ptldUsAJ6qExMCbnRK4c4N_4zqfq2_gosVKZEh3MXjBuwzwz0rNxi4zNPOtllH3QkVCBO5WDM6dCOB8LZtcifRA/untitled.JPG" width="413" height="280" alt="" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Re: Creating a ticker moving text from right to left (C#)</title><link>http://forums.silverlight.net/forums/thread/235242.aspx</link><pubDate>Thu, 18 Jun 2009 22:34:36 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:235242</guid><dc:creator>K2P2</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/235242.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=14&amp;PostID=235242</wfw:commentRss><description>&lt;p&gt;Canvases don&amp;#39;t clip their children so you need to add something like the following:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&lt;span class="tag"&gt;Canvas&lt;/span&gt;&lt;span class="attr"&gt;&amp;nbsp; Height=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;300&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; Width=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;400&amp;quot;&lt;/span&gt; &amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&lt;span class="tag"&gt;Canvas.Clip&lt;/span&gt;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&lt;span class="tag"&gt;RectangleGeometry&lt;/span&gt;&lt;span class="attr"&gt; Rect=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;0,0 400, 300&amp;quot;&lt;/span&gt; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/&lt;span class="tag"&gt;Canvas.Clip&lt;/span&gt;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&lt;span class="tag"&gt;TextBlock&lt;/span&gt;&lt;span class="attr"&gt; x:Name=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;tickerText2&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; Text=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;There has been a thunderstorm in Greenville&amp;quot;&lt;/span&gt; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/&lt;span class="tag"&gt;Canvas&lt;/span&gt;&amp;gt;&lt;br /&gt;&lt;/p&gt;&amp;nbsp;</description></item><item><title>Creating a ticker moving text from right to left (C#)</title><link>http://forums.silverlight.net/forums/thread/235131.aspx</link><pubDate>Thu, 18 Jun 2009 17:28:48 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:235131</guid><dc:creator>Breezer100</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/235131.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=14&amp;PostID=235131</wfw:commentRss><description>&lt;p&gt;I have created a simple ticker that moves text from right to left using animation. Now this works great, but Im having some issues getting the text to appear one letter at the time from the right. The text disappeares one letter at the time on the left side so this works.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;So if the text is &amp;quot;hello how are you&amp;quot; I want the &amp;#39;h&amp;#39; to appear moving from right to left to appear first, then &amp;#39;he&amp;#39;, then &amp;#39;hel&amp;#39;, &amp;#39;hell&amp;#39;, hello&amp;#39;, hello &amp;#39; and so on&lt;/p&gt;
&lt;p&gt;Here is the code I have that works (but misses this feature)&lt;/p&gt;
&lt;p&gt;//Page.aspx&lt;pre class="coloredcode"&gt;&amp;lt;&lt;span class="tag"&gt;UserControl&lt;/span&gt;&lt;span class="attr"&gt; x:Class=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;Ticker.Page&amp;quot;&lt;/span&gt;
&lt;span class="attr"&gt;xmlns=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&amp;quot;&lt;/span&gt; 

&lt;span class="attr"&gt;xmlns:x=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml&amp;quot;&lt;/span&gt; 

&lt;span class="attr"&gt;Width=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;400&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; Height=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;300&amp;quot;&lt;/span&gt;&amp;gt;


    &amp;lt;&lt;span class="tag"&gt;StackPanel&lt;/span&gt; &amp;gt;
        &amp;lt;&lt;span class="tag"&gt;StackPanel.Resources&lt;/span&gt;&amp;gt;
            &amp;lt;&lt;span class="tag"&gt;Storyboard&lt;/span&gt;&lt;span class="attr"&gt; x:Name=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;tickerAnimation&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; Completed=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;tickerAnimation_Completed&amp;quot;&lt;/span&gt; &amp;gt;
                &amp;lt;&lt;span class="tag"&gt;DoubleAnimation&lt;/span&gt;&lt;span class="attr"&gt; x:Name=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;animationText2&amp;quot;&lt;/span&gt; 
&lt;span class="attr"&gt;Storyboard.TargetName=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;tickerText2&amp;quot;&lt;/span&gt;
&lt;span class="attr"&gt;Storyboard.TargetProperty=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;(Canvas.Left)&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; BeginTime=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;0&amp;quot;&lt;/span&gt;
&lt;span class="attr"&gt;Duration=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;0:0:5&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; From=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;200&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; To=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;-250&amp;quot;&lt;/span&gt;  /&amp;gt;
            &amp;lt;/&lt;span class="tag"&gt;Storyboard&lt;/span&gt;&amp;gt;
        &amp;lt;/&lt;span class="tag"&gt;StackPanel.Resources&lt;/span&gt;&amp;gt;
        &amp;lt;&lt;span class="tag"&gt;Canvas&lt;/span&gt; &amp;gt;
            &amp;lt;&lt;span class="tag"&gt;TextBlock&lt;/span&gt;&lt;span class="attr"&gt; x:Name=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;tickerText2&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; Text=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;There has been a thunderstorm in Greenville&amp;quot;&lt;/span&gt; /&amp;gt;
        &amp;lt;/&lt;span class="tag"&gt;Canvas&lt;/span&gt;&amp;gt;
    &amp;lt;/&lt;span class="tag"&gt;StackPanel&lt;/span&gt;&amp;gt;


&amp;lt;/&lt;span class="tag"&gt;UserControl&lt;/span&gt;&amp;gt;&lt;/pre&gt;&amp;nbsp; 
&lt;p&gt;//Page.aspx.cs&lt;pre class="coloredcode"&gt; &lt;span class="kwd"&gt;public&lt;/span&gt; partial &lt;span class="kwd"&gt;class&lt;/span&gt; Page : UserControl
    {
        &lt;span class="kwd"&gt;public&lt;/span&gt; Page()
        {
            InitializeComponent();
            tickerAnimation.Begin();
        }        

        &lt;span class="kwd"&gt;private void&lt;/span&gt; tickerAnimation_Completed(&lt;span class="kwd"&gt;object&lt;/span&gt; sender, EventArgs e)
        {
            tickerAnimation.Begin();
        }
    }&lt;/pre&gt;&amp;nbsp;</description></item></channel></rss>