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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:38:50+00:00 2026-05-25T00:38:50+00:00

I have a project in which i would like to be able to have

  • 0

I have a project in which i would like to be able to have a tooltip on some control that would incoporate some controls like textbox and datepicker. The idea would be to have some sort of a popup window with limited graphic but some control wo interact.

I know how to add a ‘normal’ tooltip to a control, but when you move, the tooltip disapear so I can’t interact with it.

is this possible? If so how and if not, is there any alternative to this ?

Thanks

  • 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-25T00:38:51+00:00Added an answer on May 25, 2026 at 12:38 am

    You should use a Popup instead of a ToolTip

    Example. A Popup is opened when the mouse moves over the TextBox and stays open as long as the mouse is over the TextBox or the Popup

    <TextBox Name="textBox"
             Text="Popup On Mouse Over"
             HorizontalAlignment="Left"/>
    <Popup PlacementTarget="{Binding ElementName=textBox}"
           Placement="Bottom">
        <Popup.IsOpen>
            <MultiBinding Mode="OneWay" Converter="{StaticResource BooleanOrConverter}">
                <Binding Mode="OneWay" ElementName="textBox" Path="IsMouseOver"/>
                <Binding RelativeSource="{RelativeSource Self}" Path="IsMouseOver" />
            </MultiBinding>
        </Popup.IsOpen>
        <StackPanel>
            <TextBox Text="Some Text.."/>
            <DatePicker/>
        </StackPanel>
    </Popup>
    

    Is uses a BooleanOrConverter

    public class BooleanOrConverter : IMultiValueConverter
    {
        public object Convert(object[] values, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            foreach (object booleanValue in values)
            {
                if (booleanValue is bool == false)
                {
                    throw new ApplicationException("BooleanOrConverter only accepts boolean as datatype");
                }
                if ((bool)booleanValue == true)
                {
                    return true;
                }
            }
            return false;
        }
        public object[] ConvertBack(object value, Type[] targetTypes, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotSupportedException();
        }
    }
    

    Update
    To do this for a cell in DataGrid you have a few options. Two of them are to add a Popup inside the DataTemplates for DataGridTemplateColumn, or you can add it to the DataGridCell Template. Here is an example of the later. It will require you to set SelectionMode=”Single” and SelectionUnit=”Cell” on the DataGrid

    <DataGrid SelectionMode="Single"
              SelectionUnit="Cell"
              ...>
        <DataGrid.CellStyle>
            <Style TargetType="DataGridCell">
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="{x:Type DataGridCell}">
                            <Grid>
                                <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" SnapsToDevicePixels="True">
                                    <ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
                                </Border>
                                <Popup PlacementTarget="{Binding RelativeSource={RelativeSource TemplatedParent}}"
                                       Placement="Right"
                                       IsOpen="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=IsSelected}">
                                    <StackPanel>
                                        <TextBox Text="Some Text.."/>
                                        <DatePicker/>
                                    </StackPanel>
                                </Popup>
                            </Grid>                                
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>    
        </DataGrid.CellStyle>
        <!--...-->
    </DataGrid>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have one file in my project, (the readme file,) which I would like
I would like to deplay a django application/project, which i have created within Aptana.
I have a C project that produces ten executables, all of which I would
I have a project which would like to utilize the Google Guava libraries (on
I have a project in which I would like to programatically create and render
I have a sticky side menu that I would like to have be able
I have a project which I would like to make more use of smart
I have an Xcode (4.3.2) project with the latest SDK which I would like
I have a project in which I would need to copy files found within
I have an array of DataRow objects in my C# project which I would

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.