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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T09:17:47+00:00 2026-06-05T09:17:47+00:00

I am looking at a source code presented on Microsoft website where a class

  • 0

I am looking at a source code presented on Microsoft website where a class is derived from the Adorner class and using override a new style been added to a TextBox in XAML. The code is not complete so I’m having problem on how to assign this code to the control (TextBox) on XAML.

Can an expert give me some ideas how to associated the TextBox with the inherited class?

http://msdn.microsoft.com/en-us/library/ms743737.aspx#Y1457

Regards,
Amit

  • 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-05T09:17:48+00:00Added an answer on June 5, 2026 at 9:17 am

    I would claim that MSDN is clear enough:

    To bind an adorner to a particular UIElement, follow these steps:

    1. Call the static method GetAdornerLayer to get an AdornerLayer object for the UIElement to be adorned. GetAdornerLayer walks up the visual tree, starting at the specified UIElement, and returns the first adorner layer it finds. (If no adorner layers are found, the method returns null.)

    2. Call the Add method to bind the adorner to the target UIElement.

    You may not be able to do this in XAML unless you can get the methods invoked by the parser, e.g. via the IList interface. Of course you can expand XAML almost arbitrarily with markup extensions that do the necessary imperative steps for you.

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

Sidebar

Related Questions

I am looking though some source code from a third party and am repeatedly
I have been looking at the source code of the IronPython project and the
I have been looking at the source code of raphael.js and I see a
I am looking at source code for the PackageManager class and it is abstract
Looking at some source code, I found this operator () => { } From
I'm looking at source code from Funambol, but the dependencies are so huge, I'm
Looking at SharpDevelop source code I found this button declaration: <Button Style={x:Static core:GlobalStyles.ButtonStyle} Content={core:Localize
I'm looking for source code for a web based study group. I'd prefer something
I was looking a source code of a particular page of my project and
I'm looking for the source code of Sun's standard java compiler, javac . jdk1.6.0_07

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.