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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T16:42:42+00:00 2026-05-15T16:42:42+00:00

I have two controls in a grid, an Ellipse and a Popup. The idea

  • 0

I have two controls in a grid, an Ellipse and a Popup. The idea is that both of the controls are only displayed if the IsDirty property in a view model is true; if so, the Ellipse is green if the same view model IsValid and red if not, while the Popup displays messages if the user has the mouse over the popup.

The content and bindings for the Popup are correct, so I am wondering if I should be able to control whether it IsOpen or not by using a trigger in it’s own style as in the code below.

Cheers,
Berryl

<Popup x:Name="dirtyPopup" AllowsTransparency="True" >
    <Popup.Style>
        <Style TargetType="Popup">
            <Style.Triggers>
                <Trigger Property="IsMouseOver" Value="True">
                    <Setter Property="IsOpen" Value="{Binding IsDirty}"/>
                </Trigger>
            </Style.Triggers>
        </Style>
    </Popup.Style>
    <Grid content goes here />
</Popup>
  • 1 1 Answer
  • 1 View
  • 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-15T16:42:43+00:00Added an answer on May 15, 2026 at 4:42 pm

    I don’t think you want to bind to IsMouseOver on the Popup. That will only be true if the mouse is over the Popup window itself, which can only happen if the Popup is already open, so you’ll never be able to open it in the first place.

    You probably want the Popup to be open if the mouse is over some other control, such as the Ellipse. The easiest way to do that is a ToolTip. If you set the ToolTip property on your Ellipse, then when the mouse is over the Ellipse a ToolTip popup window will be displayed. Something like this:

    <Ellipse>
        <Ellipse.ToolTip>
            <Grid content goes here />
        </Ellipse.ToolTip>
    </Ellipse>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a property grid that helps me manage all of the controls on
I have a C#/ASP.NET .aspx page that declares two controls that each represents the
I have two canvas's in a Grid, full scene images that I want to
I have two Grid View gridview1 and gridview2 inside an asp.net page. In order
I have two HeaderedContentControl s like those below that each have their content property
I have two different grid controls on the same form. They share the same
I have a data class that implements INotifyPropertyChanged and two WPF controls that DataBind
I have a window that contains a grid with two columns. the first column
I have pane with two grid and there is a listbox in both grid.
I have two controls in a Grid ,and need to make one to fill

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.