当前位置: 首页>>代码示例>>C#>>正文


C# IMenuItem.SetOnMenuItemClickListener方法代码示例

本文整理汇总了C#中IMenuItem.SetOnMenuItemClickListener方法的典型用法代码示例。如果您正苦于以下问题:C# IMenuItem.SetOnMenuItemClickListener方法的具体用法?C# IMenuItem.SetOnMenuItemClickListener怎么用?C# IMenuItem.SetOnMenuItemClickListener使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IMenuItem的用法示例。


在下文中一共展示了IMenuItem.SetOnMenuItemClickListener方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: SetPreviousButton

        /// <summary>
        /// A method for setting the Next Button
        /// </summary>
        public virtual void SetPreviousButton(IMenuItem prev)
        {
            Previous = prev;

            if (Previous != null)
            {
                // Update visibility base on position
                if (Selected <= 0)
                    Previous.SetVisible(false);

                // Set the buttons listner to this
                Previous.SetOnMenuItemClickListener(this);
            }
        }
开发者ID:prozum,项目名称:solitude,代码行数:17,代码来源:EditDataAdapter.cs

示例2: ApplySelf

        private void ApplySelf(IMenuItem menuItem, XmlPropertySetter<MenuItemTemplate, IMenuItem> setter)
        {
            if (!string.IsNullOrEmpty(Bind))
                setter.BindingSet.BindFromExpression(menuItem, Bind);
            setter.SetStringProperty(() => template => template.AlphabeticShortcut, AlphabeticShortcut);
            setter.SetStringProperty(() => template => template.NumericShortcut, NumericShortcut);
            setter.SetProperty(() => template => template.Icon, Icon);
            setter.SetBoolProperty(() => template => template.IsCheckable, IsCheckable);
            setter.SetBoolProperty(() => template => template.IsChecked, IsChecked);
            setter.SetBoolProperty(() => template => template.IsEnabled, IsEnabled);
            setter.SetBoolProperty(() => template => template.IsVisible, IsVisible);
            setter.SetBoolProperty(() => template => template.IsActionViewExpanded, IsActionViewExpanded);
            setter.SetStringProperty(() => template => template.Title, Title);
            setter.SetStringProperty(() => template => template.TitleCondensed, TitleCondensed);
            setter.SetStringProperty(() => template => template.CommandParameter, CommandParameter);
            setter.SetBinding(() => template => template.Click, Click, false);

            var initalized = Initalized;
            if (initalized != null)
                initalized(this, menuItem, setter);

            setter.SetBinding(() => template => template.ActionViewTemplateSelector, ActionViewTemplateSelector, false);
            setter.SetBinding(() => template => template.ActionProviderTemplateSelector, ActionProviderTemplateSelector, false);
            setter.SetProperty(() => template => template.ActionView, ActionView);
            setter.SetStringProperty(() => template => template.ActionProvider, ActionProvider);
            menuItem.SetOnMenuItemClickListener(new PlatformDataBindingModule.MenuItemOnMenuItemClickListener(menuItem));
        }
开发者ID:MuffPotter,项目名称:MugenMvvmToolkit,代码行数:27,代码来源:MenuItemTemplate.cs

示例3: SetNextButton

        /// <summary>
        /// A method for setting the Next Button
        /// </summary>
        public virtual void SetNextButton(IMenuItem next)
        {
            Next = next;

            if (Next != null)
            {
                // Update visibility base on position
                if (Selected >= Count - 1)
                    Next.SetVisible(false);

                // Set the buttons listner to this
                Next.SetOnMenuItemClickListener(this);
            }
        }
开发者ID:prozum,项目名称:solitude,代码行数:17,代码来源:EditDataAdapter.cs


注:本文中的IMenuItem.SetOnMenuItemClickListener方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。