Show / Hide Table of Contents

Method wpfBuilder.LabeledBy(+ 1 overload)


Overload

Makes an element behave as a label of the last added element (wpfBuilder.Last).

public wpfBuilder LabeledBy(FrameworkElement label, bool? bindVisibility = null)
Parameters
label  (FrameworkElement)

The label element. Usually Label or TextBlock, but can be any element.

bindVisibility  (bool?)

If true, binds Visibility of label to that of the labeled element. If false, does not bind. If null (default), binds if the bindLabelVisibility option is true (see wpfBuilder.Options). If binds Visibility, also binds IsEnabled if label is Label or TextBlock.

Returns
wpfBuilder

Remarks

Sets label's System.Windows.Controls.Label.Target if it's Label. Calls System.Windows.Automation.AutomationProperties.SetLabeledBy.


Overload(top)

Makes wpfBuilder.Last2 behave as a label of wpfBuilder.Last.

public wpfBuilder LabeledBy(bool? bindVisibility = null)
Parameters
bindVisibility  (bool?)

If true, binds Visibility of label to that of the labeled element. If false, does not bind. If null (default), binds if the bindLabelVisibility option is true (see wpfBuilder.Options). If binds Visibility, also binds IsEnabled if label is Label or TextBlock.

Returns
wpfBuilder

Remarks

Sets label's System.Windows.Controls.Label.Target if it's Label. Calls System.Windows.Automation.AutomationProperties.SetLabeledBy.