Hi,
Thanks for the response. Sure!
I have a project library with a FluentRibbonView : UserControl, IView:
To check to see if its working I placed a Debug.WriteLine("FluentRibbonViewModel instantiation"); in the ViewModel's constructor.
Thanks for the response. Sure!
I have a project library with a FluentRibbonView : UserControl, IView:
<UserControl
x:Class="NathsarTS.FluentRibbon.Views.FluentRibbonView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:Fluent="clr-namespace:Fluent;assembly=Fluent"
xmlns:Mvvm="clr-namespace:Microsoft.Practices.Prism.Mvvm;assembly=Microsoft.Practices.Prism.Mvvm.Desktop"
Mvvm:ViewModelLocator.AutoWireViewModel="True"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="1064">
<Fluent:Ribbon >
<!--Backstage-->
<Fluent:Ribbon.Menu>
<Fluent:Backstage>
</Fluent:Backstage>
</Fluent:Ribbon.Menu>
<!--Tabs-->
<Fluent:RibbonTabItem Header="Tab">
<Fluent:RibbonGroupBox Header="Group">
<Fluent:Button Name="buttonGreen" Header="Green" Icon="Images\Green.png" LargeIcon="Images\GreenLarge.png" />
<Fluent:Button Name="buttonGray" Header="Grey" Icon="Images\Gray.png" LargeIcon="Images\GrayLarge.png" />
</Fluent:RibbonGroupBox>
</Fluent:RibbonTabItem>
</Fluent:Ribbon>
</UserControl>
I will be injecting into the Shell : RibbonWindow, IView (Above). The FluentRibbonView has a FluentRibbonViewModel : BindableBase, but its not finding the ViewModel. The file structure is named properly as the Shell's.To check to see if its working I placed a Debug.WriteLine("FluentRibbonViewModel instantiation"); in the ViewModel's constructor.
Step into: Stepping over non-user code 'NathsarTS.Master.App..ctor'
Step into: Stepping over non-user code 'NathsarTS.Master.App.Main'
Step into: Stepping over non-user code 'NathsarTS.Master.App.InitializeComponent'
ShellViewModel instantiation
CommonModule Constructor instantiation
CommonModule instantiation
CommonModule LoadModuleCompleted
FluentRibbonModule Constructor instantiation
FluentRibbonModule instantiation
CommonModule LoadModuleCompleted
FluentRibbonModule LoadModuleCompleted
TurahStudyUIModule Constructor instantiation
TurahStudyUIModule instantiation
CommonModule LoadModuleCompleted
FluentRibbonModule LoadModuleCompleted
TurahStudyUIModule LoadModuleCompleted
Everything works fine except the UserControl is not finding its ViewModel.