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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T01:10:35+00:00 2026-06-11T01:10:35+00:00

I got another problem while working with my usercontrol’s xaml file -.-‘ I tried

  • 0

I got another problem while working with my usercontrol’s xaml file -.-‘

I tried to implement an IsChecked property to my custom button in order to set a different background colour if the button is checked.

So I created a DependencyProperty like this:

public static readonly DependencyProperty IsCheckedProperty = DependencyProperty.Register("IsChecked", typeof(bool), typeof(LeftMenuBtn));

public bool IsChecked
{
    get { return (bool)GetValue(IsCheckedProperty); }
    set { SetValue(IsCheckedProperty, value); }
}

Then I setup a new style trigger to handle this property:

<Style x:Key="ButtonEnableStates" TargetType="{x:Type Grid}">
    <Style.Triggers>
        <Trigger Property="IsChecked" Value="True">
            <Setter Property="Background" Value="{DynamicResource CheckedStateGradient}" />
        </Trigger>
    </Style.Triggers>
</Style>

Expression Blend now underlines Property="IsChecked" and says:

The member "IsChecked" is not recognized or is not accessible.

How can I solve this problem?

  • 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-11T01:10:37+00:00Added an answer on June 11, 2026 at 1:10 am

    Well, the Style‘s TargetType is Grid and the property is defined for LeftMenuBtn, not going to work like that.

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

Sidebar

Related Questions

I got another problem while assigning the foreign key constraint to a column across
I got another problem, this time with tables and their borders in HTML (4.01,
I've got another problem in the same code... I'm getting this error: initialization method
I've got another problem (which might not be an issue in terms of coding
I've got a problem when I'm calling a static var from another class. I
I've got 2 webclient methods executing one after another. Problem is, the first one
I'm now facing the most common problem faced my many while working with listboxes.
I've been working in CakePHP and I got the following problem. I have a
I got a concurrentModificatoin Exception while working over a HashSet and hence shiftedover to
I've got kind of strange problem. I was working on a simple program which

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.