c# - How to insert a valid control template -
here template created in resource dictionary
<style targettype="{x:type local:entrylabelbase}"> <setter property="template"> <setter.value> <controltemplate targettype="{x:type local:entrylabelbase}"> <border background="{templatebinding background}" borderbrush="{templatebinding borderbrush}" borderthickness="{templatebinding borderthickness}" > </border> </controltemplate> </setter.value> </setter> </style> and here usage of it.
<local:entrylabelbase content="username:" grid.row="1" grid.column="0" grid.columnspan="1" horizontalalignment="right" verticalalignment="center" fontsize="12" /> this bug getting.
'no matching constructor found on type 'spis_base.entrylabelbase'. can use arguments or factorymethod directives construct type.' line number '25' , line position '10'.
still new wpf. suggestions?
Comments
Post a Comment