public void Direction__Down(DropShadow control) { control.ViewModel.Direction = Direction.Down; control.SetSize(300, 15); // control.Width = 100; }
public void Toggle_Opacity(DropShadow control) { control.ViewModel.Opacity = control.ViewModel.Opacity == 0 ? 0.3 : 0; }
public void Toggle_Color(DropShadow control) { control.ViewModel.Color = control.ViewModel.Color == Colors.Black ? Colors.Orange : Colors.Black; }
public void Direction__Right(DropShadow control) { control.ViewModel.Direction = Direction.Right; control.SetSize(15, 300); }
public void Direction__Up(DropShadow control) { control.ViewModel.Direction = Direction.Up; control.SetSize(300, 15); }
public void Initialize(DropShadow control) { control.ViewModel = new DropShadowViewModel(); Direction__Down(control); }
public void ControlShouldAutoCreateModel() { var control = new DropShadow(); control.ViewModel.ShouldBeInstanceOfType<DropShadowViewModel>(); control.DataContext.ShouldBe(control.ViewModel); }