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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T06:53:23+00:00 2026-05-23T06:53:23+00:00

On my application i have 3 stackpanels that their visibility is binding to 3

  • 0

On my application i have 3 stackpanels that their visibility is binding to 3 radio button – in case radio button A is checked => stackpanel A1 is visible …

I want to define some variable that will be call CurrentStackPanelInFocus that will be bind to the stackpanel that is visible.

I dont know how to do it.
I know how to write the convert – but i dont know how to do the binding.

Thanks for any help.

( the code is silverlight )

  • 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-23T06:53:24+00:00Added an answer on May 23, 2026 at 6:53 am

    If I am reading your question correctly… Create a visibility converter, based on the standard one you see hundreds of times, then make the following changes:

    • Use an enum for 3 state value (e.g. enum StackPanelType{ Panel1, Panel2, Panel3})
    • Bind each panel to that same variable (e.g. {Binding Path=CurrentStackPanelInFocus...})
    • In each binding specify a converter parameter, named after the enum value you want to match
      e.g {Binding Path=CurrentStackPanelInFocus, Convertor="{StaticResource PanelConverter}" ConverterParameter="Panel1"}
    • In the converter check that the value object passed is of the type of your enum
    • Convert the value to an enum and then check the string version matches the parameter
    • Return Visible if the param matches the enum, else return Collapsed
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a WPF windows application that contains a stackpanel control, that I want
I have an game application I have written for Windows Mobile and I want
We have a Hibernate/Spring application that have the following Spring beans: <bean id=transactionManager class=org.springframework.orm.hibernate3.HibernateTransactionManager
In my application I have a DataGridView control that displays data for the selected
In my current application I have a form that requires the user to enter
I have an application that has a top level navigation menu which consists of
In my WPF Application I have an GridViewColumn that looks like this: <GridViewColumn Width=170>
In my WPF application I have this: <StackPanel> <TextBlock> <Hyperlink> <TextBlock TextWrapping=Wrap Name=HyperlinkText />
I a WPF application I have the following event-handler of a button-click in a
I'm creating a Silverlight 4 application and I want to have an image and

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.