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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T21:22:56+00:00 2026-05-20T21:22:56+00:00

I am working ona WPF application that has a toolbar/menu that will have the

  • 0

I am working ona WPF application that has a toolbar/menu that will have the use for several custom commands. Probably around 15-20. I have seen documentation on how to create custom commands, but none of them necessarily apply to what I am trying to do.

I am using a controller to handle the business logic in my application, and I am trying to keep my view from doing any logic at all.

What I would like to do is create a directory in my project that holds the custom command classes so that I can decouple them from the controller and the view, but I would still like them to be called from the view such as a normal commmand is.

I have also seen the use of a DelegateCommand class, but am not quite sure if that is the direction I want to head in.

I would like to be able to have an arbitrary custom command class such as the following

public CustomCommand: ICommandd
{
    public bool CanExecute(object parameter)
    {
        //arbitrary logic
    }

    public void Execute(object parameter)
    {

    }
}

The idea is that I would have 10-20 of these, and I want to keep them separate from everything else, and have them be called when needed.

I know that there is a way I can separate my custom commands, but am not quite sure.

I am new to using commands, so I still am trying to get a hold of the concept.

thanks,

  • 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-20T21:22:57+00:00Added an answer on May 20, 2026 at 9:22 pm

    I have ended up answering my own question through the following post,
    http://www.codeproject.com/KB/WPF/CentralizingWPFCommands.aspx?display=Print

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

Sidebar

Related Questions

I am working on a WPF application which has a treeview that represents an
I'm working on a WPF application that sometimes exhibits odd problems and appears to
I'm working on a WPF application that displays video clips as part of the
I've been working on a WPF application for a while, and the time has
I have a WPF application which so far has been client only, but now
I'm working on a multi-lingual WPF project that will be localized into many different
I'm working on a WPF application and is using the Model-View-ViewModel pattern. The application
I'm working on a simple application to start learning my way around WPF. I
I am working on an application that allows users to manipulate multiple images by
I am working on a wpf application, when using Combo Box control i am

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.