You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- using System.Windows;
- using System.Windows.Controls;
-
- namespace BPA.UIControl
- {
- /// <summary>
- /// 汉堡包菜单选项控件
- /// </summary>
- public class HamburgerMenuOptions : Menu
- {
- static HamburgerMenuOptions()
- {
- DefaultStyleKeyProperty.OverrideMetadata(typeof(HamburgerMenuOptions), new FrameworkPropertyMetadata(typeof(HamburgerMenuOptions)));
- }
-
- /// <inheritdoc/>
- protected override bool IsItemItsOwnContainerOverride(object item)
- {
- return item is HamburgerMenuOptionsItem;
- }
-
- /// <inheritdoc/>
- protected override DependencyObject GetContainerForItemOverride()
- {
- return new HamburgerMenuOptionsItem();
- }
- }
- }
|