Comments (3)
This wasn't implemented before because as I remembered it, the ICommand was defined in the WPF-specific PresentationCore.dll; but I only found out now that the interface was duplicated in System.dll since .NET 4.5. So, thank's, this will be looked into for the next release.
from dotnetify.
Support for ICommand has been added in the master. Examples provided in https://github.com/dsuryd/dotNetify-app-template.
from dotnetify.
I cant't get the vmCommand work inside a subclass as you did in the app-template with the MenuItemDTO.
The other Properties like Text are working as expeted, but the vmCommand won't get through when using a bool Property or an ICommand. However, when binding to a Property or ICommand directly inside the Viewmodel it is working.In my case I got a
List<SButtons>
. The SButtons contains a Text Property and an ICommand. I am binding to each Element of the List separatly.My html code looks like this:
<button data-bind="text: SButtons()[0].Text, vmCommand: SButtons()[0].ClickCommand" type="button" class="btn btn-default"></button>
Edit: I think it the way you handle Lists. I am now using fixed DTOs instead of a List and it is working correctly.
from dotnetify.
Related Issues (20)
- connection disconnected with chrome tab inactive or chrome minimized HOT 3
- Documentation site down HOT 3
- v5.2 no signalr hub connection with older chrome version HOT 3
- Vue 3 sfc setup example
- [Feature] Calling non void method with results HOT 2
- like hubServerUrl in Web API Mode HOT 2
- Coexist React / MVC in the same project. HOT 4
- React and npm packages HOT 3
- Is it required to use AddControllersAsServices? HOT 4
- no $dispatch in vm HOT 1
- Ability to pass multiple arguments to a function $disptach call HOT 4
- async invocation with less repeated code & error handling HOT 2
- Adding IAsyncDisposable to ViewModels
- Request for generic js library HOT 2
- Update NpgSql to lib 7.0.2 in DotNetifyLib.Postgres HOT 1
- The 5.4 version creates several Timeouts without cleaning up HOT 1
- how to get OldRow during an update HOT 1
- Is there a way to set the serverTimeoutInMillseconds setting? HOT 2
- PushUpdates causes all viewmodels of same client instance to push the changes HOT 3
- Replication by dotNetify is missing some inserts
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 dotnetify.