Updated: November 2007
Gets or sets the value to be compared with the property value of the element. The comparison is a reference equality check.
Namespace:
System.Windows Assembly:
PresentationFramework (in PresentationFramework.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/xaml/presentation

Syntax
Visual Basic (Declaration) |
<LocalizabilityAttribute(LocalizationCategory.None, Readability := Readability.Unreadable)> _
Public Property Value As Object
|
|
Dim instance As Trigger
Dim value As Object
value = instance.Value
instance.Value = value
|
|
[LocalizabilityAttribute(LocalizationCategory.None, Readability = Readability.Unreadable)]
public Object Value { get; set; }
|
|
[LocalizabilityAttribute(LocalizationCategory::None, Readability = Readability::Unreadable)]
public:
property Object^ Value {
Object^ get ();
void set (Object^ value);
}
|
|
/** @property */
/** @attribute LocalizabilityAttribute(LocalizationCategory.None, Readability = Readability.Unreadable) */
public Object get_Value()
/** @property */
/** @attribute LocalizabilityAttribute(LocalizationCategory.None, Readability = Readability.Unreadable) */
public void set_Value(Object value)
|
|
public function get Value () : Object
public function set Value (value : Object)
|
XAML Property Element Usage |
<object>
<object.Value>
Value
</object.Value>
</object>
|
Property Value
Type:
System..::.Object
The default value is nullNothingnullptra null reference (Nothing in Visual Basic). See also the Exceptions section.

Exceptions

Examples
The following example contains two triggers. The first changes the Background property of a Button when the IsMouseOver property is true. The second changes the Foreground property of a button when the IsPressed property is true.
|
<Style x:Key="Triggers" TargetType="Button">
<Style.Triggers>
<Trigger Property="IsPressed" Value="true">
<Setter Property = "Foreground" Value="Green"/>
</Trigger>
</Style.Triggers>
</Style>
|

Platforms
Windows Vista
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information
.NET Framework
Supported in: 3.5, 3.0

See Also