示例#1
0
        private void ActionSheet_Clicked(object sender, EventArgs e)
        {
            var config = new ActionSheetConfig
            {
                Title   = "Title",
                Message = "Message",

                BottomSheet = false,
            };

            // c.ItemTextAlgin = ActionSheetItemTextAlgin.Center;

            //config.AddItem("item1_icon", icon: "ic_3d_rotation_black_24dp");
            //config.AddItem("item2_icon", icon: "ic_android_black_24dp");
            //config.AddItem("item3_icon", icon: "ic_credit_card_black_24dp");

            config.AddItem("item1");
            config.AddItem("item2");
            config.AddItem("item3", action: () => ToastShow("item3"));


            config.AddCancel(action: () => ToastShow("cancel"));
            config.AddDestructive(action: () => ToastShow("destructive"));

            UserDialogs.Instance.ActionSheet(config);
        }