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

  • Home
  • SEARCH
  • 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 8545911
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T12:53:57+00:00 2026-06-11T12:53:57+00:00

I have a ToggleButton which when clicked, sets the IsActionMenuOpen to true so that

  • 0

I have a ToggleButton which when clicked, sets the IsActionMenuOpen to true so that the popup can be displayed. What my desired outcome would be that the placement for the popup would be to the bottom right like here. Any ideas on how to do this? Also, if the window is being resized, can a solution be found so that the popup will move as well?

<ToggleButton x:Name="PART_TGAction">
                        <ToggleButton.Template>
                            <ControlTemplate>
                                <TextBlock x:Name="PART_SubjectActions"  
                                        Text="Actions" 
                                        Margin="4,0,0,0" 
                                              PreviewMouseLeftButtonDown="PART_SubjectActions_PreviewMouseLeftButtonDown"
                                        />
                            </ControlTemplate>
                        </ToggleButton.Template>
                    </ToggleButton>
                    <Popup IsOpen="{Binding IsActionMenuOpen, Mode=OneWay}" 
                             x:Name="PART_Popup">
                        <Border Background="White">
                            ......
                        </Border>
                    </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-11T12:53:58+00:00Added an answer on June 11, 2026 at 12:53 pm

    I was able to get this to work by placing it in the Loaded event of the UserControl:

    PART_Popup.CustomPopupPlacementCallback += (Size popupSize, Size targetSize, Point offset) => new[] { new CustomPopupPlacement() { Point = new Point(targetSize.Width - popupSize.Width, targetSize.Height) } };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to have a command handler for a ToggleButton that can take multiple
I want my WPF application to have a ToggleButton that contains an image of
I have a togglebutton which is not responding to my setChecked(...) method. Here is
I have a datagrid and in DataGridTemplateColumn, I have a togglebutton which when checked,
I have a ToggleButton to which I'm applying the following style <Style x:Key=ToggleButtonStyle TargetType=ToggleButton>
So, I have this nice little view that I've made, which basically shows two
I have a GWT 2.0 ToggleButton that I have styled from a ResourceBundle: ToggleButton
Hi I have a page that contains several different forms all of which are
Here's my situation: I have a Data Template set up which contains a ToggleButton
I have built a fairly complex form which includes a hidden section that the

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.