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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:02:47+00:00 2026-05-25T17:02:47+00:00

I have a main window, where are 3 buttons: There are in grid. Depending

  • 0

I have a main window, where are 3 buttons:

There are in grid.

Depending of loginname i want to switch one of them.

If user is in musician group the third button will have some musician image, and Command at click Open Musician Events

If user is in musician group the third button will have some musician image, and Command at click Open Cinema Events.

The simplest way for me is to set those properties by converters, but I don’t want do it in this way. I want to have completely different controls.

How do you do that?

  • 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-25T17:02:48+00:00Added an answer on May 25, 2026 at 5:02 pm

    Not sure why you don’t want to use Converters. However, if you insist on using completely different controls then why don’t you simply bind the Visibility of the buttons to a property on the ViewModel e.g. Expose a property on the VM named IsCurrentUserInMusicians and bind the third buttons Visibility property to it. This way if the user is in the Musicians group then the appropriate button will be visible. If not it simply won’t appear.

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

Sidebar

Related Questions

I have 18 Buttons within a Uniform grid on my main WPF window. I
I have WPF application with one main window . In this window there are
I have a Switch to window button on my main form that I'd like
I have a Main Window which has a Grid. On Button Click Events, I
Python 2.7, PyQt4.8.5 I want to have a main app window and then a
Ok, i have 2 edit controls and a button in my main window; in
I have a main window (#1) on my webpage from which I open a
I have my main program window, and I would like to make a foldable
I have a main menu window. On clicking any menu item it opens a
I have an Air application with a main window. I would like to have

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.