Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">

<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
<Button x:Name="myButton" Click="myButton_Click">Click Me</Button>
</StackPanel>
<Grid>

</Grid>
</Window>
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,5 @@ public MainWindow()
{
this.InitializeComponent();
}

private void myButton_Click(object sender, RoutedEventArgs e)
{
myButton.Content = "Clicked";
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,4 @@ namespace winrt::$safeprojectname$::implementation
{
InitializeComponent();
}

int32_t MainWindow::MyProperty()
{
throw hresult_not_implemented();
}

void MainWindow::MyProperty(int32_t /* value */)
{
throw hresult_not_implemented();
}

void MainWindow::myButton_Click(IInspectable const&, RoutedEventArgs const&)
{
myButton().Content(box_value(L"Clicked"));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ namespace winrt::$safeprojectname$::implementation
struct MainWindow : MainWindowT<MainWindow>
{
MainWindow();

int32_t MyProperty();
void MyProperty(int32_t value);

void myButton_Click(Windows::Foundation::IInspectable const& sender, Microsoft::UI::Xaml::RoutedEventArgs const& args);
};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@ namespace $safeprojectname$
runtimeclass MainWindow : Microsoft.UI.Xaml.Window
{
MainWindow();
Int32 MyProperty;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">

<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
<Button x:Name="myButton" Click="myButton_Click">Click Me</Button>
</StackPanel>
<Grid>

</Grid>
</Window>
9 changes: 4 additions & 5 deletions dev/VSIX/ProjectTemplates/UWP/CSharp/BlankApp/MainPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@
xmlns:local="using:$safeprojectname$"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
mc:Ignorable="d">

<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
<Button x:Name="myButton" Click="myButton_Click">Click Me</Button>
</StackPanel>
<Grid>

</Grid>
</Page>
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,5 @@ public MainPage()
{
this.InitializeComponent();
}

private void myButton_Click(object sender, RoutedEventArgs e)
{
myButton.Content = "Clicked";
}
}
}
15 changes: 0 additions & 15 deletions dev/VSIX/ProjectTemplates/UWP/CppWinRT/BlankApp/MainPage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,4 @@ namespace winrt::$safeprojectname$::implementation
{
InitializeComponent();
}

int32_t MainPage::MyProperty()
{
throw hresult_not_implemented();
}

void MainPage::MyProperty(int32_t /* value */)
{
throw hresult_not_implemented();
}

void MainPage::myButton_Click(IInspectable const&, RoutedEventArgs const&)
{
myButton().Content(box_value(L"Clicked"));
}
}
5 changes: 0 additions & 5 deletions dev/VSIX/ProjectTemplates/UWP/CppWinRT/BlankApp/MainPage.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@ namespace winrt::$safeprojectname$::implementation
struct MainPage : MainPageT<MainPage>
{
MainPage();

int32_t MyProperty();
void MyProperty(int32_t value);

void myButton_Click(Windows::Foundation::IInspectable const& sender, Microsoft::UI::Xaml::RoutedEventArgs const& args);
};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@ namespace $safeprojectname$
runtimeclass MainPage : Microsoft.UI.Xaml.Controls.Page
{
MainPage();
Int32 MyProperty;
}
}
6 changes: 3 additions & 3 deletions dev/VSIX/ProjectTemplates/UWP/CppWinRT/BlankApp/MainPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">

<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
<Button x:Name="myButton" Click="myButton_Click">Click Me</Button>
</StackPanel>
<Grid>

</Grid>
</Page>