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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:24:40+00:00 2026-05-28T03:24:40+00:00

I have a WPF application. I have different users of this application and each

  • 0

I have a WPF application. I have different users of this application and each user has a different level associated with them. People with higher level dont have access to some menu items.

Is there a way to switch between the menu items? Is toggling the individual menu item’s visibility an efficient way to accomplish this? Is there any other way for 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-05-28T03:24:41+00:00Added an answer on May 28, 2026 at 3:24 am

    You could achieve this using bindings and converters. Basically if you have a property on the DataContext of the menu (which will be inherited by the menu items) that specifies the level of permissions; then you could bind that to the visibility of the menu items.

    Obviously, because the permissions would not be implicitly convertible to the Visibility enum, you would have to create an implementation of the IValueConverter interface, which would be specific to converting permissions to visibilities, and vice versa, based on the current permissions level. This would also require the converter having some concept of the current permissions level, so either you would want to give it access to some static property (which I would not advise), or you would need to gain hold of the converter instance (making sure you only use one instance) and pass the current permissions level to it.

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

Sidebar

Related Questions

I have a WPF application that allows users to create questions of all different
I have two different ways of displaying items in a WPF application. The first
I have WPF Application where I have One main form and other user controls
We have a WPF Application that has a two flavors with a consistent UI
I have a WPF application, where when a user unchecks a checkbox, the application
I'm trying to learn how to design an application which has several different user
In my wpf application the main view has 5 tabs with 5 different usercontrols
Basically I have a WPF application that will display announcements to the user within
I've got a WPF MVVM application. One of my views has a user control
I have written a WPF Line of Business application that has a particular sections

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.