CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Location
    Fort Worth Texas
    Posts
    614

    Question Custom Control and user control questions

    I am new to WPF. I create a new custom control and reference it in another project so as to use it. Now should I be able to view the custom I created in the toolbox just like the standard controls allowing drag and drop it? Should a user control be seen in the toolbox and allow drag and drop?

    Can the custom control and user control only be designed via XAML and not via a design tool?

    Can the use of the custom control and user control only be be used via XAML and not via a design tool?

    What I am doing right now I can only desing a user control and custom control via XMAL which reminds me of the way one first created controls in winforms where you had to declare everything. If true this semes to be a step backwards.

  2. #2
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: Custom Control and user control questions

    Quote Originally Posted by Jim Bassett View Post
    I am new to WPF. I create a new custom control and reference it in another project so as to use it. Now should I be able to view the custom I created in the toolbox just like the standard controls allowing drag and drop it? Should a user control be seen in the toolbox and allow drag and drop?

    Can the custom control and user control only be designed via XAML and not via a design tool?

    Can the use of the custom control and user control only be be used via XAML and not via a design tool?

    What I am doing right now I can only desing a user control and custom control via XMAL which reminds me of the way one first created controls in winforms where you had to declare everything. If true this semes to be a step backwards.
    You need to add the control to the toolbox prior to having it show up in the toolbox.

    See http://social.msdn.microsoft.com/For...d-eca566a1f11b

    In general the WPF editor lags the features of the Winforms editor, but I expect in a short time it will be on par with the Winforms editor.

    The real power is the flexibility of what you can create with WPF, not with the current (temporary) limitations of the editor.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured