using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace WpfApplication1
{
/// <summary>
/// Interaction logic for Window1.xaml
/// </summary>
public partial class Window1 : Window
{
System.Windows.Threading.DispatcherTimer tmr; //-------
public Window1()
{
//-----------------------------
//-----------------------------
tmr = new System.Windows.Threading.DispatcherTimer(); //Create a new Timer
tmr.Interval = TimeSpan.FromMilliseconds(100); //Set a value for Interval
tmr.Tick += new EventHandler(tmr_Tick); // Event Tick
InitializeComponent();
}
void tmr_Tick(object sender, EventArgs e)
{
//Please Type Codes
}
}
}