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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T08:25:43+00:00 2026-06-12T08:25:43+00:00

I have a custom button which includes a ticker symbol and an image. Everything

  • 0

I have a custom button which includes a ticker symbol and an image. Everything works exactly as I need except onMouseover when I want to click the button. The entire button (cursor hand) shows if I mouseover any part of the button (including the image) that DOES NOT contain the textbox. Therefore clicking on the stock symbol (crosshair shows not hand cursor) does not execute my command. I am missing something stupid and I just cant put my finger on it. ANY help would be greatly appreciated. This is from my resource dictionary:

<Style x:Key="TickerButtonStyle2" TargetType="{x:Type Controls:DataGridCell}">
        <Setter Property="BorderThickness" Value="0" />
        <Setter Property="BorderBrush" Value="Transparent" />
        <Setter Property="Background"  Value="Transparent" />
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Button>
                        <Button.Resources>
                            <Style TargetType="Button">
                                <Setter Property="Command" Value="{Binding SwitchViewCommand, 
                                        RelativeSource={RelativeSource FindAncestor,      
                                        AncestorType={x:Type local:MainView}}}" />
                                <Setter Property="CommandParameter" Value="{Binding Ticker}"/>
                                <Setter Property="Cursor" Value="Hand"/>
                                <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
                                <Setter Property="VerticalContentAlignment" Value="Stretch"/>
                                <Setter Property="Background"  Value="Transparent" />
                                <Setter Property="Template">
                                    <Setter.Value>
                                        <ControlTemplate TargetType="Button">
                                            <Border Name="bd" BorderBrush="Transparent"
                                                              BorderThickness="0"
                                                              Margin="0"
                                                              Background="Transparent">
                                                <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left" Background="Transparent">
                                                    <TextBox Name="txt" IsReadOnly="True" 
                                                         BorderThickness="0"
                                                         BorderBrush="Transparent"
                                                         Background="Transparent"
                                                         TextAlignment="Left"
                                                         Foreground="White"
                                                         FontFamily="Ariel" 
                                                         FontSize="12"
                                                         Text="{Binding Path=Ticker, Converter={StaticResource tickerSymbolDisplay}}"
                                                         />
                                                    <Image Width="16" Height="11" Stretch="Fill" Source="{Binding Path=Ticker, Converter={StaticResource tickerImageDisplay}}" />
                                                </StackPanel>
                                            </Border>
                                            <ControlTemplate.Triggers>
                                                <Trigger Property="IsMouseOver" Value="true">
                                                    <Setter TargetName="bd" Property="Background" Value="Transparent"/>
                                                    <Setter TargetName="txt" Property="Foreground" Value="#FF7E00"/>
                                                    <Setter Property="ToolTip" Value="View Fundamentals"/>
                                                </Trigger>
                                                <Trigger Property="Button.IsPressed" Value="true">
                                                    <Setter TargetName="bd" Property="Background" Value="Transparent"/>
                                                </Trigger>
                                            </ControlTemplate.Triggers>
                                        </ControlTemplate>
                                    </Setter.Value>
                                </Setter>
                            </Style>
                        </Button.Resources>
                    </Button>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>
  • 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-12T08:25:45+00:00Added an answer on June 12, 2026 at 8:25 am

    Try using a TextBlock instead of a TextBox:

    <TextBlock Name="txt"
    Background="Transparent" 
    TextAlignment="Left"
    Foreground="White"
    FontFamily="Ariel" 
    FontSize="12"
    Text="ticker"
    Text="{Binding Path=Ticker, Converter={StaticResource tickerSymbolDisplay}}"
    />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a custom UITableViewCell which contains several UIButtons. Each button's frame position is
I have a custom button in my application on click of which I present
I have a custom image which I would like to use rather than the
I have a custom button which inherits from UIButton. I'm handling the TouchUpInside event
I have created a custom button in IB which performs a play video function
I have a slideshow that requires custom markup for the pagination, which also includes
I have a custom button which is my own subclass of UIButton . It
I have a custom ListView in which there are 2 buttons and a textview
I have made a custom suface button according this example: <Button> <Button.Template> <ControlTemplate TargetType=Button>
I have custom server control contains templatefield when an out button clicked the field

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.