bugthesystem / Caliburn.Metro

A library that combines MahApps.Metro with Caliburn.Micro for Metro UI styled WPF applications.
The Unlicense
111 stars 47 forks source link

View is in "View" folder but can't find it. #13

Closed MostHated closed 5 years ago

MostHated commented 5 years ago

----- Got this part figured out!

Hello there, I apologize as I am just learning. I created a new application and compared it to the normal basic demo, but I was trying to put my AppView into a folder called "View" and I believe somewhere I am supposed to specify that the view is now located in the View folder but I can't for the life of me figure out where.

In MetroWindow CreateCustomWindow it has

    public override MetroWindow CreateCustomWindow(object view, bool windowIsView)
    {
        if (windowIsView)
        {
            return view as MainWindowContainer;
        }

        return new MainWindowContainer
        {
            Content = view
        };
    }

but I can't seem to figure out quite how to do it. I tried to do:

            Content = "View/" + view

but then in the application that just ends up displaying text of "View/System.Windows.Controls.TextBlock". Might anyone have any insight? I know it is probably something super simple, but I just can't figure out where to add "View/".

Thanks, -MH

MostHated commented 5 years ago

Oh, also, was there a link to documentation? I have not been able to locate one.

MostHated commented 5 years ago

I got the first part figured out, I didn't realize that the folders had to specifically be named "View(s)" and "ViewModel(s)", plural. That is fine. I still am wondering though if there is any documentation on any specifics of this particular package, as opposed to just Mahapps or Caliburn.Micro?

bugthesystem commented 5 years ago

Hi @MostHated, thank you for your interest to lib. This is an integration package, for further details please consider Mahapps or Caliburn.Micro documentation.