Wednesday, December 2, 2009

testing

  • Check out WorkBenchView.xaml in the SoapBox.Core.Workbench project to see how to implement a WPF menu with the MVVM pattern, including menu separators.
  • SoapBox.Core.Contracts has a helper static class called NotifyPropertyChangedHelper that lets you implement INotifyPropertyChanged without using hard coded strings for property names.
  • Everything that implements SoapBox.Core.IControl (which is pretty much every menu item, status bar item, and tool bar item) has a VisibleCondition property. This can be set to anything that implements SoapBox.Core.ICondition, but I recommend using SoapBox.Core.ConcreteCondition for this. A "condition" is just an abstraction of a boolean condition that one part can export and other parts can import.
  • Anything that inherits from AbstractCommandControl (buttons, usually) has an EnableCondition property that controls if the button is enabled. If it's not enabled, it automatically changes the icon to gray scale.
  • Take a look at PinBallOptionsItem and PinBallOptionsPad to see how to extend the Options dialog and store your editable options in the user settings.

 



This mail was sent via Mail-SeCure System.

No comments: