In Windows Form time, there is a component for Timer. But in WPF, there is not such things. So, what thing we can do, when we need to execute a piece of code periodically. We can use the timers under System.Timers. But please do not use System.Timers.Timer, because it triggered, it will execute the code in a new thread. If you try to access any controls in WPF Windows, the system will throw an exception. I like to use System.Windows.Threading.DispatcherTimer in WPF, because that is very similar with the Timer in Windows Timer.
There are the example code:
To find more about this, please download the example project, AdvGenStopWatch.
I went to City today. I saw a real Galaxy S3 in Vodafone phone! The phone is not too big, that is still similar with Galaxy Nexus. Moreover, it is very light weight! That is so good! Lastly, that has a Samsung version UI, that sounds more than the original UI. That is only a drawback, that is quite expensive.It needs $59 plan!
My company can buy an online shop in a very cost-effective way by using several open source technologies. We got some good technologies, but that is not enough. The key is marketing. Now, we are thinking about the promotions. We have to let all potential clients know about that. I think after we mastered the technologies, then we have to put some good effort on marketing.
I created an opensource project, AdvGenStopWatch. This is a simple stop watch program and aimed to show how to use WPF. Including the following features:
- How to use Grid Layout and ViewPoint, this make all elements will be autosize.
- How to use Timer in WPF
- How to use ListView
I believe this is a good starting point to learn WPF.
I started my small firm last year. Now, we had a few clients and are working hard to find more clients. That is not in at the first stage, we only built the technologies. I have to care about sales and insurance. I cannot just focus on development. But that is the way I chose.