Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 7
    +1 Wonderful, i would switch CustomControl and UserControl, but otherwise thats exactly how you should consider how to implement your custom ui logic. In fact i always see a CustomControl as the last possible option, and love doing tasks using Attached Behaviors. Commented Jun 28, 2012 at 15:57
  • lookless behavior is what keeps me away from user control. Commented Jun 28, 2012 at 16:18
  • i too love Attached behaviors. They makes the code cleaner, but at the same time, i dont like to overuse, where attached properties are sufficient, and donot require much plumbing Commented Jun 28, 2012 at 16:22
  • Also note that if want to later use your element as a container, you should avoid using UserControl, because you wouldn't be able to assign x:Names to its child elements. More info Commented Jan 24, 2019 at 8:43