Skip to content

Image inside SegmentedControl #4

@matteopiccioni

Description

@matteopiccioni

Hello,
a SegmentedControl can have image inside.
For iPhone is simple:
Info SegmentedControl add
public static readonly BindableProperty ImageProperty = BindableProperty.Create(nameof(Image), typeof(string), typeof(SegmentedControl), ""); public string Image { get { return (string)GetValue(ImageProperty); } set { SetValue(ImageProperty, value); } }
Into contentpage:
<controls:SegmentedControlOption Image="blog.png" Text="Two" />

Into SegmentedControlRenderer:
segmentedControl.SetImage(UIImage.FromFile( e.NewElement.Children[i].Image ), i);
In wich way I can add image into Android implementation ?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions