Text Ticker
-
KBou wrote:
So what is the best way to keep the animation running until the users stops it?
Check out the "RepeatBehavior" property.
Cheers, Karl
» CodeProject 2008 MVP » Microsoft MVP - Client App Dev My Blog | Mole's Home Page | MVP ProfileJust a grain of sand on the worlds beaches.
Well I thaugt I had created what I wanted. But I saw some flaws. First of all you won't get a continuasly stream of text and second it won't show all the text that is my TextBlock wich is in a UserControl only what you can see from the beginning. So back to square one it is. I still need help with this. This must be posible. Kevin
-
Well I thaugt I had created what I wanted. But I saw some flaws. First of all you won't get a continuasly stream of text and second it won't show all the text that is my TextBlock wich is in a UserControl only what you can see from the beginning. So back to square one it is. I still need help with this. This must be posible. Kevin
Kevin, Now I'm more confused over the desired result. Can you mock this up with a few images so that we can "see" the desired results.
Cheers, Karl
» CodeProject 2008 MVP » Microsoft MVP - Client App Dev My Blog | Mole's Home Page | MVP ProfileJust a grain of sand on the worlds beaches.
-
Kevin, Now I'm more confused over the desired result. Can you mock this up with a few images so that we can "see" the desired results.
Cheers, Karl
» CodeProject 2008 MVP » Microsoft MVP - Client App Dev My Blog | Mole's Home Page | MVP ProfileJust a grain of sand on the worlds beaches.
-
Have a look at this. http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=871414&SiteID=1[^]
Cheers, Karl
» CodeProject 2008 MVP » Microsoft MVP - Client App Dev My Blog | Mole's Home Page | MVP ProfileJust a grain of sand on the worlds beaches.
-
Have a look at this. http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=871414&SiteID=1[^]
Cheers, Karl
» CodeProject 2008 MVP » Microsoft MVP - Client App Dev My Blog | Mole's Home Page | MVP ProfileJust a grain of sand on the worlds beaches.
-
I had a look at it and it only solves one of my problems. It only solves the problem of text that is bigger than the usercontrol/canvas. You still have to wait for the End of the text to reach the left of the screen before it will start over.
Did you read the other post that was linked to in the article. http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2475074&SiteID=1&mode=1[^]
Cheers, Karl
» CodeProject 2008 MVP » Microsoft MVP - Client App Dev My Blog | Mole's Home Page | MVP ProfileJust a grain of sand on the worlds beaches.
-
Did you read the other post that was linked to in the article. http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2475074&SiteID=1&mode=1[^]
Cheers, Karl
» CodeProject 2008 MVP » Microsoft MVP - Client App Dev My Blog | Mole's Home Page | MVP ProfileJust a grain of sand on the worlds beaches.
I've look at that i tried the "Answer" given on that page but I don't know what to do with the "SignConverter" part. The description says "The sign converter just takes a number and returns its negative value." So when I didn't knew what it exactly did I put it in commentary and ran the project and saw it wasn't doing what I want. But is that the part that ensures the text to start when is has not ended? Kevin By the way. Sorry for my crappy English.
-
I've look at that i tried the "Answer" given on that page but I don't know what to do with the "SignConverter" part. The description says "The sign converter just takes a number and returns its negative value." So when I didn't knew what it exactly did I put it in commentary and ran the project and saw it wasn't doing what I want. But is that the part that ensures the text to start when is has not ended? Kevin By the way. Sorry for my crappy English.
Kevin, Your English is just fine, no worries. I'm SUPER busy for the next 2 weeks, almost every moment of the day is taken up with preparation for Code Camp and article writing. I might be easier to just write this. You need to create a class that exposes a circular buffer that you can read from, then using a System.Times.Timer in your UserControl display the text from the buffer. Write me in 2 weeks if you have not got this done and I'll write one and place it on my blog.
Cheers, Karl
» CodeProject 2008 MVP » Microsoft MVP - Client App Dev My Blog | Mole's Home Page | MVP ProfileJust a grain of sand on the worlds beaches.
-
Kevin, Your English is just fine, no worries. I'm SUPER busy for the next 2 weeks, almost every moment of the day is taken up with preparation for Code Camp and article writing. I might be easier to just write this. You need to create a class that exposes a circular buffer that you can read from, then using a System.Times.Timer in your UserControl display the text from the buffer. Write me in 2 weeks if you have not got this done and I'll write one and place it on my blog.
Cheers, Karl
» CodeProject 2008 MVP » Microsoft MVP - Client App Dev My Blog | Mole's Home Page | MVP ProfileJust a grain of sand on the worlds beaches.
-
Kevin, Your English is just fine, no worries. I'm SUPER busy for the next 2 weeks, almost every moment of the day is taken up with preparation for Code Camp and article writing. I might be easier to just write this. You need to create a class that exposes a circular buffer that you can read from, then using a System.Times.Timer in your UserControl display the text from the buffer. Write me in 2 weeks if you have not got this done and I'll write one and place it on my blog.
Cheers, Karl
» CodeProject 2008 MVP » Microsoft MVP - Client App Dev My Blog | Mole's Home Page | MVP ProfileJust a grain of sand on the worlds beaches.
Well Karl, I got nowhere with a circular buffer so I put it aside and went on with some other things. But it often crossed my mind and from what I got to understand of the idea you would still remove a character at the beginning an add one at the end. Would this give you a "smooth animation"? Thanks, Kevin
-
Well Karl, I got nowhere with a circular buffer so I put it aside and went on with some other things. But it often crossed my mind and from what I got to understand of the idea you would still remove a character at the beginning an add one at the end. Would this give you a "smooth animation"? Thanks, Kevin
Yes. It would also give you the ability to play a sound between characters, like a type writter key click.
Cheers, Karl
» CodeProject 2008 MVP » Microsoft MVP - Client App Dev My Blog | Mole's Home Page | MVP ProfileJust a grain of sand on the worlds beaches.
-
Yes. It would also give you the ability to play a sound between characters, like a type writter key click.
Cheers, Karl
» CodeProject 2008 MVP » Microsoft MVP - Client App Dev My Blog | Mole's Home Page | MVP ProfileJust a grain of sand on the worlds beaches.
-
Are you going to create an article about this? Could you send me a mail if you do. Because somehow this option "Notify me by e-mail if someone answers this message" doesn't work. So everytime I have to search these postings again. Greets, Kevin
Kevin, I'll post a reply here when I post the code.
Cheers, Karl
» CodeProject 2008 MVP » Microsoft MVP - Client App Dev My Blog | Mole's Home Page | MVP ProfileJust a grain of sand on the worlds beaches.
-
Kevin, I'll post a reply here when I post the code.
Cheers, Karl
» CodeProject 2008 MVP » Microsoft MVP - Client App Dev My Blog | Mole's Home Page | MVP ProfileJust a grain of sand on the worlds beaches.
-
Kevin, I found the solution here. http://blogs.msdn.com/delay/archive/2008/03/12/lb-sv-why-three-wacky-uses-for-silverlight-2-s-listbox-and-scrollviewer.aspx[^] Look down the page and you'll find, ScrollViewer: Marquee.
Cheers, Karl
» CodeProject 2008 MVP » Microsoft MVP - Client App Dev My Blog | Mole's Home Page | MVP ProfileJust a grain of sand on the worlds beaches.