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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T17:38:30+00:00 2026-05-13T17:38:30+00:00

I was working on my button template with this example: http://msdn.microsoft.com/en-us/library/ms753328.aspx I found the

  • 0

I was working on my button template with this example: http://msdn.microsoft.com/en-us/library/ms753328.aspx

I found the “IsDefaulted” property quite useful, but can’t use it.
I have the following trigger setup:

<ControlTemplate.Triggers>                      
    <Trigger Property="IsMouseOver" Value="true">
        <Setter TargetName="Presenter" Property="BitmapEffect">
            <Setter.Value>
                <OuterGlowBitmapEffect GlowColor="White" Opacity="0.2" />
            </Setter.Value>
        </Setter>
    </Trigger>

    <Trigger Property="IsDefaulted" Value="true">
        <Setter TargetName="Canvas" Property="Height" Value="40" />
        <Setter Property="FontSize" Value="18" />
    </Trigger>
</ControlTemplate.Triggers>

However, on build, I get:

Cannot find the Template Property ‘IsDefaulted’ on the type ‘System.Windows.Controls.Control’.

Which is strange, because Google doesn’t tell me anything about this, nor does MSDN or anything else.
After some testing, I figured that:

-IsMouseOver: Works

-IsPressed: Doesn’t work

-IsDefaulted: Doesn’t work

-IsKeyboardFocused: Works

-IsEnabled: Works

Bug? Something I’m doing wrong?

  • 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-13T17:38:31+00:00Added an answer on May 13, 2026 at 5:38 pm

    Got it fixed:

    <ControlTemplate TargetType="Button">
    

    As simple as that 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on a template for a new website. I am having some
I am making a template control so that I can have a button with
I'm working on a custom navigation menu, I've added the following property within my
Hi I am new to Django and working on Pootle project. I would like
I'm working on a small project, it is a web harvester created in python
I'm working on a custom ServerControl, I've created it like below : [ParseChildren(true), PersistChildren(true)]
Could you please help me with authentication in Silverlight Business Application. I opened Silverlight
I wanted to try out jQuery Templates after being inspired by these 2 blog
I'm using django-socialregistration to manage my site's connection with Facebook. When a user clicks
After much googling, stackoverflowing (?) and blog-reading I still cant completely solve the issue.

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.