Moved to VS 2012 + Added support to Windows Phone

This commit is contained in:
Ami Bar
2012-08-20 16:35:37 +03:00
parent 50a6b71d50
commit 9e23bde841
47 changed files with 1387 additions and 107 deletions
+43
View File
@@ -0,0 +1,43 @@
using System;
using System.Diagnostics;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Threading;
namespace STPWPDemo
{
public partial class SpinTextBlock : UserControl
{
public event EventHandler<EventArgs> Increment;
public event EventHandler<EventArgs> Decrement;
public SpinTextBlock()
{
InitializeComponent();
}
void Dec_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
{
if (Decrement != null)
{
Decrement(this, EventArgs.Empty);
}
}
void Inc_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
{
if (Increment != null)
{
Increment(this, EventArgs.Empty);
}
}
public string Text
{
get { return TextBlock.Text; }
set { TextBlock.Text = value; }
}
}
}