Show / Hide Table of Contents

Enum WBAdd

Flags for wpfBuilder.Add.

[Flags]
public enum WBAdd

Namespace: Au.Types
Assembly: Au.dll

Fields

Name Description
ChildOfLast

Add as child of wpfBuilder.Last, which can be of type (or base type):

  • System.Windows.Controls.ContentControl. Adds as its System.Windows.Controls.ContentControl.Content property. For example you can add a CheckBox in a Button.
  • System.Windows.Controls.Decorator, for example System.Windows.Controls.Border. Adds as its System.Windows.Controls.Decorator.Child property.
DontSetProperties

Don't adjust some properties (padding, aligning, specified in wpfBuilder.Options, etc) of some control types. Just set default margin, except if ChildOfLast.

Extension Methods

ExtMisc.HasAny<WBAdd>(WBAdd, WBAdd)
ExtMisc.Has<WBAdd>(WBAdd, WBAdd)
ExtMisc.SetFlag<WBAdd>(ref WBAdd, WBAdd, bool)