Create a New Project in MS Blend and name it whatever you want.
Now Add a New User Control by just clicking on to the project and add new user control and name it according to your requirement.
Now go to the back end file of this user control and add some dependency properties by just typing propdb and just press the Tab two times . Boom ! that's a new shortcut for creating a dependency property.
Now for Rectangle you must have to name the property that you want to add in custom control.In my case I just want to add a Brush property of a rectangle therefore I simply add a Brush property.After this you would have to change the name of owner class to your usercontrol name and set metadata to null .Same is the case with TextBlock and Image.The only difference is the property name and type.For TextBlock you have to set the type string and for Image you have to set the ImageSource property.












Ammar ShaukatPosted Feb 17, 2016, 2:05 AM
what is the difference between user control and custom controls
Ammar ShaukatPosted Feb 15, 2016, 10:17 AM
good share . but add gif images in your blog post to make it more readable and consize