public void TestBehaviorNotAllowAttachInDesignMode_AttachInRunTime_InteractionHelperOnAssociatedObject() { Grid element = new Grid(); InteractionHelper.SetBehaviorInDesignMode(element, InteractionBehaviorInDesignMode.AsWellAsNotInDesignMode); CheckAttach(new TestBehaviorNotAllowAttachInDesignMode(), element); }
public void TestBehaviorNotAllowAttachInDesignMode_AttachInRunTime_InteractionHelperOnBehavior() { var b = new TestBehaviorNotAllowAttachInDesignMode(); InteractionHelper.SetBehaviorInDesignMode(b, InteractionBehaviorInDesignMode.AsWellAsNotInDesignMode); CheckAttach(b); }
public void TestBehaviorAllowAttachInDesignMode_AttachInDesignTime_InteractionHelperOnAssociatedObject() { ViewModelDesignHelper.IsInDesignModeOverride = true; Grid element = new Grid(); InteractionHelper.SetBehaviorInDesignMode(element, InteractionBehaviorInDesignMode.AsWellAsNotInDesignMode); CheckAttach(new TestBehaviorAllowAttachInDesignMode(), element); }
public void TestBehaviorNotAllowAttachInDesignMode_AttachInDesignTime_InteractionHelperOnBehavior() { ViewModelDesignHelper.IsInDesignModeOverride = true; var b = new TestBehaviorNotAllowAttachInDesignMode(); InteractionHelper.SetBehaviorInDesignMode(b, InteractionBehaviorInDesignMode.AsWellAsNotInDesignMode); CheckNotAttach(b); }
public EnumItemsSourceBehavior() { InteractionHelper.SetBehaviorInDesignMode(this, InteractionBehaviorInDesignMode.AsWellAsNotInDesignMode); GetDefaultDataTemplate(); }