Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
MostHated opened this issue Nov 7, 2018 · 3 comments
Closed

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

MostHated opened this issue Nov 7, 2018 · 3 comments

Comments

@MostHated
Copy link

MostHated commented Nov 7, 2018

----- 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
Copy link
Author

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

@MostHated MostHated reopened this Nov 7, 2018
@MostHated
Copy link
Author

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
Copy link
Owner

bugthesystem commented Jan 11, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants