Show / Hide Table of Contents

    Class TargetedMenu

    Forms9Patch.TargetedMenu class

    Inheritance
    Object
    BindableObject
    Element
    NavigableElement
    VisualElement
    Page
    TemplatedPage
    ContentPage
    PopupPage
    Forms9Patch.PopupBase
    BubblePopup
    TargetedMenu
    Implements
    INotifyPropertyChanged
    IAnimatable
    ITabStopElement
    ILayout
    IPageController
    IVisualElementController
    IElementController
    IElementConfiguration<Page>
    IPopup
    IBackground
    IShape
    IElement
    IDisposable
    Inherited Members
    BubblePopup.Content
    BubblePopup.TargetBiasProperty
    BubblePopup.TargetBias
    BubblePopup.PointerLengthProperty
    BubblePopup.PointerLength
    BubblePopup.PointerTipRadiusProperty
    BubblePopup.PointerTipRadius
    BubblePopup.PointerDirectionProperty
    BubblePopup.PointerDirection
    BubblePopup.PreferredPointerDirectionProperty
    BubblePopup.PreferredPointerDirection
    BubblePopup.PointerCornerRadiusProperty
    BubblePopup.PointerCornerRadius
    BubblePopup.PointProperty
    BubblePopup.Point
    BubblePopup.OnAppearingAnimationBegin()
    BubblePopup.UsePoint
    BubblePopup.Available(Double, Double, Rectangle)
    BubblePopup.LayoutChildren(Double, Double, Double, Double)
    PopupPage.BackgroundClicked
    PopupPage.IsAnimationEnabledProperty
    PopupPage.IsAnimationEnabled
    PopupPage.HasSystemPaddingProperty
    PopupPage.HasSystemPadding
    PopupPage.AnimationProperty
    PopupPage.Animation
    PopupPage.SystemPaddingProperty
    PopupPage.SystemPadding
    PopupPage.SystemPaddingSidesProperty
    PopupPage.SystemPaddingSides
    PopupPage.CloseWhenBackgroundIsClickedProperty
    PopupPage.CloseWhenBackgroundIsClicked
    PopupPage.BackgroundInputTransparentProperty
    PopupPage.BackgroundInputTransparent
    PopupPage.HasKeyboardOffsetProperty
    PopupPage.HasKeyboardOffset
    PopupPage.KeyboardOffsetProperty
    PopupPage.KeyboardOffset
    PopupPage.OnBackButtonPressed()
    PopupPage.OnDisappearingAnimationBegin()
    PopupPage.OnDisappearingAnimationEnd()
    PopupPage.OnAppearingAnimationBeginAsync()
    PopupPage.OnAppearingAnimationEndAsync()
    PopupPage.OnDisappearingAnimationBeginAsync()
    PopupPage.OnDisappearingAnimationEndAsync()
    PopupPage.OnBackgroundClicked()
    ContentPage.ContentProperty
    ContentPage.OnBindingContextChanged()
    TemplatedPage.ControlTemplateProperty
    TemplatedPage.OnApplyTemplate()
    TemplatedPage.OnChildRemoved(Element)
    Xamarin.Forms.TemplatedPage.OnChildRemoved(Xamarin.Forms.Element, System.Int32)
    TemplatedPage.GetTemplateChild(String)
    TemplatedPage.ControlTemplate
    Page.BusySetSignalName
    Page.AlertSignalName
    Page.PromptSignalName
    Page.ActionSheetSignalName
    Page.BackgroundImageSourceProperty
    Page.IsBusyProperty
    Page.PaddingProperty
    Page.TitleProperty
    Page.IconImageSourceProperty
    Page.DisplayActionSheet(String, String, String, String[])
    Page.DisplayAlert(String, String, String)
    Page.DisplayAlert(String, String, String, String)
    Page.DisplayPromptAsync(String, String, String, String, String, Int32, Keyboard, String)
    Page.ForceLayout()
    Page.SendBackButtonPressed()
    Page.OnAppearing()
    Page.OnChildMeasureInvalidated(Object, EventArgs)
    Page.OnDisappearing()
    Page.OnParentSet()
    Page.OnSizeAllocated(Double, Double)
    Page.UpdateChildrenLayout()
    Page.On<T>()
    Page.BackgroundImageSource
    Page.IconImageSource
    Page.IsBusy
    Page.Padding
    Page.Title
    Page.ToolbarItems
    Page.LayoutChanged
    Page.Appearing
    Page.Disappearing
    VisualElement.NavigationProperty
    VisualElement.StyleProperty
    VisualElement.InputTransparentProperty
    VisualElement.IsEnabledProperty
    VisualElement.XProperty
    VisualElement.YProperty
    VisualElement.AnchorXProperty
    VisualElement.AnchorYProperty
    VisualElement.TranslationXProperty
    VisualElement.TranslationYProperty
    VisualElement.WidthProperty
    VisualElement.HeightProperty
    VisualElement.RotationProperty
    VisualElement.RotationXProperty
    VisualElement.RotationYProperty
    VisualElement.ScaleProperty
    VisualElement.ScaleXProperty
    VisualElement.ScaleYProperty
    VisualElement.ClipProperty
    VisualElement.VisualProperty
    VisualElement.IsVisibleProperty
    VisualElement.OpacityProperty
    VisualElement.BackgroundColorProperty
    VisualElement.BackgroundProperty
    VisualElement.BehaviorsProperty
    VisualElement.TriggersProperty
    VisualElement.WidthRequestProperty
    VisualElement.HeightRequestProperty
    VisualElement.MinimumWidthRequestProperty
    VisualElement.MinimumHeightRequestProperty
    VisualElement.IsFocusedProperty
    VisualElement.FlowDirectionProperty
    VisualElement.TabIndexProperty
    VisualElement.IsTabStopProperty
    VisualElement.OnTabIndexPropertyChanged(Int32, Int32)
    VisualElement.TabIndexDefaultValueCreator()
    VisualElement.OnTabStopPropertyChanged(Boolean, Boolean)
    VisualElement.TabStopDefaultValueCreator()
    VisualElement.BatchBegin()
    VisualElement.BatchCommit()
    VisualElement.Focus()
    VisualElement.Layout(Rectangle)
    VisualElement.Measure(Double, Double, MeasureFlags)
    VisualElement.Unfocus()
    VisualElement.InvalidateMeasure()
    VisualElement.OnChildAdded(Element)
    VisualElement.OnChildrenReordered()
    VisualElement.OnMeasure(Double, Double)
    VisualElement.SizeAllocated(Double, Double)
    VisualElement.IVisualElementController.InvalidateMeasure(InvalidationTrigger)
    VisualElement.ChangeVisualState()
    VisualElement.Visual
    VisualElement.FlowDirection
    VisualElement.IVisualElementController.EffectiveFlowDirection
    VisualElement.AnchorX
    VisualElement.AnchorY
    VisualElement.BackgroundColor
    VisualElement.Background
    VisualElement.Behaviors
    VisualElement.Bounds
    VisualElement.Height
    VisualElement.HeightRequest
    VisualElement.InputTransparent
    VisualElement.IsEnabled
    VisualElement.IsFocused
    VisualElement.IsVisible
    VisualElement.MinimumHeightRequest
    VisualElement.MinimumWidthRequest
    VisualElement.Opacity
    VisualElement.Rotation
    VisualElement.RotationX
    VisualElement.RotationY
    VisualElement.Scale
    VisualElement.ScaleX
    VisualElement.ScaleY
    VisualElement.TabIndex
    VisualElement.IsTabStop
    VisualElement.TranslationX
    VisualElement.TranslationY
    VisualElement.Triggers
    VisualElement.Width
    VisualElement.WidthRequest
    VisualElement.X
    VisualElement.Y
    VisualElement.Clip
    VisualElement.Resources
    VisualElement.ChildrenReordered
    VisualElement.Focused
    VisualElement.MeasureInvalidated
    VisualElement.SizeChanged
    VisualElement.Unfocused
    NavigableElement.Navigation
    NavigableElement.Style
    NavigableElement.StyleClass
    NavigableElement.class
    Element.MenuProperty
    Element.AutomationIdProperty
    Element.ClassIdProperty
    Element.GetMenu(BindableObject)
    Element.SetMenu(BindableObject, Menu)
    Element.IElementController.SetValueFromRenderer(BindableProperty, Object)
    Element.FindByName(String)
    Element.RemoveDynamicResource(BindableProperty)
    Element.SetDynamicResource(BindableProperty, String)
    Element.AutomationId
    Element.ClassId
    Element.Effects
    Element.Id
    Element.StyleId
    Element.Parent
    Element.ChildAdded
    Element.ChildRemoved
    Element.DescendantAdded
    Element.DescendantRemoved
    BindableObject.BindingContextProperty
    BindableObject.ClearValue(BindableProperty)
    BindableObject.ClearValue(BindablePropertyKey)
    BindableObject.GetValue(BindableProperty)
    BindableObject.IsSet(BindableProperty)
    BindableObject.RemoveBinding(BindableProperty)
    BindableObject.SetBinding(BindableProperty, BindingBase)
    BindableObject.ApplyBindings()
    BindableObject.OnPropertyChanging(String)
    BindableObject.UnapplyBindings()
    BindableObject.SetValue(BindableProperty, Object)
    BindableObject.SetValue(BindablePropertyKey, Object)
    BindableObject.CoerceValue(BindableProperty)
    BindableObject.CoerceValue(BindablePropertyKey)
    BindableObject.Dispatcher
    BindableObject.BindingContext
    BindableObject.PropertyChanged
    BindableObject.PropertyChanging
    BindableObject.BindingContextChanged
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: Forms9Patch
    Assembly: Forms9Patch.dll
    Syntax
    [ContentProperty("Segments")]
    public class TargetedMenu : BubblePopup, INotifyPropertyChanged, IDynamicResourceHandler, IElement, INameScope, INavigationProxy, IStyleSelectable, IAnimatable, IResourcesProvider, IStyleElement, IFlowDirectionController, IPropertyPropagationController, IVisualController, ITabStopElement, IStylable, ILayout, IPageController, IVisualElementController, IElementController, IElementConfiguration<Page>, IPaddingElement, IControlTemplated, IPopup, IBackground, IShape, IElement, IDisposable

    Constructors

    TargetedMenu(VisualElement)

    Constructor for TargetedMenu

    Declaration
    public TargetedMenu(VisualElement target)
    Parameters
    Type Name Description
    VisualElement target

    TargetedMenu(VisualElement, Point)

    Constructor for TargetedMenu at a Point

    Declaration
    public TargetedMenu(VisualElement target, Point point)
    Parameters
    Type Name Description
    VisualElement target
    Point point

    Fields

    FontFamilyProperty

    Key for FontFamily property

    Declaration
    public static readonly BindableProperty FontFamilyProperty
    Field Value
    Type Description
    BindableProperty

    FontSizeProperty

    backing store for FontSize property

    Declaration
    public static readonly BindableProperty FontSizeProperty
    Field Value
    Type Description
    BindableProperty

    HapticEffectModeProperty

    backing store for HapticEffectMode property

    Declaration
    public static readonly BindableProperty HapticEffectModeProperty
    Field Value
    Type Description
    BindableProperty

    HapticEffectProperty

    backing store for HapticEffect property

    Declaration
    public static readonly BindableProperty HapticEffectProperty
    Field Value
    Type Description
    BindableProperty

    IconFontFamilyProperty

    Key for Icon Font Family property

    Declaration
    public static readonly BindableProperty IconFontFamilyProperty
    Field Value
    Type Description
    BindableProperty

    IconFontSizeProperty

    Backing store for TargetedMenu IconFontSize property

    Declaration
    public static readonly BindableProperty IconFontSizeProperty
    Field Value
    Type Description
    BindableProperty

    OrientationProperty

    Key for Orientaton of menu

    Declaration
    public static readonly BindableProperty OrientationProperty
    Field Value
    Type Description
    BindableProperty

    SeparatorColorProperty

    backing store for SeparatorColor property

    Declaration
    public static readonly BindableProperty SeparatorColorProperty
    Field Value
    Type Description
    BindableProperty

    SeparatorThicknessProperty

    backing store for SeparatorWidth property

    Declaration
    public static readonly BindableProperty SeparatorThicknessProperty
    Field Value
    Type Description
    BindableProperty

    SoundEffectModeProperty

    The backing store for the sound effect mode property.

    Declaration
    public static readonly BindableProperty SoundEffectModeProperty
    Field Value
    Type Description
    BindableProperty

    SoundEffectProperty

    The backing store for the sound effect property.

    Declaration
    public static readonly BindableProperty SoundEffectProperty
    Field Value
    Type Description
    BindableProperty

    TextColorProperty

    backing store for FontColor property

    Declaration
    public static readonly BindableProperty TextColorProperty
    Field Value
    Type Description
    BindableProperty

    Properties

    FontFamily

    Font Family property

    Declaration
    public string FontFamily { get; set; }
    Property Value
    Type Description
    String

    FontSize

    Gets/Sets the FontSize property

    Declaration
    public double FontSize { get; set; }
    Property Value
    Type Description
    Double

    HapticEffect

    Gets/Sets the HapticEffect property

    Declaration
    public HapticEffect HapticEffect { get; set; }
    Property Value
    Type Description
    HapticEffect

    HapticEffectMode

    Gets/Sets the HapticEffectMode property

    Declaration
    public EffectMode HapticEffectMode { get; set; }
    Property Value
    Type Description
    EffectMode

    IconFontFamily

    Icon Font Familiy property

    Declaration
    public string IconFontFamily { get; set; }
    Property Value
    Type Description
    String

    IconFontSize

    controls value of .IconFontSize property

    Declaration
    public double IconFontSize { get; set; }
    Property Value
    Type Description
    Double

    Orientation

    Orienation of menu

    Declaration
    public StackOrientation Orientation { get; set; }
    Property Value
    Type Description
    StackOrientation

    Segments

    The container for the Segmented Control's buttons.

    Declaration
    public IList<Segment> Segments { get; set; }
    Property Value
    Type Description
    IList<Segment>

    The buttons.

    SelectedSegment

    Returns the currently selected segment

    Declaration
    public Segment SelectedSegment { get; }
    Property Value
    Type Description
    Segment

    SelectedSegmentProperty

    SelectedSegment BindableProperty

    Declaration
    public static BindableProperty SelectedSegmentProperty { get; }
    Property Value
    Type Description
    BindableProperty

    SeparatorColor

    Gets/Sets the SeparatorColor property

    Declaration
    public Color SeparatorColor { get; set; }
    Property Value
    Type Description
    Color

    SeparatorThickness

    Gets/Sets the SeparatorWidth property

    Declaration
    public double SeparatorThickness { get; set; }
    Property Value
    Type Description
    Double

    SoundEffect

    Gets or sets the sound effect played when a menu item is tapped.

    Declaration
    public SoundEffect SoundEffect { get; set; }
    Property Value
    Type Description
    SoundEffect

    The sound effect.

    SoundEffectMode

    Gets or sets if the sound effect is played when a menu item is tapped

    Declaration
    public EffectMode SoundEffectMode { get; set; }
    Property Value
    Type Description
    EffectMode

    The sound effect mode.

    TextColor

    Gets/Sets the FontColor property

    Declaration
    public Color TextColor { get; set; }
    Property Value
    Type Description
    Color

    Methods

    Create(VisualElement, List<String>)

    Instantiates, populates and presents a TargetedMenu

    Declaration
    public static TargetedMenu Create(VisualElement target, List<string> htmlTexts = null)
    Parameters
    Type Name Description
    VisualElement target

    VisualElement to target

    List<String> htmlTexts

    List of text for menu items (with optional HTML markup)

    Returns
    Type Description
    TargetedMenu

    Create(VisualElement, Point, List<String>)

    Instantiates, populates and presents a TargetedMenu at a Point

    Declaration
    public static TargetedMenu Create(VisualElement target, Point point, List<string> htmlTexts = null)
    Parameters
    Type Name Description
    VisualElement target
    Point point
    List<String> htmlTexts
    Returns
    Type Description
    TargetedMenu

    CreateVertical(VisualElement, List<String>)

    Creates a vertical Targeted Menu.

    Declaration
    public static TargetedMenu CreateVertical(VisualElement target, List<string> htmlTexts = null)
    Parameters
    Type Name Description
    VisualElement target

    Target.

    List<String> htmlTexts

    Html texts.

    Returns
    Type Description
    TargetedMenu

    The vertical.

    CreateVertical(VisualElement, Point, List<String>)

    Create the specified target menu, at a point.

    Declaration
    public static TargetedMenu CreateVertical(VisualElement target, Point point, List<string> htmlTexts = null)
    Parameters
    Type Name Description
    VisualElement target

    Target.

    Point point

    Point.

    List<String> htmlTexts

    Html texts.

    Returns
    Type Description
    TargetedMenu

    The create.

    Dispose(Boolean)

    Instance is being disposed

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    Boolean disposing
    Overrides
    Forms9Patch.PopupBase.Dispose(System.Boolean)

    OnAppearingAnimationEnd()

    Called when appearing animation has ended

    Declaration
    protected override void OnAppearingAnimationEnd()
    Overrides
    Forms9Patch.PopupBase.OnAppearingAnimationEnd()

    OnPropertyChanged(String)

    A property changed. Let's deal with it.

    Declaration
    protected override void OnPropertyChanged(string propertyName = null)
    Parameters
    Type Name Description
    String propertyName
    Overrides
    BubblePopup.OnPropertyChanged(String)

    Events

    SegmentTapped

    Event fired with a menu item (segment) has been tapped

    Declaration
    public event SegmentedControlEventHandler SegmentTapped
    Event Type
    Type Description
    SegmentedControlEventHandler

    Implements

    System.ComponentModel.INotifyPropertyChanged
    Xamarin.Forms.IAnimatable
    Xamarin.Forms.ITabStopElement
    Xamarin.Forms.ILayout
    Xamarin.Forms.IPageController
    Xamarin.Forms.IVisualElementController
    Xamarin.Forms.IElementController
    Xamarin.Forms.IElementConfiguration<TElement>
    IPopup
    IBackground
    IShape
    IElement
    System.IDisposable

    Extension Methods

    VisualElementExtensions.IsDescendentOf(Element, Element)
    VisualElementExtensions.IsAncestorOf(Element, Element)
    VisualElementExtensions.BoundsInWindowCoord(VisualElement)
    VisualElementExtensions.BoundsInElementCoord(VisualElement, VisualElement)
    VisualElementExtensions.LocationInWindowCoord(VisualElement)
    VisualElementExtensions.PointInWindowCoord(VisualElement, Point)
    VisualElementExtensions.LocationInElementCoord(VisualElement, VisualElement)
    VisualElementExtensions.PointInElementCoord(VisualElement, Point, VisualElement)
    VisualElementExtensions.HitTest(VisualElement, Point, VisualElement)
    VisualElementExtensions.GestureListener(VisualElement)
    VisualElementExtensions.FindChildrenWithPropertyAndOfType<T>(VisualElement, String, List<T>)
    VisualElementExtensions.FindChildrenWithProperty(VisualElement, String)
    VisualElementExtensions.FindVisualElementsOfType<T>(VisualElement)
    VisualElementExtensions.FindChildWithFocus(Element)
    VisualElementExtensions.FindAncestorOfType(Element, Type)
    VisualElementExtensions.IsInVisibleViewTree(VisualElement)
    ElementExtensions.AncestorOfBaseType<T>(Element)
    ElementExtensions.Ancestor<T>(Element)
    ElementExtensions.IsInNativeLayout(VisualElement)
    ElementExtensions.SetIsInNativeLayout(VisualElement, Boolean)
    ElementExtensions.GetRenderer(VisualElement)
    ElementExtensions.HasRenderer(VisualElement)
    HardwareKeyListenerExtensions.GetHardwareKeyListeners(PopupBase)
    HardwareKeyListenerExtensions.ClearHardwareKeyListeners(PopupBase)
    HardwareKeyListenerExtensions.AddHardwareKeyListener(PopupBase, String, HardwareKeyModifierKeys, String, EventHandler<HardwareKeyEventArgs>)
    HardwareKeyListenerExtensions.AddHardwareKeyListener(PopupBase, String, HardwareKeyModifierKeys, EventHandler<HardwareKeyEventArgs>)
    HardwareKeyListenerExtensions.AddHardwareKeyListener(PopupBase, String, EventHandler<HardwareKeyEventArgs>)
    HardwareKeyListenerExtensions.AddHardwareKeyListener(PopupBase, String)
    HardwareKeyListenerExtensions.AddHardwareKeyListener(PopupBase, HardwareKeyListener)
    HardwareKeyListenerExtensions.RemoveHardwareKeyListener(PopupBase, String, HardwareKeyModifierKeys)
    HardwareKeyListenerExtensions.RemoveHardwareKeyListener(PopupBase, HardwareKeyListener)
    HardwareKeyListenerExtensions.HardwareKeyFocus(PopupBase)
    HardwareKeyListenerExtensions.HardwareKeyUnfocus(VisualElement)
    DebugExtensions.AddToCensus(Object)
    DebugExtensions.RemoveFromCensus(Object)
    ReflectionExtensions.GetProperties(Object)
    ReflectionExtensions.GetProperty(Object, String)
    ReflectionExtensions.PropertyNames(Object)
    ReflectionExtensions.PropertyExists(Object, String)
    ReflectionExtensions.HasProperty(Object, String)
    ReflectionExtensions.GetPropertyValue(Object, String)
    ReflectionExtensions.SetPropertyValue(Object, String, Object)
    ReflectionExtensions.GetFieldValue(Object, String)
    ReflectionExtensions.SetFieldValue(Object, String, Object)
    ReflectionExtensions.CallMethod(Object, String, Object[])
    Back to top Copyright © 2018 42nd Parallel