Click here to Skip to main content
15,887,304 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Silverlight XAP and Temporary Internet Files Pin
Abhinav S23-Dec-10 18:45
Abhinav S23-Dec-10 18:45 
AnswerRe: Silverlight XAP and Temporary Internet Files Pin
RobCroll24-Dec-10 4:08
RobCroll24-Dec-10 4:08 
GeneralRe: Silverlight XAP and Temporary Internet Files Pin
Ray Cassick27-Dec-10 6:29
Ray Cassick27-Dec-10 6:29 
GeneralRe: Silverlight XAP and Temporary Internet Files Pin
RobCroll30-Dec-10 23:50
RobCroll30-Dec-10 23:50 
QuestionCreating a New User Control Based Upon an Existing One Pin
Richard Andrew x6423-Dec-10 13:46
professionalRichard Andrew x6423-Dec-10 13:46 
AnswerRe: Creating a New User Control Based Upon an Existing One Pin
SledgeHammer0123-Dec-10 17:53
SledgeHammer0123-Dec-10 17:53 
AnswerRe: Creating a New User Control Based Upon an Existing One Pin
Abhinav S23-Dec-10 18:47
Abhinav S23-Dec-10 18:47 
AnswerRe: Creating a New User Control Based Upon an Existing One Pin
Michael Agroskin31-Dec-10 12:31
Michael Agroskin31-Dec-10 12:31 
You can create a UserControl based on other control (Microsoft standard or your own). Like people already said, just make

C#
public class AnotherControl : MyControl
or
public class AnotherControl : Button


If your base class was defined completely in code, everything is OK, and you can use Visual Studio designer:

XML
<Test.MyControl x:Class="Test.MyAnotherControl">
or
<Button x:Class="Test.MyAnotherControl">


However, if your base class was defined in XAML like this

XML
<UserControl x:Class="Test.MyControl">


then you cannot use Visual Studio designer anymore:

XML
<Test.MyControl x:Class="Test.MyAnotherControl">


Error 'Test.MyControl' cannot be the root of a XAML file because it was defined using XAML. Line 1 Position 30


Makes sense?
GeneralRe: Creating a New User Control Based Upon an Existing One Pin
Richard Andrew x6431-Dec-10 13:04
professionalRichard Andrew x6431-Dec-10 13:04 
QuestionProblem Binding In Silverlight 4 [modified] Pin
Moh.Saied22-Dec-10 22:59
Moh.Saied22-Dec-10 22:59 
QuestionWCF operationcontract Pin
arkiboys22-Dec-10 3:50
arkiboys22-Dec-10 3:50 
AnswerRe: WCF operationcontract Pin
Abhinav S22-Dec-10 5:03
Abhinav S22-Dec-10 5:03 
GeneralRe: WCF operationcontract Pin
arkiboys22-Dec-10 5:18
arkiboys22-Dec-10 5:18 
GeneralRe: WCF operationcontract [modified] Pin
varshavmane26-Dec-10 22:41
varshavmane26-Dec-10 22:41 
QuestionFailed to create AppDomain Pin
hotthoughtguy22-Dec-10 3:34
hotthoughtguy22-Dec-10 3:34 
AnswerRe: Failed to create AppDomain Pin
Abhinav S22-Dec-10 5:10
Abhinav S22-Dec-10 5:10 
QuestionDesign: Passing parameters [modified] Pin
afsal qureshi22-Dec-10 0:41
afsal qureshi22-Dec-10 0:41 
AnswerRe: Design: Passing parameters Pin
_Maxxx_4-Jan-11 12:37
professional_Maxxx_4-Jan-11 12:37 
AnswerRe: write logfile to webserver Pin
Pete O'Hanlon21-Dec-10 22:39
mvePete O'Hanlon21-Dec-10 22:39 
GeneralRe: write logfile to webserver Pin
SledgeHammer0122-Dec-10 4:57
SledgeHammer0122-Dec-10 4:57 
QuestionFlowchart control in WPF Pin
devvvy21-Dec-10 15:39
devvvy21-Dec-10 15:39 
AnswerRe: Flowchart control in WPF Pin
Abhinav S21-Dec-10 18:34
Abhinav S21-Dec-10 18:34 
AnswerBad bad bad developer Pin
Pete O'Hanlon21-Dec-10 20:15
mvePete O'Hanlon21-Dec-10 20:15 
QuestionStrange WPF Behavior Under XP Pin
Richard Andrew x6421-Dec-10 13:33
professionalRichard Andrew x6421-Dec-10 13:33 
AnswerRe: Strange WPF Behavior Under XP Pin
SledgeHammer0121-Dec-10 13:46
SledgeHammer0121-Dec-10 13:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.