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
99 $safeitemname$()
1010 {
1111 // 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.
1213 // See https://github.com/microsoft/cppwinrt/tree/master/nuget#initializecomponent
1314 }
1415
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ namespace winrt::$rootnamespace$::implementation
1313 $safeitemname$()
1414 {
1515 // 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.
1617 // See https://github.com/microsoft/cppwinrt/tree/master/nuget#initializecomponent
1718 }
1819
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ namespace winrt::$safeprojectname$::implementation
99 MainPage ()
1010 {
1111 // 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.
1213 // See https://github.com/microsoft/cppwinrt/tree/master/nuget#initializecomponent
1314 }
1415
You can’t perform that action at this time.
0 commit comments