Skip to content
This repository was archived by the owner on Nov 12, 2020. It is now read-only.
This repository was archived by the owner on Nov 12, 2020. It is now read-only.

It doesn't seem the control works when in DataTemplate of repeating control. #110

@agat366

Description

@agat366

Not sure what to specify. It just doesn't work.

I tried to use the control inside of ListView-like template.
The way I define it is similar to how you do this withing ListView:

                        <controls:RepeaterView.ItemTemplate>
                            <DataTemplate>
                                   <xfx:XfxComboBox Placeholder="Enter prey"
                                                             Text="{Binding Title}"
                                                             ItemsSource="{Binding BindingContext.Items, Source={x:Reference list}}"
                                                             SortingAlgorithm="{Binding BindingContext.FilteringMethod, Source={x:Reference list}}"/>

where RepeaterView is my custom control, which generates the template content as follows:

            var template = ItemTemplate;
            if (ItemTemplate is DataTemplateSelector sel)
            {
                template = sel.SelectTemplate(item, null);
            }
            var content = template.CreateContent();

            view = content is View v ? v : ((ViewCell)content).View;

            view.BindingContext = item;

(pretty standard way).

But after all, when I am typing, the list doesn't show up and the filtering method is not being called.

XF: 4.6
Android: 6.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions