コード例 #1
0
        public static void Show(Object Content)
        {
            LBCMessageBox box = new LBCMessageBox();

            box.CONTENT_Content.Content = Content;
            box.Show();
            box.Close(box.MoveSpeed.Seconds * 1000 + box.ShowTime);
        }
コード例 #2
0
        public static bool?ShowDialog(Object Content)
        {
            LBCMessageBox box = new LBCMessageBox();

            box.Width  = StaticResource.ScreenWidth - 100;
            box.Height = 70;
            box.Top    = -box.Height;
            box.Left   = (StaticResource.ScreenWidth - box.Width) / 2;
            DoubleAnimation animaA = new DoubleAnimation(0, new Duration(box.MoveSpeed));

            box.BeginAnimation(LBCMessageBox.TopProperty, animaA);

            box.CONTENT_Content.Content = Content;
            box.BT_Yes.Visibility       = Visibility.Visible;
            box.BT_No.Visibility        = Visibility.Visible;
            bool?result = box.ShowDialog();

            box.Close();
            return(result);
        }