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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T14:59:08+00:00 2026-05-13T14:59:08+00:00

Here is my XAML: <Style x:Key=ExpanderStyle TargetType={x:Type ToggleButton}> <Setter Property=IsEnabled Value=True /> <Setter Property=Template>

  • 0

Here is my XAML:

<Style x:Key="ExpanderStyle" TargetType="{x:Type ToggleButton}">
    <Setter Property="IsEnabled" Value="True" />
    <Setter Property="Template">
        <Setter.Value>
            <ControlTemplate>
                <Image Source="/Images/SHCalendarLeftArrow.tiff" />
            </ControlTemplate>
        </Setter.Value>
    </Setter>
</Style>

So how can I add a Trigger to that OnMouseOver the image in the ControlTemplate changes to a different image.

  • 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-13T14:59:08+00:00Added an answer on May 13, 2026 at 2:59 pm

    Try using a Trigger inside your template:

    <Setter Property="Template"> 
        <Setter.Value> 
            <ControlTemplate> 
                <Image x:Name="PART_img" Source="/Images/SHCalendarLeftArrow.tiff" /> 
    
                <ControlTemplate.Triggers>
                    <Trigger Property="IsMouseOver" Value="True">
                        <Setter TargetName="PART_img"
                                Property="Source"
                                Value="/Images/SomeOtherImage.tiff" />
                    </Trigger>
                </ControlTemplate.Triggers>
            </ControlTemplate> 
        </Setter.Value> 
    </Setter> 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here is my XAML: <Style x:Key=ExpanderStyle TargetType={x:Type ToggleButton}> <Setter Property=IsEnabled Value=True /> <Setter Property=Template>
This is defined in App.xaml inside <Application.Resources> : <Style x:Key=borderStyle TargetType=Border> <Style.Triggers> <Trigger Property=IsMouseOver
Here's my Xaml for a MediaElement: <MediaElement x:Name=mediaElement Width=400 Height=300 Stretch=UniformToFill IsMuted=True> <MediaElement.Triggers> <EventTrigger
Here's my xaml <Button x:Name=btnTest Width=88 Content={Binding Value, ElementName=slSlider} Height={Binding Value, ElementName=slSlider} HorizontalAlignment=Left ></Button>
Having the following very simple xaml: <DocumentViewer Name=dv> <FixedDocument Name=fd Loaded=fd_loaded> <FixedDocument.Resources> <Style x:Key=TestStyle>
A failed XAML attempt here - I'm obviously doing something stupid with the Style
Here's the XAML structure. You'll see below that I'm subscribing to the Loaded event
Here's my XAML code: <Window x:Class=CarFinder.MainWindow xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml Title=Search for cars in TuMomo Height=480
here is the XAML... <Canvas Name=myCanvas> <TextBlock Name=myBlock FontFamily=Arial Black FontSize=100 Foreground=Red Text=R Height=105
So here is the XAML that I have: <ItemsControl ItemsSource={Binding Path=Groups} ItemTemplateSelector={Binding RelativeSource={RelativeSource AncestorType=Window},

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.