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 3243760
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T18:28:16+00:00 2026-05-17T18:28:16+00:00

I am using a base class to my Popup windows on a WPF application.

  • 0

I am using a base class to my Popup windows on a WPF application. Everything looks and works great beside one thing : I cant map an event handler that is on the base class to the xaml.

Ofcourse i can easily have the event on the implemented class, and use the method to call the base class, but i just wanted to know if there a way to have the code cleaner while implementing all my generic event handlers in one place and mapping the xamls to them.

Example code :

<CommandBinding Command="Save" Executed="Save_Executed" CanExecute="Save_CanExecute" />

And have Save_Executed handler on the base class of ‘MyClass.cs’.

Thanks,
Oran

  • 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-05-17T18:28:16+00:00Added an answer on May 17, 2026 at 6:28 pm

    Solved my issue through a different approach…

    No need to use xaml mapping. i just added my base class a routine to register button events through code :

            CommandBinding saveBinding = new CommandBinding(ApplicationCommands.Save, Save_Executed, Save_CanExecute);
            _saveButton.CommandBindings.Add(saveBinding);
    

    Ofcourse that _saveButton is the actual implmemented popup window button that is passed to the base class on initialization.

    Oran

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

Sidebar

Related Questions

I'm trying to create a Quicksort base class using VB.NET, taking it an array
UPDATE: Obviously, you'd want to do this using templates or a base class rather
I have a base recipe class and I am using a datacontext. I overrode
#include <iostream> using namespace std; class Base { public: Base(){cout <<Base<<endl;} virtual ~Base(){cout<<~Base<<endl;} virtual
My scenario: Windows Forms Application with a base master (mdi) form. An Interface that
I'm using base class constructor as factory and changing class in this constructor/factory to
I'm implementing enumeration using a base class that defines a variety of methods. The
I have a base class DomainObject for all my business objects I am using
I have got an abstract base class and inherited poco entities. I am using
I am trying to implement a leftist tree using heaps as a base class.

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.