locked
Style ControlTemplates RRS feed

  • Question

  • Hello,

    if I create a button for example in my MainPage and right click it, choosing "Make Into Control...", a style with a ControlTemplate will be created. Is there any chance to attach C# code to this ControlTemplate?

    Do I have any other chances to attach some additional C# code to a Template of a "standard control" (button, image,...)?

    Thanks in advance,

    Max


    Wednesday, March 30, 2011 5:57 AM

All replies

  • You would need to make a lookless control that inherits from the button control. There's a good tutorial here that runs through the basics of it better than I can :)
    Leon Terry
    TFK Labs | Twitter
    • Proposed as answer by VLTII Wednesday, March 30, 2011 1:42 PM
    Wednesday, March 30, 2011 1:41 PM