بنقرة واحدة
uno-mvux-commands
Create and use commands in MVUX for user interactions.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Create and use commands in MVUX for user interactions.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Create and use IFeed<T> for async data in MVUX.
Display async feed data with FeedView control.
Create and use IListFeed<T> for reactive collections in MVUX.
Create and use IListState<T> for mutable reactive collections in MVUX.
Use messaging to sync MVUX states with entity changes.
Understand MVUX (Model-View-Update-eXtended) architecture in Uno Platform.
| name | uno-mvux-commands |
| description | Create and use commands in MVUX for user interactions. |
| when_to_use | Use when binding a Button (or other control) to a method on the Model, understanding how methods become commands in the generated ViewModel, passing feed/state values as parameters to commands, controlling which methods generate commands (implicit vs explicit), or disabling command generation for specific methods. |
| metadata | {"author":"uno-platform","version":"2.4","category":"mvux"} |
Docs lookup: call
uno_platform_docs_search(...)first, thenuno_platform_docs_fetch(sourcePath="…")using thesourcePathfield from a result (a relative.mdpath; add the result'sanchorfor a section). Never pass a URL, a.htmllink, or a hand-built path.
Search for and fetch the commands documentation:
uno_platform_docs_search("MVUX commands automatic generation method invocation")
Primary documentation pages:
external/uno.extensions/doc/Learn/Mvux/Advanced/Commands.mdexternal/uno.extensions/doc/Learn/Mvux/Walkthrough/Commands.howto.mdFetch the reference page for complete details:
uno_platform_docs_fetch(sourcePath="external/uno.extensions/doc/Learn/Mvux/Advanced/Commands.md")
From the fetched docs, any public method on a Model automatically becomes a command in the generated ViewModel. The reference page covers:
CommandParameter from XAML[ImplicitCommands] attribute to enable/disable generationFor step-by-step examples:
uno_platform_docs_fetch(sourcePath="external/uno.extensions/doc/Learn/Mvux/Walkthrough/Commands.howto.md")
This covers creating basic commands, using feed values in commands, can-execute logic, and disabling command generation.
If the user needs manual control over commands, the reference page has an "Explicit command creation" section covering Command.Create(...).
IFeed<T>, IListFeed<T>, IState<T>, IListState<T>) — the matching parameter receives a snapshot of the current value.IState<T> and IListState<T> expose UpdateAsync / AddAsync / RemoveAsync. IFeed<T> and IListFeed<T> are read-only — calling .Update(...), .UpdateAsync(...), .AddAsync(...), or .RemoveAsync(...) on an injected IListFeed/IFeed is a compile error.IListState<T> (not IListFeed<T>); convert with ListState.FromFeed(this, sourceFeed) if needed.UpdateAsync, the updater must be pure — derive the new value solely from the current value, with no captured external state or side effects. See [[uno-mvux-state-basics]] and [[uno-mvux-liststate]] for details.*Model partial record generates a command in the ViewModelIAsyncCommand — they handle async properly[ImplicitCommands(false)] on a Model to disable automatic generationCommand="{Binding MethodName}"Save() → Save command)