This project is read-only.

The elevate privilege button: choose how do you want it...

Jun 25, 2011 at 8:48 PM
Edited Jun 25, 2011 at 9:06 PM

Possible elevated states. It could be possible to show the status of elevated on tooltip (ToolTipService.ShowOnDisabled="True") with enum:

  1. Elevated: The user was elevated.
  2. NotElevated: The user can be elevated.
  3. UacDisabled: The user can be elevated, the operating system support uac, but uac is disabled.
  4. UacNotSupported: The operating system does not support uac.
  5. NotAdministrator: Uac is enabled, but the user is not an administrator (after tests, the user don't have to be administrator to ask elevation, so this one don't exists, I keep it there for trace).

Choose the best method you think:

  1. Method 1:
    • 2: Show active button
    • 1, 3, 4: Show disabled button
  2. Method 2:
    • 2: Show active button
    • 1: Show disabled button
    • 3, 4: Hide button
  3. Method 3:
    • 2: Show active button
    • 1: Show disabled button
    • 3, 4: Show disabled button with an icon that show the user cannot be elevated (with an X on it or other visual)