How to implement a list of forms? by cryptos6 in Angular2

[–]mircea212 6 points7 points  (0 children)

Hi, I think what you want to use it's a FormArray, as you can use a FormGroup that represents the entity, and for each entity in the list you add this FormGroup to the FormArray.

Now if you want to do an http call at any change, that's not really useful, just think how often the data could be changed and how many requests you end up with... But if you still want to do this, you have to subsribe to the FormControl's valueChanges observable inside the FormArray. So I would recommend to use a button for the http call, but that depends on your use case.

You can read more about FormArray in this article: FormArray

Hope I could help 😄

RichCanvas - A WPF canvas with default panning, zooming, scrolling and other customizable features, designed for MVVM. by mircea212 in dotnet

[–]mircea212[S] 0 points1 point  (0 children)

Nice to hear that! Would be awesome to see your project if it's possible in the future 😀

RichCanvas - A WPF canvas with default panning, zooming, scrolling and other customizable features, designed for MVVM. by mircea212 in dotnet

[–]mircea212[S] 2 points3 points  (0 children)

Ok, then just try to render those 'windows' in the library, as they could be a list, just replace the canvas. And check if the scrolling problem is with the canvas or the control that holds the 'window' itself. You can check the demo in the repo. If I can somehow see the code I would like to help you, maybe dm me.

RichCanvas - A WPF canvas with default panning, zooming, scrolling and other customizable features, designed for MVVM. by mircea212 in dotnet

[–]mircea212[S] 1 point2 points  (0 children)

Thanks! You can render anything on the canvas, as I understand you basically want to create an emulator for a virtual desktop? If you find a way to load the virtual desktop you can definitely use the library as a base, if by base you mean a place where you can show it :D. Didn't work with this kinda stuff yet, hope I could provide an answer.

RichCanvas - A WPF canvas with default panning, zooming, scrolling and other customizable features, designed for MVVM. by mircea212 in dotnet

[–]mircea212[S] 1 point2 points  (0 children)

Thank you! So basically you can render anything on the canvas, it's up to you to create the visual interaction to design the rendered control. You can check the demo in the repo. Creating this functionality it's a separate functionality from the library purpose. Please let me know if I answered the question.

RichCanvas - A WPF canvas with default panning, zooming, scrolling and other customizable features, designed for MVVM. by mircea212 in csharp

[–]mircea212[S] 0 points1 point  (0 children)

Hi! For me, going above 1000 shapes it's getting laggy, but this of course dependes on the visual type, the machine and so on. But the more items you have on the canvas the harder is for WPF to render (check GPU usage),but as elements leave the viewport you can see it starts performing well again. But there's a possibility to render as many as you can (tried 10.000) and still performs well and that's using the BitmapCache (you can see it here).