Skip to content

Conversation

wjk
Copy link

@wjk wjk commented Mar 20, 2021

Inspired by #574.

@ghost ghost added the needs-triage label Mar 20, 2021
@dotMorten
Copy link
Contributor

Love it, except I don't get the point of the button. I'd prefer that to be removed too. It's throw away code. Don't add throw-away to a starter template.

@wjk
Copy link
Author

wjk commented Mar 20, 2021

The check failures regarding Helix appear to be because I’m a contributor outside of Microsoft, and as such do not have permission to kick off Helix runs (whatever they are), but the build tried anyway. We should take a look at this sometime.

@mrlacey
Copy link

mrlacey commented Mar 20, 2021

I see the arguments for making the changes, but I'd want to know the reasons behind adding that code originally before debating whether to remove it.

@riverar
Copy link
Contributor

riverar commented Mar 21, 2021

Agreed, feels like the changes here are purely subjective. At the very least, this should go through the proper workflow for public discourse. We've skipped that step here.

@wjk wjk force-pushed the better-default-templates branch from f4f747d to f81d716 Compare April 12, 2021 18:39
@wjk wjk force-pushed the better-default-templates branch from f81d716 to 53d850d Compare April 12, 2021 18:40
@jaigak
Copy link
Contributor

jaigak commented May 28, 2021

The C++ version of item templates and project templates seem to nest the source file as top-level if it doesn't have a XAML file rather than the IDL or header file. This is inconsistent with current templates included in the C++/WinRT VSIX and others built-in to Visual Studio.

@BenJKuhn
Copy link
Member

@MikeHillberg, can you review this PR or find someone to help drive it to closure?

@dotMorten
Copy link
Contributor

dotMorten commented Oct 8, 2021

Any update on this? The current template is driving me bonkers 😀

@aepot
Copy link

aepot commented Dec 7, 2021

Current templates confused me. Why I must clean-up xaml and code-behind before everything?

I'm using MVVM+IoC patterns which means no code-behind is needed, except ViewModel property. StackPanel instead of Grid looks suspicious too. First thought was "no Grid support?".

As SDK user I like the changes and suggest to merge the PR.

@jaigak
Copy link
Contributor

jaigak commented Nov 2, 2022

Templates now seem to include Microsoft copyright and MIT License notice? Any reason why this was done. It makes sense for generated files to be copyrighted, but templates shouldn't be (obviously you'll add your own code after creating an instance of the template and that's not copyrighted by Microsoft!).

@bpulliam
Copy link
Contributor

bpulliam commented Apr 3, 2023

Closing PRs that appear to have been abandoned.

@bpulliam bpulliam closed this Apr 3, 2023
@dotMorten
Copy link
Contributor

@bpulliam is this the process now? Ignore community PRs long enough for you to just call them abandoned?

@riverar
Copy link
Contributor

riverar commented Apr 3, 2023

Bob's closure of this PR is part of an slow moving effort to clean up the repository. This PR skipped the proper workflow (at the time) for public discourse/changes, has minor and subjective changes in it, and has had no real engagement since 2021. Seems like this fits the bill for closure to me.

If the author feels strongly about this change, I recommend opening an issue to discuss and get sign off before making template changes.

@bpulliam
Copy link
Contributor

bpulliam commented Apr 3, 2023

@riverar is right, but I also should add more context.

  1. This original intent of this PR is to change the templates in a pretty fundamental way - empty content vs single button content. This should be resolved in a discussion first, and then we can look at the PR. I do see a significant number of bug reports that use the template to attach some functionality to the button, and those would have to create content instead of having other remove it. These templates were based on C++ winrt templates so there is some history there. Not saying we can't change, but we should be deliberate about it.
  2. This also had become a catch-all for template issues. We have addressed some of those in Fix issues with template files #3324 and Change supportedOS guid to Win10 and improve comment #3493 already.
  3. You are absolutely correct that this conversation should have happened a year ago.

I am happy to have the conversation about this, or any other issue we resolve or close, as the goal is to bring additional clarity on those issues.

@jaigak
Copy link
Contributor

jaigak commented Apr 4, 2023

I do see a significant number of bug reports that use the template to attach some functionality to the button, and those would have to create content instead of having other remove it. These templates were based on C++ winrt templates so there is some history there. Not saying we can't change, but we should be deliberate about it.

Apart from bug reports, you are mostly going to delete them anyway. It's only wasting time for you. I did open a pull request to remove them from the C++/WinRT (UWP) templates but it was not merged due to not having enough people to main the VSIX. Windows App SDK, however, is well maintained and this change should be merged. Maybe as an example, the stack panel and button can be included in MainPage.xaml created with the project template, but not in item templates for page or user control.

@riverar
Copy link
Contributor

riverar commented Apr 4, 2023

@JaiganeshKumaran "Well maintained" [spits out coffee].

@jaigak
Copy link
Contributor

jaigak commented Apr 4, 2023

@riverar Sure is more well-maintained than C++/WinRT, which is done for now.

@dotMorten
Copy link
Contributor

dotMorten commented Apr 4, 2023

These templates were based on C++ winrt templates so there is some history there.

History? None of the WPF, UWP or WinForms templates ship with anything in them. They are blank and ready to throw content on. It's been like this for many many years.

But yes we should have an issue to discuss this in I guess. I was merely pointing out the messaging of having a PR discussed, then assigned to a Microsoft team member to follow it through, only to be closed years later after no one actually following through on it, and no explanation why it was closed besides "stale". It's a really bad messaging to send to community members who spent time trying to improve the SDK, and there's nothing the community could have done here to prevented it from going stale.

I do see a significant number of bug reports that use the template to attach some functionality to the button, and those would have to create content instead of having other remove it.

I love that the templates are optimized for bug reports, and not for productivity 😁

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

Successfully merging this pull request may close these issues.

9 participants