|
33 | 33 | <Docs>
|
34 | 34 | <summary>Represents a control that defines choices for users to select.</summary>
|
35 | 35 | <remarks>
|
36 |
| - <format type="text/markdown"><![CDATA[ |
37 |
| - |
38 |
| -## Remarks |
39 |
| - 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. |
40 |
| - |
41 |
| - <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. |
42 |
| - |
| 36 | + <format type="text/markdown"><![CDATA[ |
| 37 | +
|
| 38 | +## Remarks |
| 39 | + 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. |
| 40 | +
|
| 41 | + <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. |
| 42 | +
|
43 | 43 | ]]></format>
|
44 | 44 | </remarks>
|
45 | 45 | </Docs>
|
|
181 | 181 | <summary>Gets or sets the custom logic for choosing a template used to display each item.</summary>
|
182 | 182 | <value>A custom object that provides logic and returns an item container.</value>
|
183 | 183 | <remarks>
|
184 |
| - <format type="text/markdown"><![CDATA[ |
185 |
| - |
186 |
| -## Remarks |
187 |
| - 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. |
188 |
| - |
189 |
| -<a name="dependencyPropertyInfo_ItemContainerTemplateSelector"></a> |
190 |
| -## Dependency Property Information |
191 |
| - |
192 |
| -||| |
193 |
| -|-|-| |
194 |
| -|Identifier field|<xref:System.Windows.Controls.Primitives.MenuBase.ItemContainerTemplateSelectorProperty>| |
195 |
| -|Metadata properties set to `true`|None| |
196 |
| - |
| 184 | + <format type="text/markdown"><![CDATA[ |
| 185 | +
|
| 186 | +## Remarks |
| 187 | + 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. |
| 188 | +
|
| 189 | +<a name="dependencyPropertyInfo_ItemContainerTemplateSelector"></a> |
| 190 | +## Dependency Property Information |
| 191 | +
|
| 192 | +||| |
| 193 | +|-|-| |
| 194 | +|Identifier field|<xref:System.Windows.Controls.Primitives.MenuBase.ItemContainerTemplateSelectorProperty>| |
| 195 | +|Metadata properties set to `true`|None| |
| 196 | +
|
197 | 197 | ]]></format>
|
198 | 198 | </remarks>
|
199 | 199 | </Docs>
|
|
281 | 281 | <param name="e">The event data for the <see cref="E:System.Windows.UIElement.KeyDown" /> event.</param>
|
282 | 282 | <summary>Provides class handling for the <see cref="E:System.Windows.UIElement.KeyDown" /> routed event that occurs when the user presses a key.</summary>
|
283 | 283 | <remarks>
|
284 |
| - <format type="text/markdown"><![CDATA[ |
285 |
| - |
286 |
| -## Remarks |
287 |
| - 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`. |
288 |
| - |
| 284 | + <format type="text/markdown"><![CDATA[ |
| 285 | +
|
| 286 | +## Remarks |
| 287 | + 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`. |
| 288 | +
|
289 | 289 | ]]></format>
|
290 | 290 | </remarks>
|
291 | 291 | <block subset="none" type="overrides">
|
|
321 | 321 | <param name="e">The event data for the <see cref="E:System.Windows.UIElement.MouseLeave" /> event.</param>
|
322 | 322 | <summary>Provides class handling for the <see cref="E:System.Windows.UIElement.MouseLeave" /> routed event that occurs when the mouse leaves the control.</summary>
|
323 | 323 | <remarks>
|
324 |
| - <format type="text/markdown"><![CDATA[ |
325 |
| - |
326 |
| -## Remarks |
327 |
| - 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. |
328 |
| - |
| 324 | + <format type="text/markdown"><![CDATA[ |
| 325 | +
|
| 326 | +## Remarks |
| 327 | + 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. |
| 328 | +
|
329 | 329 | ]]></format>
|
330 | 330 | </remarks>
|
331 | 331 | <block subset="none" type="overrides">
|
|
356 | 356 | <Docs>
|
357 | 357 | <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>
|
358 | 358 | <value>
|
359 |
| - <see langword="true" /> the menu selects different item containers; otherwise, <see langword="false" />. |
360 |
| - |
361 |
| - 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> |
| 359 | + <see langword="true" /> the menu selects different item containers; otherwise, <see langword="false" />. |
| 360 | + |
| 361 | + 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> |
362 | 362 | <remarks>
|
363 |
| - <format type="text/markdown"><![CDATA[ |
364 |
| - |
365 |
| -## Remarks |
366 |
| - 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>. |
367 |
| - |
368 |
| -<a name="dependencyPropertyInfo_UsesItemContainerTemplate"></a> |
369 |
| -## Dependency Property Information |
370 |
| - |
371 |
| -||| |
372 |
| -|-|-| |
373 |
| -|Identifier field|<xref:System.Windows.Controls.Primitives.MenuBase.UsesItemContainerTemplateProperty>| |
374 |
| -|Metadata properties set to `true`|None| |
375 |
| - |
| 363 | + <format type="text/markdown"><![CDATA[ |
| 364 | +
|
| 365 | +## Remarks |
| 366 | + 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>. |
| 367 | +
|
| 368 | +<a name="dependencyPropertyInfo_UsesItemContainerTemplate"></a> |
| 369 | +## Dependency Property Information |
| 370 | +
|
| 371 | +||| |
| 372 | +|-|-| |
| 373 | +|Identifier field|<xref:System.Windows.Controls.Primitives.MenuBase.UsesItemContainerTemplateProperty>| |
| 374 | +|Metadata properties set to `true`|None| |
| 375 | +
|
376 | 376 | ]]></format>
|
377 | 377 | </remarks>
|
378 | 378 | </Docs>
|
|
0 commit comments