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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T23:06:44+00:00 2026-06-05T23:06:44+00:00

Here is what I am trying to do. Toggle button 1 (editNameOpen) When checked,

  • 0

Here is what I am trying to do.

Toggle button 1 (editNameOpen)

  • When checked, show the popup content
  • The only way to close it is from another toggle button inside of the popup (editNameClose)

Toggle button 2 (editNameClose)

  • this inside of the popup
  • when IsChecked, close the popup AND make editNameOpen closed

Here is some xaml I’m using to try and work out the kinks. Problems / questions so far:

  1. My MultiBinding is wrong and throws a runtime error “Cannot set MultiBinding because MultiValueConverter must be specified.” What would the MultiValueConverter be converting in this case?
  2. How would I close the 1st toggle button when the 2nd is checked?

Cheers,
Berryl

<ToggleButton x:Name="editNameOpen" Style="{StaticResource EditToggleButtonStyle}" Grid.Column="1" Grid.Row="0"/>

<Popup x:Name="popupNameEditingControl"
       PlacementTarget="{Binding ElementName=editeditNameOpenName}"
       PopupAnimation="Slide"
       StaysOpen="False"    ** shoulf this be true?
       MinWidth="50">

    ** open and stay open while until editNameClose is checked
    <Popup.IsOpen>
        <MultiBinding >
            <Binding Mode="OneWay" ElementName="editNameOpen" Path="IsChecked"/>
            <Binding Mode="OneWay" ElementName="editNameClose" Path="IsChecked" Converter="{StaticResource invertBoolConv}"/>
        </MultiBinding>
    </Popup.IsOpen>

    ** how do we reset editNameOpen to be NOT IsChecked when editNameClose is checked?
    ** how do we reset editNameClose to be NOT IsChecked and then reset editNameClose to also be not checked when this opens again?
    <StackPanel Orientation="Horizontal" Background="{DynamicResource {x:Static SystemColors.ControlBrushKey}}">
        <Label Content="Hello Wolrd!"/>
        <ToggleButton x:Name="editNameClose" Content="X"/>
    </StackPanel>
</Popup>
  • 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-05T23:06:45+00:00Added an answer on June 5, 2026 at 11:06 pm

    Personally I would bind Popup.IsOpen and both ToggleButtons to a single boolean property in the DataContext

    So when the first ToggleButton gets checked, it sets the boolean value to true, which makes Popup.IsOpen evaluate as true and open the Popup

    The second ToggleButton will probably need to use a Converter to reverse the boolean property, so it shows as unchecked when IsOpen = true, and checking it will make IsOpen = false, which will automatically close the Popup and uncheck the first ToggleButton

    As for the error you’re getting, a MultiBinding expects a Converter of type IMultiValueConverter because you cannot bind one property to two separate values. You need a converter to convert those values into a single value you can use.

    If you really want to do it this way instead of using a property in the DataContext, try binding the IsOpen property of the Popup and the IsChecked properties of your ToggleButtons all together.

    <Popup x:Name="popupNameEditingControl"
           IsOpen="{Binding IsChecked, ElementName=editNameOpen, Mode=TwoWay}"
           ... >
        ...
        <ToggleButton x:Name="editNameClose" Content="X"
                      IsChecked="{Binding IsChecked, ElementName=editNameOpen, 
                          Converter={StaticResource ReverseBooleanConverter}, Mode=TwoWay}" />
        ...
    </Popup>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to make a toggle button that hides/shows the right window/pane. Here is a
I've been trying to make a button toggle a class, as well as show
I am trying to toggle the parent <li> and <button> styles. Here my code
I'm trying to toggle (hide/show) a table when clicking a button which is located
I'm trying to make a toggle button (F) to hide or show my chat
I'm trying to create a button to show / hide a div below it,
I'm trying to make a regular button that functions like a toggle button, but
Edit: Looking for a way to close the dropdown when anything but the button
I'm trying to animate in a piece of content (a list of items) from
I am trying to toggle from a Tab Container view to Title Pane view.

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.