You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<TextBlock Grid.Column="1"Margin="8,0"Text="This button shows a Snackbar with an action. The action will show another Snackbar after a short delay."TextWrapping="WrapWithOverflow" />
36
+
<TextBlock Grid.Column="1"Margin="8,0"Text="This button shows a Snackbar with an action by setting the ActionLabel Property. The action will show another Snackbar after a short delay."TextWrapping="WrapWithOverflow" />
<TextBlock Grid.Column="3"Margin="8,0"Text="By setting the Mode property to Manual you have the full control over the visibility. You just need to set the IsOpen property. Have a look in the XAML."TextWrapping="WrapWithOverflow" />
<!-- properties will be set in the order in the xaml, so set the Mode property first for the manual mode -->
45
+
<materialDesign:Snackbar Grid.Column="3" Grid.Row="4"x:Name="manualSnackbar"Mode="Manual"Content="This is a manually controlled Snackbar."IsOpen="{Binding Path=IsChecked}" />
awaitSnackbarHost.ShowAsync("RootSnackbarHost","Hello from the Snackbar!",newSnackbarAction("HELLO",async(objects,RoutedEventArgsa)=>{
35
-
awaitTask.Delay(2000);
64
+
_mode=SnackbarDemoMode.Multiline;
36
65
37
-
awaitSnackbarHost.ShowAsync("RootSnackbarHost","A second hello from the Snackbar!",newSnackbarAction("BYE"));
38
-
}));
66
+
snackbar.ActionLabel="GOT IT";
67
+
snackbar.VisibilityTimeout=6000;
68
+
snackbar.Content=newstring("The specs says that the maximum with should be 568dp. However there sould be at most only two lines of text.".ToCharArray());
0 commit comments