Comments (2)
Hey @TysonMN !
Thanks a lot for your rapid responds. I actually had an epiphany yesterday and managed to solve the main problem I had.
Solution that I in the end went for was to add a custom dependeny property to my ribbon usercontrol and register the navigationfame to it.
then when the button was pressed I passed this property to the command parameter and convert is in Binding.cmdParam.
This way everything stays pure and the gui element stays in the xaml file.
I have considered the visibility thing, but I rather would not do that, since well.... It just does not seems like the nicest solution to me hahahaha.
from elmish.wpf.
I understand that you can't share your code from work.
Can you create a minimal working example though?
Ideally you could also simulate the slow performance, but it would be helpful even if you skipped this part for now.
The one approach I also took when building a WPF application (with or without Elmish.WPF) was to always create all possible views and then use the Visibility
properties to only show the one I want the user to see. With this approach, I expect switching between views should be rather instantaneous.
Have you tried that approach?
from elmish.wpf.
Related Issues (20)
- Elmish.Avalonia HOT 2
- subModelWin issue passing a parameter HOT 11
- Binding.TwoWay setter with parameters given from xaml HOT 6
- Why use data typed tuple compared to struct tuples? HOT 1
- Documentation doesn't specify how to define Program.main using typed view model classes HOT 3
- How to send a message to the Dispatcher from a custom event? HOT 2
- Feature request: View model member exposed as Action<T> HOT 2
- How to enable the user to find a TreeViewItem HOT 29
- How to update binding after validation HOT 4
- (resolved-delete)
- 3rd-party custom Window : Building fine but not showing at runtime HOT 8
- Best way to implement "Statically-typed view model" approach? HOT 5
- Drop targeting of .NET Core 3.1? HOT 1
- [Scaling] - Lenses and Submodels: MVU antipatterns? HOT 5
- How to force Binding.addValidation upon returning to wpf usercontrol? HOT 3
- WPF Helpers: GetFocusedElement, GetSelectedElement(s), DragDrop, etc. :: A global approach :: HOT 1
- ApplicationAlreadyRunning Exception HOT 4
- How to create static `OneWaySeq` binding? HOT 6
- Static vs Dynamic bindings performance HOT 13
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 elmish.wpf.