Home > Net >  WPF reference custom controls, xaml can't use the Name attribute
WPF reference custom controls, xaml can't use the Name attribute

Time:10-18

I recently new WPF, now quote a custom controls in xaml, but after using the name attribute compiler error CS0426, is not an error, not apply to the following map:
 
XMLNS: Meter="CLR namespace: Temperature; The assembly=Temperature "


CodePudding user response:

X: Name="* * *"

CodePudding user response:

1/f, reference program case reply:
with x: Name="* * *"

Tried, no, custom controls inheritance is Button, use the Click now also complains

CodePudding user response:

WPF custom controls and user controls there is a difference between oh, check it,
  •  Tags:  
  • C #
  • Related