Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
216 changes: 108 additions & 108 deletions xml/System.Windows.Annotations.Storage/AnnotationStore.xml

Large diffs are not rendered by default.

92 changes: 46 additions & 46 deletions xml/System.Windows.Controls.Primitives/MenuBase.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@
<Docs>
<summary>Represents a control that defines choices for users to select.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Windows.Controls.Primitives.MenuBase> is the base class for controls that define choices for users to select. The <xref:System.Windows.Controls.Menu> and <xref:System.Windows.Controls.ContextMenu> inherit from <xref:System.Windows.Controls.Primitives.MenuBase> and allow the user to select an item to invoke some action.
<xref:System.Windows.Controls.Primitives.MenuBase> is an <xref:System.Windows.Controls.ItemsControl>, which means it can contain a collection of objects of any type (such as string, image, or panel). For more information, see the <xref:System.Windows.Controls.ItemsControl> class.
<format type="text/markdown"><![CDATA[

## Remarks
The <xref:System.Windows.Controls.Primitives.MenuBase> is the base class for controls that define choices for users to select. The <xref:System.Windows.Controls.Menu> and <xref:System.Windows.Controls.ContextMenu> inherit from <xref:System.Windows.Controls.Primitives.MenuBase> and allow the user to select an item to invoke some action.

<xref:System.Windows.Controls.Primitives.MenuBase> is an <xref:System.Windows.Controls.ItemsControl>, which means it can contain a collection of objects of any type (such as string, image, or panel). For more information, see the <xref:System.Windows.Controls.ItemsControl> class.

]]></format>
</remarks>
</Docs>
Expand Down Expand Up @@ -181,19 +181,19 @@
<summary>Gets or sets the custom logic for choosing a template used to display each item.</summary>
<value>A custom object that provides logic and returns an item container.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Use an <xref:System.Windows.Controls.ItemContainerTemplateSelector> to choose different item containers if the items in your collection are the same type and you need to provide custom logic to choose the item container.
<a name="dependencyPropertyInfo_ItemContainerTemplateSelector"></a>
## Dependency Property Information
|||
|-|-|
|Identifier field|<xref:System.Windows.Controls.Primitives.MenuBase.ItemContainerTemplateSelectorProperty>|
|Metadata properties set to `true`|None|
<format type="text/markdown"><![CDATA[

## Remarks
Use an <xref:System.Windows.Controls.ItemContainerTemplateSelector> to choose different item containers if the items in your collection are the same type and you need to provide custom logic to choose the item container.

<a name="dependencyPropertyInfo_ItemContainerTemplateSelector"></a>
## Dependency Property Information

|||
|-|-|
|Identifier field|<xref:System.Windows.Controls.Primitives.MenuBase.ItemContainerTemplateSelectorProperty>|
|Metadata properties set to `true`|None|

]]></format>
</remarks>
</Docs>
Expand Down Expand Up @@ -281,11 +281,11 @@
<param name="e">The event data for the <see cref="E:System.Windows.UIElement.KeyDown" /> event.</param>
<summary>Provides class handling for the <see cref="E:System.Windows.UIElement.KeyDown" /> routed event that occurs when the user presses a key.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
If the user presses ESC, ALT+ALT, or ALT+F10, this implementation marks the <xref:System.Windows.UIElement.KeyDown> event as handled by setting the <xref:System.Windows.RoutedEventArgs.Handled%2A> property of the event data to `true`.
<format type="text/markdown"><![CDATA[

## Remarks
If the user presses ESC, ALT+ALT, or ALT+F10, this implementation marks the <xref:System.Windows.UIElement.KeyDown> event as handled by setting the <xref:System.Windows.RoutedEventArgs.Handled%2A> property of the event data to `true`.

]]></format>
</remarks>
<block subset="none" type="overrides">
Expand Down Expand Up @@ -321,11 +321,11 @@
<param name="e">The event data for the <see cref="E:System.Windows.UIElement.MouseLeave" /> event.</param>
<summary>Provides class handling for the <see cref="E:System.Windows.UIElement.MouseLeave" /> routed event that occurs when the mouse leaves the control.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This implementation does not change the handled state (the <xref:System.Windows.RoutedEventArgs.Handled%2A> property) of the <xref:System.Windows.UIElement.MouseLeave> event data.
<format type="text/markdown"><![CDATA[

## Remarks
This implementation does not change the handled state (the <xref:System.Windows.RoutedEventArgs.Handled%2A> property) of the <xref:System.Windows.UIElement.MouseLeave> event data.

]]></format>
</remarks>
<block subset="none" type="overrides">
Expand Down Expand Up @@ -356,23 +356,23 @@
<Docs>
<summary>Gets or sets a value that indicates whether the menu selects different item containers, depending on the type of the item in the underlying collection or some other heuristic.</summary>
<value>
<see langword="true" /> the menu selects different item containers; otherwise, <see langword="false" />.
The registered default is <see langword="false" />. For more information about what can influence the value, see [Dependency Property Value Precedence](/dotnet/framework/wpf/advanced/dependency-property-value-precedence).</value>
<see langword="true" /> the menu selects different item containers; otherwise, <see langword="false" />.

The registered default is <see langword="false" />. For more information about what can influence the value, see <see href="/dotnet/framework/wpf/advanced/dependency-property-value-precedence">Dependency Property Value Precedence</see>.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This property is useful if you want to create a menu by binding to a collection. The item container is the UI element that displays the object in a collection. If you want to bind to a collection to create a menu that contains <xref:System.Windows.Controls.MenuItem> objects and <xref:System.Windows.Controls.Separator> objects, set the <xref:System.Windows.Controls.Primitives.MenuBase.UsesItemContainerTemplate%2A> property to true and create an <xref:System.Windows.Controls.ItemContainerTemplate> for each type of object in your collection. Each <xref:System.Windows.Controls.ItemContainerTemplate> must contain either a <xref:System.Windows.Controls.MenuItem> or a <xref:System.Windows.Controls.Separator>.
<a name="dependencyPropertyInfo_UsesItemContainerTemplate"></a>
## Dependency Property Information
|||
|-|-|
|Identifier field|<xref:System.Windows.Controls.Primitives.MenuBase.UsesItemContainerTemplateProperty>|
|Metadata properties set to `true`|None|
<format type="text/markdown"><![CDATA[

## Remarks
This property is useful if you want to create a menu by binding to a collection. The item container is the UI element that displays the object in a collection. If you want to bind to a collection to create a menu that contains <xref:System.Windows.Controls.MenuItem> objects and <xref:System.Windows.Controls.Separator> objects, set the <xref:System.Windows.Controls.Primitives.MenuBase.UsesItemContainerTemplate%2A> property to true and create an <xref:System.Windows.Controls.ItemContainerTemplate> for each type of object in your collection. Each <xref:System.Windows.Controls.ItemContainerTemplate> must contain either a <xref:System.Windows.Controls.MenuItem> or a <xref:System.Windows.Controls.Separator>.

<a name="dependencyPropertyInfo_UsesItemContainerTemplate"></a>
## Dependency Property Information

|||
|-|-|
|Identifier field|<xref:System.Windows.Controls.Primitives.MenuBase.UsesItemContainerTemplateProperty>|
|Metadata properties set to `true`|None|

]]></format>
</remarks>
</Docs>
Expand Down
Loading