![]() ![]() Gets or sets the suggested height of the element. Gets a value that indicates whether the UIElement has focus. Gets a value indicating whether this element has any animated properties. Gets the Transform that is applied to this Rectangle. Gets or sets a value that indicates whether this FrameworkElement should force the user interface (UI) to render the cursor as declared by the Cursor property. Gets or sets a property that enables customization of appearance, effects, or other style characteristics that will apply to this element when it captures keyboard focus. Gets or sets a value that indicates whether the element can receive focus. Gets or sets the direction that text and other user interface (UI) elements flow within any parent element that controls their layout. Gets or sets the Brush that specifies how the shape's interior is painted. Gets or sets the bitmap effect to apply to the UIElement. Gets the Dispatcher this DispatcherObject is associated with. Gets the size that this element computed during the measure pass of the layout process. Gets the DependencyObjectType that wraps the CLR type of this instance. Gets a value that represents the Geometry of the Shape. Gets or sets the key to use to reference the style for this control, when theme styles are used or defined. Gets or sets the data context for an element when it participates in data binding. Gets or sets the cursor that displays when the mouse pointer is over this element. Gets or sets the context menu element that should appear whenever the context menu is requested through user interface (UI) from within this element. ![]() A CommandBinding enables command handling for this element, and declares the linkage between a command, its events, and the handlers attached by this element. Gets a collection of CommandBinding objects associated with this element. Gets or sets a value indicating whether to clip the content of this element (or content coming from the child elements of this element) to fit into the size of the containing element. Gets or sets the geometry used to define the outline of the contents of an element. Gets or sets a cached representation of the UIElement. Gets or sets an input source for the bitmap effect that applies directly to the rendered content for this element. Gets or sets the BindingGroup that is used for the element. Gets a value that indicates whether at least one touch is pressed over this element or any child elements in its visual tree. Gets a value that indicates whether at least one touch is pressed over this element. Gets a value that indicates whether at least one touch is captured to this element or to any child elements in its visual tree. Gets a value that indicates whether at least one touch is captured to this element. Gets or sets a value indicating whether this element can be used as the target of a drag-and-drop operation. Gets the rendered height of this element. ![]() Identifies the RadiusY dependency property. Identifies the RadiusX dependency property. Initializes a new instance of the Rectangle class. MyRect.VerticalAlignment = VerticalAlignment.Center MyRect.HorizontalAlignment = HorizontalAlignment.Left MyRect->VerticalAlignment = VerticalAlignment::Center MyRect->HorizontalAlignment = HorizontalAlignment::Left The following example shows how to create a Rectangle element and set its properties by using code. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |