Behaviors vs Subclassing in Silverlight

Posted by: Bryant Likess Blog, on 30 Sep 2009 | View original | Bookmarked: 1 time(s)

As a Silverlight developer, when you want to add functionality to an existing control, you have two main options as I see it (if you want to get reuse from your code). You can either subclass the control or, as of Silverlight 3,  you can write a behavior for it. For example, one of the requests for the current Silverlight application that Ive been working on was to have the TextBox select all the text when you tabbed to it or clicked in it. We can easily add this functionality using both of...

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: Silverlight | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 783 | Hits: 30

Similar Posts

  • My History of Visual Studio (Part 10, final) more
  • My History of Visual Studio (Part 9) more
  • Silverlight MVP more
  • Mixing Silverlight and MS ASP.NET AJAX 3.5 in the same web application. more
  • Visual Studio Add-In vs. Integration Package Part 1 more
  • Building Silverlight 2 and 3 applications with Visual Studio 2008 more
  • Why Embedded Silverlight Makes Sense more
  • VS2010 Beta 1 - It's Better on Metal more
  • Clearing some air in Silverlight, Blend and Visual Studio Beta land more
  • Silverlight.FX and Silverlight Store Sample App more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD