-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #356 from Microsoft/develop
v0.13.0
- Loading branch information
Showing
224 changed files
with
2,627 additions
and
1,933 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.microsoft.azure.mobile.xamarin.puppet" android:versionCode="22" android:versionName="0.12.0-SNAPSHOT" android:installLocation="auto"> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.microsoft.azure.mobile.xamarin.puppet" android:versionCode="24" android:versionName="0.13.0-SNAPSHOT" android:installLocation="auto"> | ||
<uses-sdk android:minSdkVersion="16" /> | ||
<application android:label="SXPuppet" android:icon="@drawable/Icon" android:theme="@style/PuppetTheme" /> | ||
</manifest> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
Apps/Contoso.Forms.Puppet/Contoso.Forms.Puppet.Droid/Properties/AndroidManifest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
Apps/Contoso.Forms.Puppet/Contoso.Forms.Puppet.UWP/Package.appxmanifest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
Apps/Contoso.Forms.Puppet/Contoso.Forms.Puppet/ModulePages/CustomPropertiesContentPage.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ContentPage Title="Custom Properties" | ||
xmlns="http://xamarin.com/schemas/2014/forms" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
x:Class="Contoso.Forms.Puppet.CustomPropertiesContentPage"> | ||
<StackLayout Orientation="Vertical"> | ||
<ScrollView Orientation="Vertical"> | ||
<StackLayout Orientation="Vertical" x:Name="PropertiesContainer"> | ||
</StackLayout> | ||
</ScrollView> | ||
<Button Text="Add property" Clicked="AddProperty_Clicked" x:Name="AddProperty"/> | ||
<Button Text="Send" Clicked="Send_Clicked" x:Name="Send"/> | ||
</StackLayout> | ||
</ContentPage> |
36 changes: 36 additions & 0 deletions
36
...Contoso.Forms.Puppet/Contoso.Forms.Puppet/ModulePages/CustomPropertiesContentPage.xaml.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using System; | ||
using Microsoft.Azure.Mobile; | ||
using Xamarin.Forms; | ||
|
||
namespace Contoso.Forms.Puppet | ||
{ | ||
[Android.Runtime.Preserve(AllMembers = true)] | ||
public partial class CustomPropertiesContentPage : ContentPage | ||
{ | ||
public CustomPropertiesContentPage() | ||
{ | ||
InitializeComponent(); | ||
AddNewProperty(); | ||
} | ||
|
||
public void AddNewProperty() | ||
{ | ||
PropertiesContainer.Children.Add(new CustomPropertyView()); | ||
} | ||
|
||
private void AddProperty_Clicked(object sender, EventArgs e) | ||
{ | ||
AddNewProperty(); | ||
} | ||
|
||
private void Send_Clicked(object sender, EventArgs e) | ||
{ | ||
CustomProperties customProperties = new CustomProperties(); | ||
foreach(var customProperty in PropertiesContainer.Children) | ||
{ | ||
(customProperty as CustomPropertyView).AddCustomProperty(customProperties); | ||
} | ||
MobileCenter.SetCustomProperties(customProperties); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
Apps/Contoso.Forms.Puppet/Contoso.Forms.Puppet/Views/CustomPropertyView.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ContentView xmlns="http://xamarin.com/schemas/2014/forms" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
x:Class="Contoso.Forms.Puppet.CustomPropertyView"> | ||
<ContentView.Content> | ||
<Frame OutlineColor="DarkGray"> | ||
<StackLayout Orientation="Vertical"> | ||
<Entry x:Name="PropertyKey"></Entry> | ||
<Picker x:Name="PropertyType" SelectedIndexChanged="PropertyType_SelectedIndexChanged"></Picker> | ||
<StackLayout x:Name="PropertyValueHolder"/> | ||
</StackLayout> | ||
</Frame> | ||
</ContentView.Content> | ||
</ContentView> |
Oops, something went wrong.