c# - WPF ContentControl inside another ContentControl not showing -


I have a content control window that I use to simulate a magician navigation that is working just fine . To rephire some code I have removed a form inside a Wizard of UserControl. I'm using the same window in the same way ...

UserControl which I have removed works fine on other windows (Not the wizard), but inside my UserControl inside the wizard ... I am using content controls in both situations ...

I do not get any error. .. i have debugged and constructor Programming has been called in both cases, but does not look like this in the wizard, just ..

The code from a simple window is:

  & lt; Control: MetroWindo x: Class = "Desktop.View. View File PropertiesModel" & gt; & Lt; Grid & gt; & Lt; ScrollViewer VerticalScrollBarVisibility = "visible" & gt; & Lt; Content Control X: Name = "Document PropertieslistWell Mode" / & gt; & Lt; / ScrollViewer & gt; & Lt; / Grid & gt; & Lt; / Control: MetroWindow & gt;  

and behind in my code manufacturer

  public DocumentPropertyListViewModel DocumentPropertyListViewModel {get; Set; } Public FilePropertiesViewModel () {this.DocumentPropertyListViewModel = New DocumentPropertyListViewModel (File.Properties, false); }  

The difference, as stated (not a real code, as a reference):

  & contentcontrol x: name = "wizard "& Gt; & Lt ;! - Lots of UserControls & gt; Loading & lt; Content Control X: Name = "Document PropertieslistWell Mode" / & gt; & Lt ;! - One of the UserControls has this - & gt; & Lt; / ContentControl>  
Another way

By the way, I am using Caliburn.Micro, that is why I am using ContentControl instead of a normal UserControl reference, I can not figure it out How to do ...

I'm wrong doing something here?

After the

you can give it a try ...

Amp; Content Control X: Name = "Wizard" & gt; & Lt; Content Control Cms: See. Model = "{Binding DocPropListViewProp}" /> & Lt; / ContentControl>

Where DocPropListViewProp is a viewmodel property of documentPropertyListViewModel in viewmodel

P> and in the code behind, my window is found in the public of DocumentPropertyListViewModel DocumentPropertyListViewModel; Set; } Public FilePropertiesViewModel () {this.DocumentPropertyListViewModel = New DocumentPropertyListViewModel (File.Properties, false); } Still bother with the above statement with the code piece that tells you the codebehind you had, what do you mean ViewModel

Also what containers are you using for the IOC: MEF, SimpleContainer, etc ...? nothing?


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -