Comments (12)
Thankyou, I'll have a look later in the week. This sample was only recently added.
from reactiveui.samples.
It's work ok,IEnumerable change to IList,thank you @rallets @glennawatson
from reactiveui.samples.
from reactiveui.samples.
Thanks for the issue. Please edit to bring back the full issue template otherwise gotta close this one.
from reactiveui.samples.
See https://github.com/reactiveui/ReactiveUI.Samples/issues/new?assignees=&labels=bug&template=bug_report.md&title=%5BBUG%5D+Summary+of+item for an example
from reactiveui.samples.
@glennawatson issues have been fixed
from reactiveui.samples.
Hi @suc8899 can you try to remove
initialValue: Enumerable.Empty<ItemDto>()
From ItemsViewModel.cs, line 88 ?
from reactiveui.samples.
@rallets I have tried it, the problem is still not solved
from reactiveui.samples.
@glennawatson not sure why, but now the code that was working, it throws an exception. It's related to the property being an IEnumerable, but the ListBox DataBinding is expecting a IList or IListSource. All the packages are up to date. I have a fix that consists in replacing IEnumerable to IList, but I'm wondering if you have any tips on what this can be related to, or if it's a smell of another problem.
I have sent a PR #542 that fixes the problem. @suc8899 if you want you can try that branch.
The exception is:
PropertyBinderImplementation: view.lstDetails.DataSource Binding received an Exception! - System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.ArgumentException: Complex DataBinding accepts as a data source either an IList or an IListSource. (Parameter 'value')
at System.Windows.Forms.ListControl.set_DataSource(Object value)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Span`1& arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
at System.Reflection.RuntimeMethodInfo.InvokeOneParameter(Object obj, BindingFlags invokeAttr, Binder binder, Object parameter, CultureInfo culture)
at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture)
at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, Object[] index)
at ReactiveUI.PropertyBinderImplementation.<>c__DisplayClass11_0`3.<BindToDirect>g__SetThenGet|0(Object paramTarget, Object paramValue, Object[] paramParams) in /_/src/ReactiveUI/Bindings/Property/PropertyBinderImplementation.cs:line 296
at ReactiveUI.PropertyBinderImplementation.<>c__DisplayClass11_0`3.<BindToDirect>b__7(<>f__AnonymousType0`2 x) in /_/src/ReactiveUI/Bindings/Property/PropertyBinderImplementation.cs:line 318
at System.Reactive.Linq.ObservableImpl.Select`2.Selector._.OnNext(TSource value) in /_/Rx.NET/Source/src/System.Reactive/Linq/Observable/Select.cs:line 39
from reactiveui.samples.
Possibly an update with .NET 6? Seems to be a hard requirement by winforms anyway.
Thanks for your fix, @suc8899 if you can confirm if that merge fixes it for you?
from reactiveui.samples.
Thanks @suc8899 closing the issue now
from reactiveui.samples.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
from reactiveui.samples.
Related Issues (20)
- Add better blazor samples HOT 2
- Request for Generic Host (.NET Core 3) + Prism + WPF sample - Can contribute HOT 2
- [BUG] Uno Samples Don't Load In Visual Studio HOT 1
- [BUG] Update Xamarin Forms Samples to work with latest Xamarin HOT 4
- sample of wpf in .net5 HOT 1
- ReactiveDemo for WPF throws Null exception HOT 1
- feature: More advanced Blazor examples HOT 1
- feature: Title HOT 2
- [BUG] ReactiveUI.Samples.Commands example not showing how to bind command CanExecute property
- [BUG] Commands names violates documented convention
- ASP MVC Core Sample for widget with graph
- [BUG] ReactiveUI.Samples.Routing101 does not compile HOT 1
- WinForms example update to .net Core 6 and latest C# functionality HOT 2
- WinForms - new demo project HOT 3
- [BUG] Sample code from Handbook is not working HOT 1
- Please add a simple loading label while NuGet records are retrieved
- Does ReactiveUI have any sample documentation for F# projects? HOT 8
- Poor Developer Experience Arising from Single Solution Across All Samples HOT 3
- Dependency Dashboard
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reactiveui.samples.