Skip to content

Instantly share code, notes, and snippets.

@ionoy
Created March 14, 2018 09:54
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ionoy/38a3e525170c1303099d42e7e40b2954 to your computer and use it in GitHub Desktop.
Save ionoy/38a3e525170c1303099d42e7e40b2954 to your computer and use it in GitHub Desktop.
// Attribute can be omitted if method name is exactly `InitializeContent`
[ContentInitializer]
public void InitializeContent() {
Content = new Grid {
...
};
}
@VincentH-Net
Copy link

This would work perfectly for me. Then you refresh on saving the file that contains this method? Could it also be a partial cs class file (not reqd but nice2have)?

@VincentH-Net
Copy link

This is what I want. Feel free to let me test it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment