[]
Control that displays the content of a message box. It's meant to be used inside a C1.Silverlight.C1Window.
[TemplatePart(Name = "Buttons", Type = typeof(Panel))]
[TemplatePart(Name = "Icon", Type = typeof(Image))]
[TemplateVisualState(Name = "Warning", GroupName = "IconStates")]
[TemplateVisualState(Name = "Error", GroupName = "IconStates")]
[TemplateVisualState(Name = "Question", GroupName = "IconStates")]
[TemplateVisualState(Name = "Information", GroupName = "IconStates")]
[TemplateVisualState(Name = "Normal", GroupName = "IconStates")]
[TemplateVisualState(Name = "MouseOver", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Disabled", GroupName = "CommonStates")]
[StyleTypedProperty(Property = "ButtonStyle", StyleTargetType = typeof(Button))]
public class C1MessageBoxContent : Control, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient
| Name | Description |
|---|---|
| C1MessageBoxContent() | Initializes a new instance of a C1MessageBoxContent. |
| Name | Description |
|---|---|
| ButtonProperty | Identifies the Button dependency property. |
| ButtonStyleProperty | Identifies the ButtonStyle dependency property. |
| CancelTextProperty | Identifies the CancelText dependency property. |
| IconProperty | Identifies the Icon dependency property. |
| MessageProperty | Identifies the Message dependency property. |
| NoTextProperty | Identifies the NoText dependency property. |
| OKTextProperty | Identifies the OKText dependency property. |
| YesTextProperty | Identifies the YesText dependency property. |
| Name | Description |
|---|---|
| Button | Gets or sets a C1MessageBoxButton specifying which buttons are displayed in the message box. |
| ButtonStyle | Gets or sets the style applied to the message box's buttons. |
| CancelText | Gets or sets the text displayed in the Cancel button. |
| Icon | Gets or sets a C1MessageBoxIcon specifying which icon is displayed in the message box. |
| Message | Gets or sets the message text displayed in the message box. |
| NoText | Gets or sets the text displayed in the No button. |
| OKText | Gets or sets the text displayed in the OK button. |
| YesText | Gets or sets the text displayed in the Yes button. |
| Name | Description |
|---|---|
| ChangeVisualStateCommon(bool) | Updates the current visual state of the Common visual state group to match the object's properties. |
| ChangeVisualStateIcon(bool) | Updates the current visual state of the Icon visual state group to match the object's properties. |
| OnApplyTemplate() | Builds the visual tree for the C1MessageBoxContent control when a new template is applied. |
| OnPropertyChanged(DependencyPropertyChangedEventArgs) | Invoked whenever the effective value of any dependency property has been updated. |
| Name | Description |
|---|---|
| ButtonClick | Event fired when a button is pressed. |
| IsMouseOverChanged | Event raised when the IsMouseOver property has changed. |