using System;
namespace Stylet.Samples.DesignMode
{
public class SelfSetupWithActionTargetViewModel : Screen
{
private readonly IEventAggregator eventAggregator;
public string TextBoxText { get; set; }
///
/// This constructor is called by the designer. Use it to set up dummy values
///
public SelfSetupWithActionTargetViewModel()
{
this.TextBoxText = "This is some dummy text.";
}
///
/// This constructor is *not* called by the designer, but will be chosen at runtime by StyletIoC
///
public SelfSetupWithActionTargetViewModel(IEventAggregator eventAggregator)
{
this.eventAggregator = eventAggregator;
}
public bool CanDoSomething
{
get { return false; }
}
public void DoSomething()
{
}
}
}