J'ai un UserControl
contenant un TextBox
, publié par une propriété "_TextBox". Comment puis-je définir une propriété d'un TextBox
Behavior
existant?Comment définir une propriété Behavior d'un TextBox dans un UserControl?
xmlns:WpfUC="clr-namespace:MyLib.WpfUserControls;assembly=MyAssembly"
xmlns:WpfBH="clr-namespace:MyLib.WpfBehaviors;assembly=MyAssembly"
<!--This is not compiling. Error message: Namespace prefix "_TextBox.WpfBH" not defined.-->
<WpfUC:MyUserControl _TextBox.WpfBH:MyTextBoxBehavior.MyProperty="MyValue" />
Pourquoi êtes-vous préfixant l'espace de noms avec '_TextBox'. Que signifie «publié par une propriété»? –