-
July 16th, 2009, 05:32 PM
#1
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.
-
July 17th, 2009, 12:05 AM
#2
Re: Custom Control and user control questions
Originally Posted by Jim Bassett
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|