Repository navigation
Description
What would you like clarification on
I am tired of constantly repeating my Instructions (even when written in copilot-instructions.md 👀 ) for my Mvux + Navigation Extensions using apps and the Docs could also get some important Remarks / Information for new Uno Dev's to avoid running into this sort of issues:
- Do NOT attempt to use
DataContextChangedin codebehind withVM = args.NewValue as MyModel(!! yes Agent repeatantly used the Model not the Mvux generatedMyViewModeland even reverting my code, when I correct it myself)- Blocked by reference - these are just some of the Issues that making it not recommendable for a Stable Runtime to use the correct VM cast:
- [Bug] DataContext null on first launch, works after Hot Reload (ViewMap timing issue) #2985
- [MVUX][Navigation][Serilog][Logging] Provide a way to get the Serilog.ILogger in View Code-Behind #2976
- Clarify that Page navigation does not guarantee that the DataContext is initialized when the Page is loaded #2629
(still current since I started with Uno end of 2024!)
- (Copilot FAILS at the moment to use Github MCP Tools for even fetching raw url (VS202 + VS Code), if you dont have a API Key set up)*
- Blocked by reference - these are just some of the Issues that making it not recommendable for a Stable Runtime to use the correct VM cast:
**Could the MCP teching team please add those information to the Agent Instructions?
I am no Prompt Engineer ;) this here is only a summary of what I commonly need to repeat 5x per Day 🥴
- ALLWAYS prefer for Binding Szenarios via
Command's over EventHandlers, via Xaml to the Methods/Properties in the Model instead of Codebehind, where applicable.
IMPORTANT!:-
You may not find the generated MyViewModel Definition. This is not important for your Work proceeding, you don't need to lookup this.
-
You will prefer
Bindingfrom Command/Property overx:Bindexcept from your Binding is UI internal (Control -> Control) and not Binding to the underlying Model -
When working in VS2026 IDE in is having a known issue which causes wrong linted
x:Bindas "unknown MarkupExtension", assume this as not the case, as long as you can find the regularxmlns x:defined on top of the Xaml file. The known syntax did not change. You MUST request the Uno docs MCP tools for guidance on how you can and should be using x:Bind in Uno Platform Apps. -
Your approach for this (in this order!):
- The Interaction in UI is including User Input like Keyboard Interactions -> Request Uno Docs MCP for how to cleanly integrate this with MVUX (=> could the Uno Team please instruct it for this specifically recognizing before listed Issues with using the unrelyable DataContext and we can not use the
this.GetServiceProvider()please? 👀 ) - Check the Controls API for a already available
<MyControl>.Commandand (if you need Data transported) the.CommandParameterProperty.
IMPORTANT:
- Some Control API might describe this ICommand Property differently Named, in doubt lookup the Type of those Props with partial name containing
*Command! - Facing a
ListViewBaseimplementing Control likeListViewyou MUST not useItemClickedCommand, then will useutu:CommandExtensionsinstead, to avoid best Support for all Target Platforms
-
The Control is not covered by 1. AND my app is using (or allowed to become using - default: allowed) the Uno.Toolkit ("Toolkit" in UnoFeatures)
-
You MUST ask the Uno MCP Docs Tools, about its support for
<OtherControl utu:CommandExtensions( out of the Box) for which Property will automatically provided through theutu:CommandExtensions.CommandParameter. E.g. for Selection Supporting Controls, this is commonly theSelectedItem. in this case, you will NOT need to define this Parameter Binding future and can move to your next step in work. -
If
utu:CommandExtensions.CommandParameterdoesn't have future implementation for this control, you will Bind the Parameter in Xaml to the Property which value you need to be transfered, IF this is a DependencyProperty on the Control! -
Only if the previously listed Cases are not applicable, you may use Codebehind + Events
- The Interaction in UI is including User Input like Keyboard Interactions -> Request Uno Docs MCP for how to cleanly integrate this with MVUX (=> could the Uno Team please instruct it for this specifically recognizing before listed Issues with using the unrelyable DataContext and we can not use the
-
**Instructions that it also always forgets about, as soon as MVUX comes in the game:
- You MUST keep the View / (generated + untouch-able) ViewModel / (Data Layer) Model + evtl. Service and used "Model" representing Entity Types for e.g. immutable Data-Transport (similar to IOptions -> T) Layers clearly seperated and adhere to common coding Standards like DRY + SOLID + Clean Code + SoC.
- I will refer to "Model", when speaking about the Mvux used
MyModelto create theMyViewModel - If you are creating ContentDialog Definitions or (Inheriting from any other UI Control, not limited to CustomControl) assume this can also get a Model like a Page, so you MUST also register it in the
RegisterRouteslike such.
Concern?
- Usage in industry
- Clarification of capabilities
- Getting started with Uno
- Developing with Uno
- Contributing to the Uno project
- Publishing your application
- Support
- Other (please specify): Stable Applications, No sudden Exceptions coming from underlying Navigation implementation problems
For which Platform
- iOS
- macOS (AppKit)
- Mac Catalyst
- Android
- WebAssembly
- Windows
- Skia (WPF)
- Skia (GTK on Linux/macOS/Windows)
- Skia (Linux Framebuffer)
- Build tasks
- Development with Uno Platform Studio MCP Tools
Activity
DevTKSS commentedon Jan 9, 2026
@Jen-Uno FYI
not sure if you want to have it here, since the MCP knowledge strongly missing is coming from this repo here, or if you want to transfer it to the Studio Repo, but maybe you or the Studio Team want to take a look onto this, because those are many of the problems someone like me (MVUX + Uno Extensions Navigation + Xaml Uno App User) is facing while (trying to) developing with the Uno MCP's 🙁
currently, I would not be able to recommend:
using them for Mvux at all
.Empty(...)and.Value(...)initializers, but is not properly introduced in Existance and Usage of Operators!.Selection(...).ForEach(...)*especially lacking knowledge on properly handling its Callback in case of existing code!(thinking of my Santa App tryes) should not try having them build a Uno app from a Single Prompt + start with a brand new Templated Uno App:
I am unable to tell you (reproducable) situations that are not causing this issue. My first guess has been its because of the
MS:Compileautomatically added Tag in csproj, but even if I first check and remove any of them before allowing the agent to build my app, this happens still 🤔Would still be interested in the expected workflow or workaround for this 🤔
DevTKSS commentedon Jan 12, 2026
So yes, as you see all the issues we have with the current docs for the MCPs and the resulting issues when using both Extensions in the same app, it absolutly makes sense, in my Opinion, to have the Navigation Docs include seperated tabs for Mvux + Mvvm:
@Jen-Uno FYI. Hope we can improve both, Docs and MCP-using-Agents in the future beneath the pure benefit for those Users on Consumer side with low to none MVVM pre-knowledge, which should be the primary Docs target audience. Yes, when knowing MVUX longer at any point in the future, its more clear how to transfer our knowledge, but when Uno presents MVUX as alternative to MVVM, we should not make the Assumption to know this just because "it's almost the same" and our Samples and Guides in the Docs should have both aproaches included. E.g. the Dialogs Tabs can show you what I mean with "MVUX and MVVM are not the same just similar": https://platform.uno/docs/articles/features/dialogs.html?tabs=mvvm%2Cxaml
but the target should become to provide this tabbed content for fluentles working with Navigation Framework from Uno 👍
DevTKSS commentedon Mar 13, 2026
Hello @Jen-Uno & @jeromelaban @kazo0 : I would just like to bring this Problem and Limitations back into Mind and Attention of the Team please.
Sorry if sounding a bit rude in OP, from User/Consumer side it's just very frustrating seeing Uno advertise their "great" AI Toolset and their improvements, but on User Side, every time attempting to use it (HD Agent & MCP's for mentioned topics), the actual result with using e.g. OpenAI GPT 5.4 Model, it's not only breaking my Uno App before and at runtime (HR & HD) then also not capable of developing anything more MVUX Statemanagement Props/Callbacks then setting the
Value(and 50% of the time not even this along following Uno's Documented conventions ! ). Attempting to use something likeSelectionForEachorUpdateAsncetc. should (until the MCP is a lot better be NOT recommended to MCP Users to be attempted to used and marked as limited/no MCP support.And No, I did not use/try Models like Opus 4.5/4.6. It can not be your honest recommendation/solution for this, to the normal users, to use x3 Multiplyer , when the "normal" <=1x Multiplyer Models shows clear lack of knowledge findings in the MCP already!
Just honest feedback, but Potentially you want to inform the Webinar/Uno own Content creators too, that from User side, correctness is commonly preferenced from us, over "pretty words" for toolset capabilities?👍
Reference for this: On the last Webinar I attended (End of 2025 with the Holiday Contest) I strongly remember @francoistanguay told in the YouTube Live chat and @kazo0 the contest before, that from Uno side, there is no Problem using and doing the contests (our development resulting of this too), with MVUX + Uno MCP's, and I even attempted to "just" use Mvvm as potentially better known tool from the regular AI, but not even this was anything near flawless useable.
I would like you (Uno Team) to know too, that its not about beeing rude, then a User and OSS Contributor I would be really happy to be again able to show-and-tell, helping you to spread the word even future and support this great OSS Project and its tools provided, but as you might recognized, the ongoing issues () making it up from HD public release really really hard for me to do so filter them out, up to contantly having to Work-around them for Content Creation to not show this problems around instead.
Also, the PR review improvement Capabilities: Even if your Team would "just" react by comments, when beeing mentioned in issues/PR's, could you evaluate letting us Uno-External Contributors or even Users know about eventual still missing informations, progress, updated blocking issues or maybe something like a estimated time/version you potentially plan to tackle this?
That would be really awesome and bring lot's more transparency to those like me, who are currently kind of "left alone" or not hear anything again, only seeing very rare progress for months and years already.
The "stale" Issue / PR Bot should potentially not be seen as a "Solution" by having it "just close" Issues/PR's, which are awaiting response of the team. Other repos do make use of bots, relabeling then again to anything like "awaits response of maintainer" or whatever, that would potentially help the team then again, for filtering stuff to response?
The fewest Problems are solved/fixed by putting it into a box and putting the cover back on it. 😓
[-][MVUX][Navigation][Docs][MCP] Add information to make the MCP Agents aware of NOT use MVUX Models in the codebehind, especially not alongside with Extensions Navigation![/-][+][MVUX][Navigation][Docs][MCP] MCP Agents should not be used for developing MVUX Models, especially not alongside with Extensions Navigation![/+]kazo0 commentedon Mar 14, 2026
@DevTKSS Thanks for the feedback! We are actively looking into multiple avenues for ensuring reliability and enforcing proper patterns and practices when it comes to agentic development for Uno applications, including all of the first-party libraries in the ecosystem.
I'd like to better understand your workflow with AI and our MCP servers and try some things out with you to see what we can improve. I sent you a message on Discord if you want to connect :)