user controls - WPF Set usercontrol property from outside -


my user control has slider. use control in view , want assign value property of outside. this:

<uc:myusercontrol verticalalignment="bottom" margin="8,8,8,0" slider.value="{binding...}"/> 

what syntax ?

thank :)

there no syntax externally reference control within usercontrol; usercontrol black box, , nobody on outside should need know structure.

if need provide property when instantiating usercontrol, declare new dependencyproperty on usercontrol, , bind slider's value property.


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -