Skip to content

Commit

Permalink
fix #175 toast position in readonly
Browse files Browse the repository at this point in the history
  • Loading branch information
aritchie committed May 25, 2016
1 parent 5ccd172 commit 5a57d6e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 3 additions & 1 deletion nuspec/Acr.UserDialogs.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>Acr.UserDialogs</id>
<version>5.2.0</version>
<version>5.2.1</version>
<title>ACR User Dialogs Plugin for Xamarin and Windows</title>
<summary>Allows for messagebox style dialogs to be called from your shared/PCL/MVVM code</summary>
<description>
Expand Down Expand Up @@ -65,6 +65,8 @@ Supported Platforms
</group>-->
</dependencies>
<releaseNotes>
5.2.1
[fix] toastposition get/set
5.2
[feature] cancellable standard dialogs. use cancellationtokens or disposable pattern from sync versions
[feature] date/time dialogs
Expand Down
8 changes: 7 additions & 1 deletion src/Acr.UserDialogs.Interface/ToastConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public class ToastConfig
/// <summary>
/// Only applies to iOS at the moment
/// </summary>
public ToastPosition Position { get; }
public ToastPosition Position { get; set; }
public Color BackgroundColor { get; set; }
public IBitmap Icon { get; set; }
public string Title { get; set; }
Expand Down Expand Up @@ -123,6 +123,12 @@ public ToastConfig SetDuration(TimeSpan duration)
}


public ToastConfig SetPosition(ToastPosition position)
{
this.Position = position;
return this;
}

public ToastConfig SetIcon(IBitmap bitmap)
{
this.Icon = bitmap;
Expand Down

0 comments on commit 5a57d6e

Please sign in to comment.