Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7903301
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T09:42:54+00:00 2026-06-03T09:42:54+00:00

I have windows application developed based on WPF,i am going thur weird issue here.

  • 0

I have windows application developed based on WPF,i am going thur weird issue here.
I have to chose the image ,once its done am pop up the message like “”Keyframe Image was resized successfully” but if do two times,its pop up two times though,if do it 3 times then it pop up thrice.

Am not sure how to resolve this or how to count,any help much apprciated.

here is my view model class file

 private void imageResizer_ResizeCompleted(object sender, System.ComponentModel.RunWorkerCompletedEventArgs e)
    {
        string test =e.ToString();
        ImageResizerResult result = (ImageResizerResult)e.Result;

        this.aggregator.GetEvent<ImageResizeCompletedEvent>().Publish(result.IsSuccessful);

            if (result.IsSuccessful)
            {

                this.dialog.ShowSuccess("Keyframe Image was resized successfully");
            }

        }

is calling my service to pass this message

        public void ShowSuccess(string message)
    {

        MessageBox.Show(message,
                        "Success",
                        MessageBoxButton.OK,
                        MessageBoxImage.Information);
    }

Any idea what am missing here.Thanks in Advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T09:42:55+00:00Added an answer on June 3, 2026 at 9:42 am

    I think that everytime you pick an image, you add an event to that image (or an image’s controller) with the += operator. Then, somewhere in your application the ResizeComplete event is fired.

    But, as you never dettach the event from the previous images, all them are fired together. You need to use the -= operator somewhere in your code, possibly inside the ResizeComplete method.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently we have developed application using Java 6 based on windows 32bit(Dual core &
i have developed one windows (desktop) based application which sends pdf as an attachments.
I have a stand-alone Java windows application developed based on Swing. It connects to
I have an application developed in C++ in Visual Studio 2003 (Windows Forms application).
I have developed a windows forms c# application, i just want update items in
I have an application which was developed under Windows, but for gcc. The code
I have developed a application for a client who uses windows 7 home premium
On Windows 7, VB.NET Express, I have developed a simple Forms application. I don't
I have a application developed based on Compact Framework 1.0. I can run it,
I have developed a javascript based widget application having IM features, use case of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.