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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T03:13:55+00:00 2026-05-17T03:13:55+00:00

How can i block access to all silverlight pages if user is not logged

  • 0

How can i block access to all silverlight pages if user is not logged in, without writing verification code in each page?

  • 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-17T03:13:55+00:00Added an answer on May 17, 2026 at 3:13 am

    All views can have multiple states added (e.g. simple buttons have lots of states).

    Add 2 states to your outer shell view. e.g. A LoggedIn state and a LoggedOut state.

    • The LoggedIn state shows your normal
      content view (as a child control)
    • The LoggedOut state only shows the
      login control.

    Then use the VisualStateManager to switch between states based on the login state changes. An added bonus with this technique is you can author your own transitions from one state to the other (I strongly recommend using Expression Blend for this type of work).

    This way they cannot get at anything and, as a bonus, you can login/logout from anywhere in your app and not lose your place 🙂

    If you are using an MVVM model, you can use an attached property to control the state changes.

    If you need specific help, or example, just ask.

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

Sidebar

Related Questions

In C# you can make a block inside of a method that is not
Simple question: Can a swing frame be completely modal ( block all others windows
Considering this code, can I be absolutely sure that the finally block always executes,
When launching a process from Java, both stderr and stdout can block on output
Can the sourcecontrol block in CruiseControl.NET target TortoiseSVN?
How can I create an array of email addresses contained within a block of
Certain methods in Java will block until they can do something, like ServerSocket.accept() and
Or, to be more clear, how can I format a block of text (in
I have a custom XML file format which can contain blocks of code within
How can I remove the black background color in the corners of the ellipse?

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.