本文整理汇总了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);
}
}
示例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));
}
示例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);
}
}