diff --git a/xml/System.Windows.Controls.Primitives/Selector.xml b/xml/System.Windows.Controls.Primitives/Selector.xml index e195fe7b40b..09502e90bd9 100644 --- a/xml/System.Windows.Controls.Primitives/Selector.xml +++ b/xml/System.Windows.Controls.Primitives/Selector.xml @@ -294,8 +294,24 @@ 4.0.0.0 - To be added. - To be added. + Gets a value that indicates whether the keyboard focus is within the value returned by a . + + +## Dependency Property Information + +||| +|-|-| +|Identifier field|| +|Metadata properties set to `true`|| + + ]]> + diff --git a/xml/System.Windows.Controls.Ribbon/RibbonControlService.xml b/xml/System.Windows.Controls.Ribbon/RibbonControlService.xml index ce92f2c0929..ebaadc1ca6b 100644 --- a/xml/System.Windows.Controls.Ribbon/RibbonControlService.xml +++ b/xml/System.Windows.Controls.Ribbon/RibbonControlService.xml @@ -1198,8 +1198,22 @@ 4.0.0.0 - To be added. - To be added. + Gets a value that indicates whether the control is hosted in a . + + +## Dependency Property Information + +||| +|-|-| +|Identifier field|| +|Metadata properties set to `true`|None| + + ]]> + @@ -1234,8 +1248,22 @@ 4.0.0.0 - To be added. - To be added. + Gets a value that indicates whether the control is hosted in the Quick Access Toolbar. + + +## Dependency Property Information + +||| +|-|-| +|Identifier field|| +|Metadata properties set to `true`|None| + + ]]> + @@ -1700,8 +1728,23 @@ 4.0.0.0 - To be added. - To be added. + Gets a reference to the that this control belongs to. + + control and is inherited by the child controls. It is used to access visual style brushes defined on the class. + + +## Dependency Property Information + +||| +|-|-| +|Identifier field|| +|Metadata properties set to `true`|| + + ]]> + @@ -2357,8 +2400,22 @@ 4.0.0.0 - To be added. - To be added. + Gets a value that indicates whether to show the keyboard focus visual for this control. + + +## Dependency Property Information + +||| +|-|-| +|Identifier field|| +|Metadata properties set to `true`|None| + + ]]> + diff --git a/xml/System.Windows.Controls.Ribbon/RibbonQuickAccessToolBar.xml b/xml/System.Windows.Controls.Ribbon/RibbonQuickAccessToolBar.xml index ce87c058efa..93b199e9896 100644 --- a/xml/System.Windows.Controls.Ribbon/RibbonQuickAccessToolBar.xml +++ b/xml/System.Windows.Controls.Ribbon/RibbonQuickAccessToolBar.xml @@ -380,8 +380,23 @@ 4.0.0.0 - To be added. - To be added. + Gets a value that indicates whether an item in the Quick Access Toolbar is shown in the overflow menu. + + +## Dependency Property Information + +||| +|-|-| +|Identifier field|| +|Metadata properties set to `true`|None| + + ]]> + + diff --git a/xml/System.Windows.Controls/Validation.xml b/xml/System.Windows.Controls/Validation.xml index 3dbe8259037..6326b392acb 100644 --- a/xml/System.Windows.Controls/Validation.xml +++ b/xml/System.Windows.Controls/Validation.xml @@ -169,8 +169,44 @@ 4.0.0.0 - To be added. - To be added. + Gets the collection of all active objects on the bound element. + + with your object. Validation occurs during binding target-to-binding source value transfer before the converter is called. The following describes the validation process: + +1. When a value is being transferred from the target property to the source property, the data binding engine first removes any that may have been added to the attached property of the bound element. It then checks if there are any custom s defined for that , in which case it calls the method on each of the s until one of them runs into an error or until all of them pass. + +2. Once there is a custom rule that does not pass, the binding engine creates a object and adds it to the collection of the bound element. When is not empty, the attached property of the element is set to `true`. Also, if the property of the is set to `true`, then the binding engine raises the attached event on the element. + +3. If all of the rules pass, the binding engine then calls the converter, if one exists. + +4. If the converter passes, the binding engine calls the setter of the source property. + +5. If the binding has an associated with it and an exception is thrown during step 4, the binding engine checks to see if there is a . You have the option to use the callback to provide a custom handler for handling exceptions. If an is not specified on the , the binding engine creates a with the exception and adds it to the collection of the bound element. + + Also note that a valid value transfer in either direction (target-to-source or source-to-target) clears the .attached property. + + For information about the behavior of this property in scenarios, see . + + For more information, see "Data Validation" in [Data Binding Overview](/dotnet/framework/wpf/data/data-binding-overview). + + +## XAML Text Usage + See Remarks. The collection itself is not user settable, but you can use it in a control template definition in XAML. + + +## Dependency Property Information + +||| +|-|-| +|Identifier field|| +|Metadata properties set to `true`|| + + ]]> + @@ -411,8 +447,27 @@ 4.0.0.0 - To be added. - To be added. + Gets a value that indicates whether any binding on the binding target element has a . + + scenarios, see . + + For a detailed discussion of validation, see the Data Validation section of the [Data Binding Overview](/dotnet/framework/wpf/data/data-binding-overview). + + +## Dependency Property Information + +||| +|-|-| +|Identifier field|| +|Metadata properties set to `true`|| + + ]]> + + + diff --git a/xml/System.Windows.Navigation/BaseUriHelper.xml b/xml/System.Windows.Navigation/BaseUriHelper.xml index a787a53b223..15f58961ba0 100644 --- a/xml/System.Windows.Navigation/BaseUriHelper.xml +++ b/xml/System.Windows.Navigation/BaseUriHelper.xml @@ -32,7 +32,7 @@ 4.0.0.0 - To be added. + Gets or sets the base uniform resource identifier (URI). To be added. diff --git a/xml/System.Windows/VisualStateManager.xml b/xml/System.Windows/VisualStateManager.xml index a8ee4062059..10ef0f80ec2 100644 --- a/xml/System.Windows/VisualStateManager.xml +++ b/xml/System.Windows/VisualStateManager.xml @@ -462,8 +462,25 @@ 4.0.0.0 - To be added. - To be added. + Gets or sets a collection of objects. + + contains a collection of objects. A contains a collection of objects that specify how the control's appearance changes when the control is in a certain state. For example, a might have a slightly different appearance when it is pressed than when it is not pressed. Two states that the defines correspond to when it is pressed (`"Pressed"`) and when it is not (`"Normal"`). + + You add to a control by setting the attached property on the control. You put states that are mutually exclusive to each other in the same . For example, the has two objects. One contains the states, `Normal`, `MouseOver`, `Pressed`, and `Disabled`. The other contains the states, `Checked`, `UnChecked`, and `Indeterminate`. The can be in states `MouseOver` and `UnChecked` at the same time, but it cannot be in the `MouseOver` and `Pressed` states at the same time. + + Although you can add objects to any element, they are a particularly useful way to enable others to redefine the visual behavior of a . If you create a custom control that uses a , you can specify which states that control can be in by adding a on its class definition. Then anyone who creates a new for your control can add objects to the template. States with the same belong in the same . + + For more information about how to use objects in a , see [Customizing the Appearance of an Existing Control by Creating a ControlTemplate](/dotnet/framework/wpf/controls/customizing-the-appearance-of-an-existing-control). For more information about how to create controls that use the , see [Creating a Control That Has a Customizable Appearance](/dotnet/framework/wpf/controls/creating-a-control-that-has-a-customizable-appearance). + +## Examples + The following example creates a simple for a that contains one . It also contains a named `CommonStates`, which defines the `MouseOver` and `Normal` states. The also has a that specifies that it takes one half second for the to change from green to red when the user moves the mouse pointer over the . + + [!code-xaml[VSMButtonTemplate#11](~/samples/snippets/csharp/VS_Snippets_Wpf/vsmbuttontemplate/csharp/window1.xaml#11)] + ]]> +