Difference between Custom control and UserControl
-
Hi, I need to understand the difference between the custom control and the user control . Can anyone please give me some example on the difference and when should i go for usercontrol. Thanks Krishnan.S
-
Hi, I need to understand the difference between the custom control and the user control . Can anyone please give me some example on the difference and when should i go for usercontrol. Thanks Krishnan.S
Hi, As far i searched it is said that UserControl cannot be templated, While the Usercontrol as a whole cannot be templated the individual controls that make the UserControl can be assigned a style right . For ex. If i have a slider control with the following: 1. 2 Repeat buttons ( for the repeat buttons) 2. One Image control ( for the track) In this case i can customize the buttons and the image control right using its styles and templates. Please correct me if iam wrong Thanks Krishnan.S
-
Hi, I need to understand the difference between the custom control and the user control . Can anyone please give me some example on the difference and when should i go for usercontrol. Thanks Krishnan.S
The important distinction from developer standpoint is that,user control provides a designable surface at design time, but Custom control don't. While creating Custom Control, there will be no xaml part, only code.