Skip to content

Commit 624ef1a

Browse files
authored
Update readme.md with InitializeComponent details
Clarified behavior of InitializeComponent with parameters and its impact on XAML runtime callbacks.
1 parent b85ef19 commit 624ef1a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎nuget/readme.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ void MyComponent::InitializeComponent()
115115
}
116116
```
117117

118-
InitializeComponent can also have parameters, and its parameters must be equal to the parameters of the corresponding constructor. When a constructor is called, the InitializeComponent that has the same parameters as it, or that has zero parameters, will also be called, preferring the one with the same parameters as the constructor.
118+
InitializeComponent can also have parameters, the arguments passed to the constructor will also be attempted for use in calling InitializeComponent. If no such overload exists, it will fall back to calling InitializeComponent without arguments.
119119

120120
***[Windows|Microsoft]::UI::Xaml::Markup::ComponentConnectorT***
121121

0 commit comments

Comments
 (0)