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

Suggestion, generic Register method in WindowPlace #1

Open
ChuckSavage opened this issue Oct 21, 2017 · 1 comment
Open

Suggestion, generic Register method in WindowPlace #1

ChuckSavage opened this issue Oct 21, 2017 · 1 comment

Comments

@ChuckSavage
Copy link

If there's only ever one instance of a window, this would save creating a name for that window class. Suggest adding an additional Register method in WindowPlace, that'd look like:

public void Register<T>(T window) where T : Window
{
    Register(window, typeof(T).Name);
}

PS - Thanks for this project. In my limited testing, it works great.

@Boredbone
Copy link
Owner

I added that method. Thank you for suggesting.

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