File tree Expand file tree Collapse file tree 3 files changed +3
-0
lines changed
ProjectTemplates/VC/Windows Universal/BlankApp Expand file tree Collapse file tree 3 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ namespace winrt::$rootnamespace$::implementation
9
9
$safeitemname$()
10
10
{
11
11
// Xaml objects should not call InitializeComponent during construction.
12
+ // If a Xaml object needs to access a Xaml property during initialization, it should override InitializeComponent.
12
13
// See https://github.com/microsoft/cppwinrt/tree/master/nuget#initializecomponent
13
14
}
14
15
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ namespace winrt::$rootnamespace$::implementation
13
13
$safeitemname$()
14
14
{
15
15
// Xaml objects should not call InitializeComponent during construction.
16
+ // If a Xaml object needs to access a Xaml property during initialization, it should override InitializeComponent.
16
17
// See https://github.com/microsoft/cppwinrt/tree/master/nuget#initializecomponent
17
18
}
18
19
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ namespace winrt::$safeprojectname$::implementation
9
9
MainPage ()
10
10
{
11
11
// Xaml objects should not call InitializeComponent during construction.
12
+ // If a Xaml object needs to access a Xaml property during initialization, it should override InitializeComponent.
12
13
// See https://github.com/microsoft/cppwinrt/tree/master/nuget#initializecomponent
13
14
}
14
15
You can’t perform that action at this time.
0 commit comments