コード例 #1
0
        public void AddFeedbackMessage(string iconPath, string message)
        {
            if (this.FeedbackMsssagePanel.Children.Count > 0 &&
                this.FeedbackMsssagePanel.Children[0] is Splash)
            {
                ((Splash)this.FeedbackMsssagePanel.Children[0]).FadeSplash();
            }

            FeedbackMessage feedbackMessage = new FeedbackMessage(iconPath, message, this);

            feedbackMessage.SetValue(GraphControl.HorizontalAlignmentProperty, HorizontalAlignment.Center);
            feedbackMessage.SetValue(GraphControl.VerticalAlignmentProperty, VerticalAlignment.Bottom);
            feedbackMessage.SetValue(GraphControl.MarginProperty, new Thickness(0, 0, 0, 5));
            this.FeedbackMsssagePanel.Children.Add(feedbackMessage);

            //if (iconPath != ResourceNames.Confirmation)
            //{
            //    if (errorFeedback != null)
            //        errorFeedback.FadeFeedbackMessage();
            //    errorFeedback = feedbackMessage;
            //}
        }
コード例 #2
0
        public void AddFeedbackMessage(string iconPath, string message)
        {
            if (this.FeedbackMsssagePanel.Children.Count > 0
                && this.FeedbackMsssagePanel.Children[0] is Splash)
            {
                ((Splash)this.FeedbackMsssagePanel.Children[0]).FadeSplash();
            }

            FeedbackMessage feedbackMessage = new FeedbackMessage(iconPath, message, this);
            feedbackMessage.SetValue(GraphControl.HorizontalAlignmentProperty, HorizontalAlignment.Center);
            feedbackMessage.SetValue(GraphControl.VerticalAlignmentProperty, VerticalAlignment.Bottom);
            feedbackMessage.SetValue(GraphControl.MarginProperty, new Thickness(0, 0, 0, 5));
            this.FeedbackMsssagePanel.Children.Add(feedbackMessage);

            //if (iconPath != ResourceNames.Confirmation)
            //{
            //    if (errorFeedback != null)
            //        errorFeedback.FadeFeedbackMessage();
            //    errorFeedback = feedbackMessage;
            //}
        }