ImageButton Class
Namespace: Stride.UI.ControlsAssembly: Stride.UI.dll
A Button whose Content are the PressedImage and NotPressedImage.
Derived from ImageButton:
[DataContractMetadataType(typeof(ImageButton.ImageButtonMetadata))]
[Obsolete("Use Button with SizeToContent set to false.")]
public class ImageButton : Button, IUIElementUpdate, IUIElementChildren, IIdentifiable
Name | Description | |
---|---|---|
Constructors | ||
ImageButton() | ||
Properties | ||
Content | The current content of the ImageButton, that is the current image used. |
|
IsPressed | ||
Methods | ||
OnAspectImageInvalidated() |
Constructors
ImageButton()
public ImageButton()
Properties
Content
The current content of the ImageButton, that is the current image used.
public override UIElement Content { set; }
Property Value
Type | Description |
---|---|
UIElement |
Overrides
Remarks
The Content of a ImageButton is determined by its state (pressed/not pressed) and the value of PressedImage and NotPressedImage. The Content cannot be set manually by the user.
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | The user tried to modify the ImageButton content. |
IsPressed
public override bool IsPressed { get; protected set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceMethods
OnAspectImageInvalidated()
protected override void OnAspectImageInvalidated()