コード例 #1
0
        public static Control NotificationNoImg(string header, string underline, string caption)
        {
            NotificationControl notificationControl = new NotificationControl();

            //DoubleAnimation da = new DoubleAnimation();
            //da.From = 0;
            //da.To = 360;
            //da.Duration = new Duration(TimeSpan.FromSeconds(3));
            //da.RepeatBehavior = RepeatBehavior.Forever;
            //RotateTransform rt = new RotateTransform();
            //notificationControl.RenderTransform = rt;
            //rt.BeginAnimation(RotateTransform.AngleProperty, da);

            notificationControl.Width  = 350;
            notificationControl.Height = 80;
            notificationControl.HorizontalAlignment = HorizontalAlignment.Right;
            notificationControl.VerticalAlignment   = VerticalAlignment.Bottom;
            notificationControl.Margin          = new Thickness(0, 0, 0, 10);
            notificationControl.header.Text     = header;
            notificationControl.underline.Text  = underline;
            notificationControl.caption.Text    = caption;
            notificationControl.Name            = "notificationControl";
            notificationControl.LayoutTransform = new RotateTransform(180);
            notificationControl.RegisterName(notificationControl.Name, notificationControl);
            GetThicc(notificationControl);
            GetSmoll(notificationControl);
            NotificationControlForList(header, underline, caption);
            notificationControl.boarder.BorderBrush = DoujinUtility.MainWindow.animatedBrush;
            return(notificationControl);
        }