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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T06:24:37+00:00 2026-06-14T06:24:37+00:00

Please forgive the obtuse title, not sure how best to phrase my problem… I

  • 0

Please forgive the obtuse title, not sure how best to phrase my problem…

I have written a custom control "CustomControl" in project Foo. It has a dependency property "Title" which is a string:

public static readonly DependencyProperty TitleProperty =
    DependencyProperty.Register(
        "Title",
         typeof(string),
         typeof(CustomControl),
         PropertyMetadata.Create("Default Title")
    );
public string Title
{
    get { return (string)GetValue(TitleProperty); }
    set { SetValue(TitleProperty, value); }
}

In my Generic.xaml file, I am trying to set the value of "Title" with a Setter node:

<Style TargetType="local:CustomControl">

    <!-- Setter for Template property -->

    <Setter Property="Title" Value="Any String" />
</Style>

The app chokes as soon as it tries to render the control, saying it cannot find the "Title" property in my control:

An exception of type ‘Windows.UI.Xaml.Markup.XamlParseException’ occurred in Foo.exe but was not handled in user code

WinRT information: The property ‘Title’ was not found in type ‘Foo.Controls.CustomControl’. [Line: X Position: Y]

Additional information: Unspecified error

Am I doing something wrong here? Is this not allowed?
When I break in the debugger I can see the Title property on the object, so I’m pretty perplexed.

  • 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-14T06:24:39+00:00Added an answer on June 14, 2026 at 6:24 am

    I feel silly and it may be best that this question just be deleted, because after hours of hair pulling I solved it 10 seconds after posting the question.

    The problem was in my DependencyProperty.Register call. I had the owner type (third argument) referencing a class with a very similar name, and not actually the owning class. Oops. 🙁

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

Sidebar

Related Questions

Please forgive this simplistic iphone development question. I have written a web application in
Please forgive my poor English, My Problem is that i have a article.php?id=xxx ,
Please forgive me if this is a silly question. We're running into a problem
Please forgive me if this is an obvious one. I have an unknown amount
If this has been asked before please forgive me, I could not find it.
Please forgive my gherkin Given I have a module called Hello And it has
I am new in ruby so please forgive the noobishness. I have a CSV
Please forgive my idiocy...I'm a PHP guy tasked with a C++ problem. Our C++
Please forgive the awkwardness of this question, I honestly don't know how to phrase
Please forgive me as I am just learning MVC3. I have 2 db tables

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.