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

Bind command to other viewmodel?

$
0
0

Hi,

i have a mainview+mainviewmodel (first image) and a flyoutvview+flyoutviewmodel (left side of second image)

when i click on the settingsbutton in the mainview, it executes the showsettingscommand and opens a new settingsview

is it possible to bind the command from my mainviewmodel to my flyoutview or do i need to write the same command in my flyoutviewmodel and bind it to my flyoutview?

i also have a viewmodelbase class where i have the current logged-in user

i set the currentuser in my mainviewmodel (already working) and i need to bind the currentuser to my flyoutview (how do i do this?)

Best Regards


Viewing all articles
Browse latest Browse all 18858

Trending Articles



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