You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What feature or improvement do you think would benefit the app?
Warning
This page contains material that is kept because it is considered humorous.
Such material is not meant to be taken seriously.
Here's an idea: IntializeComponentAttribute
Add it to your partial class to not need to do this.IntializeComponent() in the constructor (or even have a constructor!)
If you want to add anything else fancy into your constructor, the source generator attached to this attribute will break.
Though at a later date I might find a way to fix this.
Requirements
Decide where attribute class should go
Add attribute class
Add source generator
Version
No response
API Changes
[InitializeComponent]publicsealedpartialclassMyPage:Page{// Implementation here, NO constructor!!}
Intended Use-Case
This is mostly a joke, but can be used to make code look cleaner.
You could even do
[assembly:IntializeComponent]
to have it apply everywhere.
Comments
No response
Example usage:
usingRiverside.Extensions;// or whatever namespace the generator will be inusingWindows.UI.Xaml;usingWindows.UI.Xaml.Controls;namespaceMyNamespace;[InitializeComponent]publicpartialsealedclassMyUserControl:UserControl{}
What feature or improvement do you think would benefit the app?
Warning
This page contains material that is kept because it is considered humorous.
Such material is not meant to be taken seriously.
Here's an idea:
IntializeComponentAttributeAdd it to your partial class to not need to do
this.IntializeComponent()in the constructor (or even have a constructor!)If you want to add anything else fancy into your constructor, the source generator attached to this attribute will break.
Though at a later date I might find a way to fix this.
Requirements
Version
No response
API Changes
Intended Use-Case
This is mostly a joke, but can be used to make code look cleaner.
You could even do
to have it apply everywhere.
Comments
No response
Example usage:
This would generate the following code: