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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T01:17:47+00:00 2026-06-13T01:17:47+00:00

I have troubles with WPF desktop application based on Microsoft Prism Framework. The application

  • 0

I have troubles with WPF desktop application based on Microsoft Prism Framework. The application has Logon dialog on startup that creates AuthenticationContext (User and Role) and runs Prism Bootstrapper (which creates ShellWindow and load Modules). Permissions are implemented using Markup Extensions and therefore parsed on view creation as I understand:

<MenuItem IsEnabled="{op:AuthToEnabled {x:Static a:ACL.CAN_CLOSE}}" ...>

Now I’m trying to add the abillity to change current user (and his permissions) at runtime.
The possible ways of recreating entire bootstrapper or shell window does’t work as expected and in generally look like hacks.

Is there a common way or best practice to do such things (users, permissions itself and their changes) when using Prism or WPF in general?

  • 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-13T01:17:48+00:00Added an answer on June 13, 2026 at 1:17 am

    I’m not positive, but I believe {x:Static } is only evaluated once and won’t get re-evaluated even if your permissions change

    What about just restarting your application entirely when the user chooses to change logins?

    I do this with one of my applications which requires a restart when the login info changes:

    Process.Start(Application.ResourceAssembly.Location);
    Application.Current.Shutdown();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a WPF that creates buttons dynamically when the form is loaded and
I have a wpf datagrid that has it's columns generated dynamically in code and
The following scenario bothers me: I have a simple WPF Window that has a
I have a WPF application that encapsulates the editing of a dozen or so
I have a pretty simple WPF application that is used to format inputs into
I have a little WPF app, that has a TreeView to display hierarchical data.
I have a treeview in wpf that is built using the xaml below. It
I have a large WPF application where I have a datagrid within a user
I have a WPF ListView inside StackPanel, with Height=Auto. It's great that it does
I have a WPF ListView inside StackPanel, with Height=Auto. It's great that it does

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.