diff --git a/UITestDemo/Droid/UITestDemo.Droid.csproj b/UITestDemo/Droid/UITestDemo.Droid.csproj
index 2a91acb..f3ca2d4 100644
--- a/UITestDemo/Droid/UITestDemo.Droid.csproj
+++ b/UITestDemo/Droid/UITestDemo.Droid.csproj
@@ -15,7 +15,7 @@
True
True
UITestDemo.Droid
- v5.0
+ v5.1
true
@@ -42,23 +42,23 @@
+
+ ..\packages\Xamarin.Android.Support.v4.22.2.1.0\lib\MonoAndroid403\Xamarin.Android.Support.v4.dll
+
- ..\packages\Xamarin.Forms.1.4.3.6376\lib\MonoAndroid10\Xamarin.Forms.Platform.Android.dll
+ ..\packages\Xamarin.Forms.1.4.4.6392\lib\MonoAndroid10\Xamarin.Forms.Platform.Android.dll
- ..\packages\Xamarin.Forms.1.4.3.6376\lib\MonoAndroid10\FormsViewGroup.dll
+ ..\packages\Xamarin.Forms.1.4.4.6392\lib\MonoAndroid10\FormsViewGroup.dll
- ..\packages\Xamarin.Forms.1.4.3.6376\lib\MonoAndroid10\Xamarin.Forms.Core.dll
+ ..\packages\Xamarin.Forms.1.4.4.6392\lib\MonoAndroid10\Xamarin.Forms.Core.dll
- ..\packages\Xamarin.Forms.1.4.3.6376\lib\MonoAndroid10\Xamarin.Forms.Xaml.dll
+ ..\packages\Xamarin.Forms.1.4.4.6392\lib\MonoAndroid10\Xamarin.Forms.Xaml.dll
- ..\packages\Xamarin.Forms.1.4.3.6376\lib\MonoAndroid10\Xamarin.Forms.Platform.dll
-
-
- ..\packages\Xamarin.Android.Support.v4.22.2.1.0\lib\MonoAndroid403\Xamarin.Android.Support.v4.dll
+ ..\packages\Xamarin.Forms.1.4.4.6392\lib\MonoAndroid10\Xamarin.Forms.Platform.dll
@@ -89,5 +89,5 @@
-
+
\ No newline at end of file
diff --git a/UITestDemo/Droid/packages.config b/UITestDemo/Droid/packages.config
index 401f130..44a52da 100644
--- a/UITestDemo/Droid/packages.config
+++ b/UITestDemo/Droid/packages.config
@@ -1,5 +1,5 @@
-
+
\ No newline at end of file
diff --git a/UITestDemo/MainPage.xaml b/UITestDemo/MainPage.xaml
index 0bc5658..f6f8e0f 100644
--- a/UITestDemo/MainPage.xaml
+++ b/UITestDemo/MainPage.xaml
@@ -11,7 +11,7 @@
-
+
diff --git a/UITestDemo/MainPage.xaml.cs b/UITestDemo/MainPage.xaml.cs
index 07327c4..30b37a6 100644
--- a/UITestDemo/MainPage.xaml.cs
+++ b/UITestDemo/MainPage.xaml.cs
@@ -5,9 +5,15 @@ namespace UITestDemo
{
public partial class MainPage : ContentPage
{
+ MainPageViewModel _mainViewModel;
+
public MainPage()
{
InitializeComponent();
+
+ _mainViewModel = new MainPageViewModel();
+
+ BindingContext = _mainViewModel;
}
async void DetailClicked(object sender, EventArgs args)
@@ -17,7 +23,7 @@ async void DetailClicked(object sender, EventArgs args)
void CalculateClicked(object sender, EventArgs args)
{
- Add.AddItems(2, 2);
+ _mainViewModel.UpdateButtonText();
}
}
}
diff --git a/UITestDemo/MainPageViewModel.cs b/UITestDemo/MainPageViewModel.cs
new file mode 100644
index 0000000..c3b19e0
--- /dev/null
+++ b/UITestDemo/MainPageViewModel.cs
@@ -0,0 +1,48 @@
+using System.ComponentModel;
+using System.Runtime.CompilerServices;
+
+namespace UITestDemo
+{
+ public class MainPageViewModel : INotifyPropertyChanged
+ {
+ public event PropertyChangedEventHandler PropertyChanged = delegate {};
+ public void RaisePropertyChanged([CallerMemberName] string propertyName = "")
+ {
+ var handler = PropertyChanged;
+
+ if (handler != null)
+ {
+ handler(this, new PropertyChangedEventArgs(propertyName));
+ }
+ }
+
+ private string addString;
+ public string AddString
+ {
+ get
+ {
+ return addString;
+ }
+ set
+ {
+ if (addString != value)
+ {
+ addString = value;
+ RaisePropertyChanged();
+ }
+ }
+ }
+
+ public MainPageViewModel()
+ {
+ this.AddString = "2 + 2 = ?";
+ }
+
+ public void UpdateButtonText()
+ {
+ var result = Add.AddItems(2, 2);
+
+ this.AddString = "2 + 2 = " + result;
+ }
+ }
+}
diff --git a/UITestDemo/UITestDemo.csproj b/UITestDemo/UITestDemo.csproj
index cc22f49..d7e78d5 100644
--- a/UITestDemo/UITestDemo.csproj
+++ b/UITestDemo/UITestDemo.csproj
@@ -39,9 +39,10 @@
DetailPage.xaml
+
-
+
MSBuild:UpdateDesignTimeXaml
@@ -52,13 +53,13 @@
- packages\Xamarin.Forms.1.4.4.6386\lib\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+MonoTouch10+Xamarin.iOS10\Xamarin.Forms.Core.dll
+ packages\Xamarin.Forms.1.4.4.6392\lib\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+MonoTouch10+Xamarin.iOS10\Xamarin.Forms.Core.dll
- packages\Xamarin.Forms.1.4.4.6386\lib\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+MonoTouch10+Xamarin.iOS10\Xamarin.Forms.Xaml.dll
+ packages\Xamarin.Forms.1.4.4.6392\lib\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+MonoTouch10+Xamarin.iOS10\Xamarin.Forms.Xaml.dll
- packages\Xamarin.Forms.1.4.4.6386\lib\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+MonoTouch10+Xamarin.iOS10\Xamarin.Forms.Platform.dll
+ packages\Xamarin.Forms.1.4.4.6392\lib\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+MonoTouch10+Xamarin.iOS10\Xamarin.Forms.Platform.dll
diff --git a/UITestDemo/iOS/UITestDemo.iOS.csproj b/UITestDemo/iOS/UITestDemo.iOS.csproj
index 38e068d..8300236 100644
--- a/UITestDemo/iOS/UITestDemo.iOS.csproj
+++ b/UITestDemo/iOS/UITestDemo.iOS.csproj
@@ -69,16 +69,16 @@
..\packages\Xamarin.TestCloud.Agent.0.14.1\lib\Xamarin.iOS10\Calabash.dll
- ..\packages\Xamarin.Forms.1.4.3.6376\lib\Xamarin.iOS10\Xamarin.Forms.Platform.iOS.dll
+ ..\packages\Xamarin.Forms.1.4.4.6392\lib\Xamarin.iOS10\Xamarin.Forms.Platform.iOS.dll
- ..\packages\Xamarin.Forms.1.4.3.6376\lib\Xamarin.iOS10\Xamarin.Forms.Core.dll
+ ..\packages\Xamarin.Forms.1.4.4.6392\lib\Xamarin.iOS10\Xamarin.Forms.Core.dll
- ..\packages\Xamarin.Forms.1.4.3.6376\lib\Xamarin.iOS10\Xamarin.Forms.Xaml.dll
+ ..\packages\Xamarin.Forms.1.4.4.6392\lib\Xamarin.iOS10\Xamarin.Forms.Xaml.dll
- ..\packages\Xamarin.Forms.1.4.3.6376\lib\Xamarin.iOS10\Xamarin.Forms.Platform.dll
+ ..\packages\Xamarin.Forms.1.4.4.6392\lib\Xamarin.iOS10\Xamarin.Forms.Platform.dll
@@ -121,5 +121,5 @@
-
+
\ No newline at end of file
diff --git a/UITestDemo/iOS/packages.config b/UITestDemo/iOS/packages.config
index e3e25b6..5f367ac 100644
--- a/UITestDemo/iOS/packages.config
+++ b/UITestDemo/iOS/packages.config
@@ -1,5 +1,5 @@
-
+
\ No newline at end of file
diff --git a/UITestDemo/packages.config b/UITestDemo/packages.config
index 4b126e7..192ce41 100644
--- a/UITestDemo/packages.config
+++ b/UITestDemo/packages.config
@@ -1,4 +1,4 @@
-
+
\ No newline at end of file