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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T02:53:58+00:00 2026-06-02T02:53:58+00:00

(Using WPF application) The situation: Within a WPF application, i made a WPF usercontrol,

  • 0

(Using WPF application)

The situation:
Within a WPF application, i made a WPF usercontrol, that has been placed multiple times within the application window.

In the usercontroll is a button that does something. For example just does a simple messagebox.

What i want to do is activate the button when the Enter-key is pressed.

But here is the problem.
If i would make that within the usercontrol, will it press all the buttons of each usercontrol instance in the apllication ?

What is the right way of dealing with this ?

  • 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-02T02:54:00+00:00Added an answer on June 2, 2026 at 2:54 am

    will it press all the buttons of each usercontrol instance in the apllication ?

    No. When you handle Enter key, only one instance would be involved, typically one that contains input focus.

    For further reading, you can start at MSDN

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

Sidebar

Related Questions

In my WPF application using MVVM I noticed that in some cases the CanExecute
I have a WPF Application using Fluent NHibernate 1.0 RTM and System.Data.SQLite 1.0.65 that
I'm writing an application using WPF, and I need to make something that looks
I recently built a new application using WPF, so that I can learn the
I am using C# / WPF to make an application. In that application, I
Situation I'm creating a C#/WPF 4 application using a SQL Compact Edition database as
(Using WPF application) This is the situation: There are 3 user input fields. 1
Here is the spec: Multiple clients using a WPF winforms application on their local
I'm building an application using WPF and MVVM. I've come across a situation where
I have a WPF/C# application that is using the MVVM light framework. When it

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.