Templated Custom Control

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Greetings & Salutations,

I have made a templated custom control (NOT data-bound), a container for the
templates & a designer for the control. After placing it on the form it
functions as expected, however I cannot edit the templates.

I have a Template Editing menu available that displays the templates I have
exposed, however when I click on a template to edit nothing happens.

I have found that the expected functions (GetTemplateContent &
CreateTemplateEditingFrame) do not get called at all. (I used
Debug.Assert(False) statements)

Since this is a pre-alpha control I have only done skeleton code for the
control/etc, but I followed the sample & I'm pretty sure that I have covered
all the main points as discussed in the help topics "Implementing a Web Forms
Template Editor" and "Web Forms Templated Data-Bound Control Designer Sample"
yet I cannot see what is going wrong.

Can anyone please help me?
.



Relevant Pages

  • Re: List Files
    ... Once a tab control has more ... eight folders you should probably be looking for a different metaphor. ... doing so far is providing a list of the files and subfolders in my Templates ... John Nurick [Microsoft Access MVP] ...
    (microsoft.public.access.forms)
  • Re: List Files
    ... Thanks for your comments regarding the tab control. ... reason why you shouldn't create a reasonable number of tabs and hide the ... eight folders you should probably be looking for a different metaphor. ... I don't just want this for my templates - I am creating this database ...
    (microsoft.public.access.forms)
  • RE: Immediate v. Delayed Delegation of Properties in CompositeControls
    ... Turns out that for some unknown magic reason ControlBuilder parses ITemplate ... properties FIRST, then Attributes, then Complex properties, then bound ... control I was working on was more complex and had more templates going on, ... So what was happening is that it is seeing 'Templates' as a Complex property ...
    (microsoft.public.dotnet.framework.aspnet.buildingcontrols)
  • Re: IMPORTANT! 2.0 Login Control Has No Cancel Button
    ... Using templates throughout an entire site requires many days and perhaps ... Login control which in any event would still require writing a lot of HTML ... >> the issue as a bug to MSDN Product Feedback and their reply follows... ...
    (microsoft.public.dotnet.framework.aspnet)
  • Building a custom control with nested templates
    ... templates and I'm having some problems in getting the nesting to work. ... My control is supposed to display an html-page containing either thumbnails ... thumbnails and the previews are the same, I created one container (called ... public class TestHeaderTemplateContainer: System.Web.UI.Control, ...
    (microsoft.public.dotnet.framework.aspnet.buildingcontrols)