Skip to content

FrameworkElementMarkupExtensions class

Generated fluent setters and event subscriptions for FrameworkElement.

Guide: C# Markup guide

public static class FrameworkElementMarkupExtensions
name description
static ContextMenu<T>(…) Sets the menu shown when the pointer is right-pressed over this element.
static Height<T>(…) Sets the explicit height; NaN means automatic sizing.
static HorizontalAlignment<T>(…) Sets the horizontal alignment within the parent.
static Margin<T>(…) Sets the outer margin.
static MaxHeight<T>(…) Sets the maximum height in DIPs; the default is no bound.
static MaxWidth<T>(…) Sets the maximum width in DIPs; the default is no bound.
static MinHeight<T>(…) Sets the minimum height in DIPs.
static MinWidth<T>(…) Sets the minimum width in DIPs.
static StyleSheet<T>(…) Sets a StyleSheet that provides named styles and type-based style rules for descendant controls.
static Tag<T>(…) Sets an arbitrary object value for custom use.
static ToolTip<T>(…) Sets what to show when the pointer rests on this element.
static VerticalAlignment<T>(…) Sets the vertical alignment within the parent.
static Width<T>(…) Sets the explicit width; NaN means automatic sizing.