Universal Windows Platform (UWP)
A Microsoft platform for building and publishing apps for Windows desktop devices.
3,001 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am developing a novice level test xamarin test project since I am new to this technology. I need to add a static variable of type Timer using the System.Threading namespace as follows,
private static Timer timer;
But, it doesn't seem to work. I did the following things to try to make it work.
*Unfortunately the website is not uploading the screenshots
Hello,
Welcome to Microsoft Q&A!
Xamarin Forms project contains System.Threading
namespace. You just add the following in .cs file and please avoid adding the System.Threading
with reference browser.
using System.Threading;
using System.Threading.Tasks;
using Xamarin.Forms;
namespace App58
{
public partial class MainPage : ContentPage
{
public MainPage()
{
InitializeComponent();
}
private static Timer timer;
}
}