Coder Social home page Coder Social logo

Comments (21)

Willjobs94 avatar Willjobs94 commented on August 10, 2024 1

I installed Prism on the sample project and works great, but it did not work on my project. After that I put the same page and view model on both project (sample project and my project) and still not working, then I saw that I had a Xamarin.Forms update, so I just updated an cleaned my solution and now is working in my app. I didn't have to use FlowListView.Init() or XAML compiler, even thought I'll probably use the XAMLC at the end for optimization purpose.

Thank you very much for the feedback, I think I can close this issue now.

from dltoolkit.forms.controls.

daniel-luberda avatar daniel-luberda commented on August 10, 2024

Do you have any code? Without it I can't help you. FlowListView works fine (just test example project).

from dltoolkit.forms.controls.

Willjobs94 avatar Willjobs94 commented on August 10, 2024

This is my list view
<flv:FlowListView x:Name="listview" FlowColumnCount="1" SeparatorVisibility="None" HasUnevenRows="false" FlowItemsSource="{Binding Items}"> <flv:FlowListView.FlowColumnTemplate> <DataTemplate> <Label HorizontalOptions="Fill" VerticalOptions="Fill" XAlign="Center" YAlign="Center" Text="Test" /> </DataTemplate> </flv:FlowListView.FlowColumnTemplate> </flv:FlowListView>

and I'm setting the items in my ViewModel constructor like this.
Items = new ObservableCollection<object> { new { } };
If I leave Items null the page load, if a put any object in the Items collection the page does not load. I've already cloned the project and check the example, but I didn't find the reason why mine is not working.

from dltoolkit.forms.controls.

daniel-luberda avatar daniel-luberda commented on August 10, 2024

@Willjobs94 Works just fine for me. See this:

simulator screen shot 27 10 2016 03 00 03

from dltoolkit.forms.controls.

Willjobs94 avatar Willjobs94 commented on August 10, 2024

Thats the thing, It works on the sample project, but I don't find what is missing on my project, that it does not work. I does not throw any exception, it just freeze my app.

from dltoolkit.forms.controls.

daniel-luberda avatar daniel-luberda commented on August 10, 2024

If you use it XAML only, do you call FlowListView.Init() somewhere as stated here: https://github.com/daniel-luberda/DLToolkit.Forms.Controls/tree/master/FlowListView#faq

from dltoolkit.forms.controls.

Willjobs94 avatar Willjobs94 commented on August 10, 2024

Somewhere where ?, I tried putting on my code-behind page, and on my platform specific project, if I use the view without setting the item property I can navigate to the page, without error. the app stuck if I set the Items property and navigate to that page., I'm actually using a TappedPage and don't know if that is the problem.

from dltoolkit.forms.controls.

daniel-luberda avatar daniel-luberda commented on August 10, 2024

Could you attach some sample project so I could check what's wrong? It's hard to predict.

Somewhere means anywhere, so the Xamarin linker would preserve dll from linking.

from dltoolkit.forms.controls.

Willjobs94 avatar Willjobs94 commented on August 10, 2024

This archive contains the view that have the problem, and where I'm using FlowListView.Init()
Archive.zip

from dltoolkit.forms.controls.

daniel-luberda avatar daniel-luberda commented on August 10, 2024

You shouldn't put any lists inside ScrollView - that may be the reason.

from dltoolkit.forms.controls.

Willjobs94 avatar Willjobs94 commented on August 10, 2024

I tried removing it, but that's not the problem.

from dltoolkit.forms.controls.

daniel-luberda avatar daniel-luberda commented on August 10, 2024

It's not a full solution, it can be anything. Does it work with a normal ListView?

from dltoolkit.forms.controls.

Willjobs94 avatar Willjobs94 commented on August 10, 2024

Yes

from dltoolkit.forms.controls.

daniel-luberda avatar daniel-luberda commented on August 10, 2024
  • Do you use XAML compilation?
  • Could you make a full repro with it?
  • Could you try to use a class instead object? Eg:
            Items = new ObservableCollection<ItemModel>
            {
                new ItemModel(),
                new ItemModel(),
                new ItemModel(),
            };

from dltoolkit.forms.controls.

Willjobs94 avatar Willjobs94 commented on August 10, 2024
  • I do not use XAML compilation
  • I can't make a public repo with the source code
  • I already tried with class instance and got the same result.

from dltoolkit.forms.controls.

daniel-luberda avatar daniel-luberda commented on August 10, 2024
  • Please try to enable XAML compilation, maybe it will you show some compilation errors.
  • The one page with the same view and model (prism, etc) would be just fine, so I can just test it. It may be something prism specific, are you sure you implemented INotifyPropertyChanged correctly? I can't see any calls or do you use Fody?

from dltoolkit.forms.controls.

Willjobs94 avatar Willjobs94 commented on August 10, 2024

I use Fody, but I even tried implementing it with Xamvvm like in the project samples and still not working. Let me try with XAML compilation and see what I get. Thanks for the fast feedback

from dltoolkit.forms.controls.

Willjobs94 avatar Willjobs94 commented on August 10, 2024

I tried XAMLC but it didn't work, and not exception or error found.

from dltoolkit.forms.controls.

daniel-luberda avatar daniel-luberda commented on August 10, 2024

That's strange, I used this control with different MVVM frameworks and didn't have any problems yet. I am wondering what could be the cause of it. I pasted the code and it just worked fine in another solution. Didn't use it with PRISM yet though.

from dltoolkit.forms.controls.

Willjobs94 avatar Willjobs94 commented on August 10, 2024

Ok, let me try to use prism, on the sample project and see if that is the problem.

from dltoolkit.forms.controls.

daniel-luberda avatar daniel-luberda commented on August 10, 2024

Thanks. If you have the sample project, feel free to mail it / send it to me. I'll try to debug it.

from dltoolkit.forms.controls.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.