partial void handleButtonShow(MaterialControls.MDButton sender) { string message = String.Format("Connection time out. Test for long message {0}", count++); MDSnackbar snackbar = new MDSnackbar(message, "retry"); snackbar.ActionTitleColor = UIColorHelper.ColorWithRGBA("#4CAF50"); snackbar.Multiline = (count % 2 == 0); snackbar.Show(); }
void ReleaseDesignerOutlets() { if (appetizerImageView != null) { appetizerImageView.Dispose(); appetizerImageView = null; } if (appetizerTextView != null) { appetizerTextView.Dispose(); appetizerTextView = null; } if (forwardButton != null) { forwardButton.Dispose(); forwardButton = null; } }
partial void buttonShowHandle(MaterialControls.MDButton sender) { var dialog = new MDTimePickerDialog(); dialog.Show(); }
partial void handleSingleLineToast(MaterialControls.MDButton sender) { var toast = new MDToast("Toast test message", 1.0); toast.Show(); }
partial void handleLongLineToast(MaterialControls.MDButton sender) { var toast = new MDToast("Attention! This is a very very very long long text message", 1.0); toast.Show(); }