Home > Net >  How WPF templated?
How WPF templated?

Time:10-17

 

Everyone a great god, and the above Button to be many, including * * * each is different, how to do ability to reduce the amount of code,

CodePudding user response:

Command eventually calls a method, you can point to the same command all the button, and then through the method to distinguish the invoke commandparameter logic can,

CodePudding user response:

 & lt; The StackPanel Height="200" & gt; 

<style TargetType="Button" & gt;
</style>

CodePudding user response:

 & lt; Command1 Button Command="" Height=" 100 "Width=" 100 "& gt; 
  •  Tags:  
  • C#
  • Related