In This Article

ToolWindowContainer.ToolWindowContainerTemplateSettings Class

Provides calculated values for use with the ToolWindowContainer's control theme or template.

public class ToolWindowContainer.ToolWindowContainerTemplateSettings : AvaloniaObject
Inheritance:
object AvaloniaObject object

Remarks

This class is NOT intended for general use outside of control templates.

Constructors

ToolWindowContainerTemplateSettings(ToolWindowContainer)

Provides calculated values for use with the ToolWindowContainer's control theme or template.

public ToolWindowContainerTemplateSettings(ToolWindowContainer templatedControl)
Parameter Type Description
templatedControl ToolWindowContainer

The templated control to which these settings are applied.

Remarks

This class is NOT intended for general use outside of control templates.

Properties

UIToolWindowContainerCloseButtonTextWithKeyGesture

The text to be displayed as a tooltip for the close button, which is based on the string resource UIToolWindowContainerCloseButtonText and can optionally include the key gesture for the action associated with the button.

public string? UIToolWindowContainerCloseButtonTextWithKeyGesture { get; }

Property Value

string

Remarks

The text of CloseKeyGesture will be passed as the first argument for string formatting, so {0} in the string resource will be replaced by the key gesture.

UIToolWindowContainerOptionsButtonTextWithKeyGesture

The text to be displayed as a tooltip for the options button, which is based on the string resource UIToolWindowContainerOptionsButtonText and can optionally include the key gesture for the action associated with the button.

public string? UIToolWindowContainerOptionsButtonTextWithKeyGesture { get; }

Property Value

string

Remarks

The text of OpenOptionsMenuKeyGesture will be passed as the first argument for string formatting, so {0} in the string resource will be replaced by the key gesture.

Fields

UIToolWindowContainerCloseButtonTextWithKeyGestureProperty

public static readonly DirectProperty<ToolWindowContainer.ToolWindowContainerTemplateSettings, string?> UIToolWindowContainerCloseButtonTextWithKeyGestureProperty

UIToolWindowContainerOptionsButtonTextWithKeyGestureProperty

public static readonly DirectProperty<ToolWindowContainer.ToolWindowContainerTemplateSettings, string?> UIToolWindowContainerOptionsButtonTextWithKeyGestureProperty

Inherited Members

Extension Methods