mirror of https://github.com/AMT-Cheif/Stylet.git
37 lines
954 B
C#
37 lines
954 B
C#
using System;
|
|
|
|
namespace Stylet.Samples.DesignMode
|
|
{
|
|
public class SelfSetupWithActionTargetViewModel : Screen
|
|
{
|
|
private readonly IEventAggregator eventAggregator;
|
|
|
|
public string TextBoxText { get; set; }
|
|
|
|
/// <summary>
|
|
/// This constructor is called by the designer. Use it to set up dummy values
|
|
/// </summary>
|
|
public SelfSetupWithActionTargetViewModel()
|
|
{
|
|
this.TextBoxText = "This is some dummy text.";
|
|
}
|
|
|
|
/// <summary>
|
|
/// This constructor is *not* called by the designer, but will be chosen at runtime by StyletIoC
|
|
/// </summary>
|
|
public SelfSetupWithActionTargetViewModel(IEventAggregator eventAggregator)
|
|
{
|
|
this.eventAggregator = eventAggregator;
|
|
}
|
|
|
|
public bool CanDoSomething
|
|
{
|
|
get { return false; }
|
|
}
|
|
|
|
public void DoSomething()
|
|
{
|
|
}
|
|
}
|
|
}
|