Skip to content

Image inside SegmentedControl #4

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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