iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hello Everybody,
for my enterprise application I need a timer within the ViewModel. That's why I have added Xamarin.Forms to my portable library. But I could not use it because of the Silverlight targeting of the Portable Class Library. Therefore I have changed the target and have removed some assemblies. Xamarin.Forms is working, now. But Crosslight not.
Here my steps in detail:
1. Add Xamarin.Forms via NuGet
2. Remove Silverlight target from PCL
3. Remove Assemblies "System.Tasks" because some types are alredy defined withing Xamarin.Forms
Build breaks because of AppService.cs could not find the Property ".Assembly"
Do you have an examle using the Xamarin.Forms.Timer within a ViewModel with the Enterprise Template?
Hello Fabian,
May I know why you need the Timer class from Xamarin.Forms assembly? The PCL and System.Tasks already includes full support for threading and timer. It's not necessary to use Xamarin.Forms just to use the Timer class.
Note that if you have installed Microsoft BCL extension (which is done by default if you created a new business project using Crosslight Project Wizard), you can access the tasks-related class from TaskEx in System.Threading.Tasks namespace. For the Timer class, it should be available in System.Threading namespace.
Hope this helps.
Hello,
if the "normal" timer is working on every device, I have not problem with it. But it would be a killer if there are problems with Android and iOS. Even if there is a problem on some Android or iOS devices.
Xamarin.Forms is tested and if there is a problem I can ask Xamarin to fix it. System.Threading will probably not be fixed for Android. That's why I would prefer Xamarin.Forms.
Xamarin.Forms is even much more than just a timer. It would be great if Crosslight could use it. Even with the Enterprise Framework. It should not be a Crosslight OR Xamarin.Forms decision. They should work together like you could see with the MVVM Light Toolkit.
Do you have any plans for that?
Kind regards,
Fabian
The standard Timer implementation should work fine and reliable across all supported platforms. In essence, the Mono implementationof .NET BCL has reached maturity and it's used heavily as the foundation for Xamarin platforms. Furthermore, Mono is fully managedby Xamarin, so you don't need to worry about the issues in the franework level.
In most cases, we've found that standard Timer works well, so we haven't seen any needs why we should invent one. If you believe we should implement a better Timer with richer functionality, please create a feature request and explain the desired features and behaviors in details. Creating a feature request is similar with creating a new forum post, just change the type to "Feature Request" in the type selection of the form.
*Removed due to duplicate response.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname