Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WCF and WF
  4. Difference between Custom control and UserControl

Difference between Custom control and UserControl

Scheduled Pinned Locked Moved WCF and WF
tutorial
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    krishnan s
    wrote on last edited by
    #1

    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

    K A 2 Replies Last reply
    0
    • K 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

      K Offline
      K Offline
      krishnan s
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • K 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

        A Offline
        A Offline
        AshimMajumder
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups