зеркало из https://github.com/microsoft/cppwinrt.git
Clarify how InitializeComponent works in the template comment (#1435)
This commit is contained in:
Родитель
64d2a52dd5
Коммит
c5e0aaeb53
|
@ -9,6 +9,7 @@ namespace winrt::$rootnamespace$::implementation
|
|||
$safeitemname$()
|
||||
{
|
||||
// Xaml objects should not call InitializeComponent during construction.
|
||||
// If a Xaml object needs to access a Xaml property during initialization, it should override InitializeComponent.
|
||||
// See https://github.com/microsoft/cppwinrt/tree/master/nuget#initializecomponent
|
||||
}
|
||||
|
||||
|
|
|
@ -13,6 +13,7 @@ namespace winrt::$rootnamespace$::implementation
|
|||
$safeitemname$()
|
||||
{
|
||||
// Xaml objects should not call InitializeComponent during construction.
|
||||
// If a Xaml object needs to access a Xaml property during initialization, it should override InitializeComponent.
|
||||
// See https://github.com/microsoft/cppwinrt/tree/master/nuget#initializecomponent
|
||||
}
|
||||
|
||||
|
|
|
@ -9,6 +9,7 @@ namespace winrt::$safeprojectname$::implementation
|
|||
MainPage()
|
||||
{
|
||||
// Xaml objects should not call InitializeComponent during construction.
|
||||
// If a Xaml object needs to access a Xaml property during initialization, it should override InitializeComponent.
|
||||
// See https://github.com/microsoft/cppwinrt/tree/master/nuget#initializecomponent
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче