Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

WPF SWITCH VIEWS FROM A SINGLE BUTTON COMMAND ON A CONTENTPRESENTER

$
0
0

Hello guys,

I have a big-simple problem and I do not know how to solve it. I want to change simple the "View" content from a "TabItem" with a Command. First of all I will post a link to my project, I have tried different things that I have found online like a "DataTemplateSelector" and etc, but I could not find the right solution for my problem, so I will post the project as "Clean" this means that I have made the bindings, I use a "Delegate" class for my "Commands" and a "ViewModelBase" for my "INPC". I have also Posted an Image that I can show to you the structure that I am following for my Project. So, the first question is ofc obvious (How can I change the Views with the buttons...). The second question is, do I need a Framework to archive a such think? I mean I have seen that on "MVVMLight" is a Class Locator and makes an instance of every "ViewModel" i think. I have not tried it yet because I am new and I want to understand the "MVVM" and "WPF". If I need a Framework which would be perfect and would help me a lot? Third is there a complete example so i can understand how this situation is working?

Here is the image for the structure of my App:

[http://s4.postimg.org/jgxfknt3g/How_Ican_Change_All_This_Windows_Witha_Command_Only.jpg]

&

Here is the link of my Project:
[http://www54.zippyshare.com/v/14239903/file.html (7zip)]

Thanks in advance!





Viewing all articles
Browse latest Browse all 18858

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>