Workarounds for supporting MVVM in the Silverlight ContextMenu service

Posted by: Pablo M. Cibraro (aka Cibrax), on 31 Jan 2011 | View original | Bookmarked: 0 time(s)

As I discussed in my last post, some of the Silverlight controls does not support MVVM quite well out of the box without specific customizations. The Context Menu is another control that requires customizations for enabling data binding on the menu options. There are a few things that you might want to expose as view model for a menu item, such as the Text, the associated icon or the command that needs to be executed. That view model should look like this, public class MenuItemModel ...

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: XAML | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 1121 | Hits: 39

Similar Posts

  • Exporting SWF & FLV format reports in SSRS 2005 and 2008 more
  • Take Two: A jQuery WCF/ASMX ServiceProxy Client more
  • Part 3: Accessing Security and Authentication in Silverlight using .NET RIA Services. more
  • CI and Configurable Service Installers more
  • Do we have an Active SOA Service? more
  • Patterns: What is .net RIA Services? more
  • Custom Basic Authentication for RESTful services more
  • Moonlight 1.0 Released, Silverlight script updated – and a Chrome hack more
  • Aspose.Slides for Reporting Services supports SQL Server 2008 more
  • Aspose.Total for Reporting Services Q4 2008 Released 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