File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
Microsoft.Toolkit.Uwp.SampleApp/SamplePages/Toast Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,9 @@ private void PopToast()
13
13
("60", "1 hour"),
14
14
("240", "4 hours"),
15
15
("1440", "1 day"))
16
- .AddButton(new ToastButtonSnooze() { SelectionBoxId = "snoozeTime" })
17
- .AddButton(new ToastButtonDismiss())
16
+ .AddButton(new ToastButton()
17
+ .SetSnoozeActivation("snoozeTime"))
18
+ .AddButton(new ToastButton()
19
+ .SetDismissActivation())
18
20
.Show();
19
21
}
Original file line number Diff line number Diff line change @@ -40,8 +40,10 @@ public static ToastContent GenerateToastContent()
40
40
( "60" , "1 hour" ) ,
41
41
( "240" , "4 hours" ) ,
42
42
( "1440" , "1 day" ) )
43
- . AddButton ( new ToastButtonSnooze ( ) { SelectionBoxId = "snoozeTime" } )
44
- . AddButton ( new ToastButtonDismiss ( ) ) ;
43
+ . AddButton ( new ToastButton ( )
44
+ . SetSnoozeActivation ( "snoozeTime" ) )
45
+ . AddButton ( new ToastButton ( )
46
+ . SetDismissActivation ( ) ) ;
45
47
46
48
return builder . Content ;
47
49
}
You can’t perform that action at this time.
0 commit comments