<style: x Key="ListItemStyle TargetType"="{x: Type ListBoxItem}" & gt;</style>
Compile Error: Error 1 The attribute 'ConnectionId' from The XAML namespace is not defined. What is The problem? How to solve, thank you,
CodePudding user response:
Forgot to say, this code is ILSpy decompiling, general window only IComponentConnector interface, but also in this code implements another interface IStyleConnector,[EditorBrowsable (EditorBrowsableState. Never), DebuggerNonUserCode]
Void IStyleConnector. Connect (int connectionId, object, target)
{
If (connectionId==2)
{
((Button) target). Click +=new RoutedEventHandler (enclosing EntranceButton_Click);
return;
}
The switch (connectionId)
{
Case 6:
((Button) target). Click +=new RoutedEventHandler (enclosing OpenProjectFile_Click);
return;
Case 7:
((Button) target). Click +=new RoutedEventHandler (enclosing DeleteProjectFile_Click);
return;
Default:
return;
}
}