Skip to content

Commit

Permalink
[TwoButtonPopup] add Toast TC (Samsung#31)
Browse files Browse the repository at this point in the history
* [CircleStepper] add StackLayout TC

* [CircleStepper] add MarkerLineWidth and remove debug log

* [CircleStepper] update doc to add property picture

* [CircleStepper] update property picture

* [CircleStepper] update property picture

* [CircleStepper] fix errata

* [CircleStepper] fix issue where the marker position was wrong when assigning a nonzero number to value

* [CircleStepper] add listview for TCs

* [TwoButtonPopup] add Toast TC
  • Loading branch information
hj-na-park authored and GitHub Enterprise committed Dec 14, 2017
1 parent 1666fb8 commit 11d0d8e
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
8 changes: 8 additions & 0 deletions WearableUIGallery/WearableUIGallery/WearableUIGallery/TC/TCTwoButtonPopup.xaml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@
Text="Show2"
VerticalOptions="CenterAndExpand"
WidthRequest="200" />
<Button
x:Name="button3"
Clicked="OnButton3Clicked"
HeightRequest="50"
HorizontalOptions="Center"
Text="Toast"
VerticalOptions="CenterAndExpand"
WidthRequest="200" />
</StackLayout>
</ContentPage.Content>
</ContentPage>
20 changes: 20 additions & 0 deletions WearableUIGallery/WearableUIGallery/WearableUIGallery/TC/TCTwoButtonPopup.xaml.cs
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public partial class TCTwoButtonPopup : ContentPage
{
TwoButtonPopup _popUp1 = null;
TwoButtonPopup _popUp2 = null;
TwoButtonPopup _popUp3 = null;
public TCTwoButtonPopup()
{
InitializeComponent();
Expand Down Expand Up @@ -133,6 +134,20 @@ scroller to this layout when size of text is greater than total popup

_popUp1.FirstButton.Clicked += (s, e) => Console.WriteLine("First(share) button clicked!");
_popUp1.SecondButton.Clicked += (s, e) => Console.WriteLine("Second(delete) button clicked!");

// Toast case
_popUp3 = new TwoButtonPopup();
_popUp3.Title = "Popup title";
_popUp3.Text = @"This is scrollable popup text.
This part is made by adding long text in popup. Popup internally added
scroller to this layout when size of text is greater than total popup
height. This has two button in action area and title text in title area";

_popUp3.BackButtonPressed += (s, e) =>
{
_popUp3.Dismiss();
label1.Text = "Toast is dismissed";
};
}


Expand All @@ -145,5 +160,10 @@ private void OnButton2Clicked(object sender, EventArgs e)
{
_popUp2.Show();
}

private void OnButton3Clicked(object sender, EventArgs e)
{
_popUp3.Show();
}
}
}

0 comments on commit 11d0d8e

Please sign in to comment.