Skip to content

Commit

Permalink
Update samples
Browse files Browse the repository at this point in the history
Update wp8 for new keyboard types
  • Loading branch information
aritchie committed Feb 18, 2015
1 parent e898860 commit 4bfbecb
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 54 deletions.
12 changes: 12 additions & 0 deletions src/Acr.UserDialogs.WindowsPhone/UserDialogsImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,20 @@ protected virtual InputScope GetInputScope(InputType inputType) {
name.NameValue = InputScopeNameValue.EmailNameOrAddress;
break;

case InputType.Name:
name.NameValue = InputScopeNameValue.PersonalFullName;
break;

case InputType.Number:
name.NameValue = InputScopeNameValue.Number;
break;

case InputType.Phone:
name.NameValue = InputScopeNameValue.NameOrPhoneNumber;
break;

case InputType.Url:
name.NameValue = InputScopeNameValue.Url;
break;

default:
Expand Down
107 changes: 53 additions & 54 deletions src/Samples/Samples.Droid/Resources/Resource.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/Samples/Samples/MainPage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,11 @@ private void Prompt() {
.SetTitle("Choose Type")
.Add("Default", () => this.PromptCommand(InputType.Default))
.Add("E-Mail", () => this.PromptCommand(InputType.Email))
.Add("Name", () => this.PromptCommand(InputType.Name))
.Add("Number", () => this.PromptCommand(InputType.Number))
.Add("Password", () => this.PromptCommand(InputType.Password))
.Add("Phone", () => this.PromptCommand(InputType.Phone))
.Add("Url", () => this.PromptCommand(InputType.Url))
);
}

Expand Down

0 comments on commit 4bfbecb

Please sign in to comment.