Skip to content

Instantly share code, notes, and snippets.

@kennykerr
Created May 3, 2021
Embed
What would you like to do?
#[implement(
extend Windows::UI::Xaml::Application,
override OnLaunched,
Windows::Foundation::IStringable,
)]
struct App {
}
impl App {
fn OnLaunched(&self, _: &LaunchActivatedEventArgs) -> Result<()> {
let window = Window::Current()?;
window.SetContent(TextBox::new()?)?;
window.Activate()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment