|
using Catel.MVVM;
namespace Catel.Templates.WpfApplication.UI.ViewModels
{
/// <summary>
/// MainWindow view model.
/// </summary>
public class MainWindowViewModel : ViewModelBase
{
#region Constructor & destructor
/// <summary>
/// Initializes a new instance of the <see cref="MainWindowViewModel"/> class.
/// </summary>
public MainWindowViewModel()
: base()
{
}
#endregion
#region Properties
/// <summary>
/// Gets the title of the view model.
/// </summary>
/// <value>The title.</value>
public override string Title { get { return "View model title"; } }
#region Models
// TODO: Register models with the vmpropmodel codesnippet
#endregion
#region View model
// TODO: Register view model properties with the vmprop or vmpropviewmodeltomodel codesnippets
#endregion
#endregion
#region Commands
// TODO: Register commands with the vmcommand or vmcommandwithcanexecute codesnippets
#endregion
#region Methods
/// <summary>
/// Initializes the object by setting default values.
/// </summary>
protected override void Initialize()
{
// TODO: Implement logic to initialize the view model
}
/// <summary>
/// Validates the fields.
/// </summary>
protected override void ValidateFields()
{
// TODO: Implement any field validation of this object. Simply set any error by using the SetFieldError method
}
/// <summary>
/// Validates the business rules.
/// </summary>
protected override void ValidateBusinessRules()
{
// TODO: Implement any business rules of this object. Simply set any error by using the SetBusinessRuleError method
}
/// <summary>
/// Saves the data.
/// </summary>
/// <returns>
/// <c>true</c> if successful; otherwise <c>false</c>.
/// </returns>
protected override bool Save()
{
// TODO: Implement logic when the view model is saved
return true;
}
#endregion
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.