Click here to Skip to main content
15,913,584 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Pass params to web service Pin
#realJSOP6-May-10 10:54
professional#realJSOP6-May-10 10:54 
GeneralRe: Pass params to web service Pin
#realJSOP7-May-10 5:33
professional#realJSOP7-May-10 5:33 
GeneralRe: Pass params to web service Pin
Not Active7-May-10 7:01
mentorNot Active7-May-10 7:01 
AnswerRe: Pass params to web service Pin
Abhinav S7-May-10 0:23
Abhinav S7-May-10 0:23 
GeneralRe: Pass params to web service Pin
#realJSOP7-May-10 1:52
professional#realJSOP7-May-10 1:52 
GeneralRe: Pass params to web service Pin
#realJSOP7-May-10 5:33
professional#realJSOP7-May-10 5:33 
GeneralRe: Pass params to web service Pin
Abhinav S7-May-10 6:32
Abhinav S7-May-10 6:32 
QuestionWPF UserControl design question Pin
Alex Barry6-May-10 5:38
Alex Barry6-May-10 5:38 
I am designing a WPF UserControl, and I'm not sure how to do part of it correctly. The main control to be consumed by the user will have three "sub-controls", that is controls that the main control composes to create the whole:

public class MainControl : UserControl {
public SubControl Sub1 {get; private set;}
public SubControl Sub2 {get; private set;}
public SubControl Sub3 {get; private set;}
}

public class SubControl : Canvas { // Can be any user control, I just happen to use a Canvas
public int Property1 {get; set;}
public string Property2 {get; set;}
}

What I would like to do is change the code so that the properties of the the SubControl's are editable in XAML. I'm aiming for something along the lines of:

<bbb:MainControl x:Name="abc">
<bbb.MainControl.Sub1 Property1="5" Property2="Hello"/>
<bbb.MainControl.Sub2 Property1="6" Property2="Goodbye"/>
</bbb:MainControl>

I have played around making the properties of SubControl DPs, as well as making each of the SubControl's DPs, but I keep getting error MC3057. The only way I have been able to get it to work is to add DPs to the MainControl for each of the properties of the SubControl, and bind them together. That's kind of ugly and scales poorly. Does anybody have any suggestions?
AnswerRe: WPF UserControl design question Pin
Leung Yat Chun9-May-10 6:26
Leung Yat Chun9-May-10 6:26 
GeneralRe: WPF UserControl design question Pin
Alex Barry10-May-10 2:10
Alex Barry10-May-10 2:10 
GeneralRe: WPF UserControl design question Pin
Leung Yat Chun10-May-10 2:38
Leung Yat Chun10-May-10 2:38 
QuestionViewModels and Threading issues.. Pin
daniel radford6-May-10 4:10
daniel radford6-May-10 4:10 
AnswerRe: ViewModels and Threading issues.. Pin
Abhinav S6-May-10 20:22
Abhinav S6-May-10 20:22 
GeneralRe: ViewModels and Threading issues.. Pin
daniel radford7-May-10 3:30
daniel radford7-May-10 3:30 
Questiongiving multiple groups different access in a silverlight application Pin
Michael J. Eber5-May-10 7:59
Michael J. Eber5-May-10 7:59 
AnswerRe: giving multiple groups different access in a silverlight application Pin
Abhinav S6-May-10 4:37
Abhinav S6-May-10 4:37 
GeneralRe: giving multiple groups different access in a silverlight application Pin
Michael J. Eber6-May-10 8:30
Michael J. Eber6-May-10 8:30 
AnswerRe: giving multiple groups different access in a silverlight application Pin
Abhinav S6-May-10 17:46
Abhinav S6-May-10 17:46 
QuestionNo Resources [SOLVED] Pin
#realJSOP4-May-10 7:43
professional#realJSOP4-May-10 7:43 
AnswerRe: No Resources Pin
Luc Pattyn4-May-10 7:49
sitebuilderLuc Pattyn4-May-10 7:49 
GeneralRe: No Resources Pin
#realJSOP4-May-10 7:51
professional#realJSOP4-May-10 7:51 
GeneralRe: No Resources Pin
Luc Pattyn4-May-10 7:57
sitebuilderLuc Pattyn4-May-10 7:57 
AnswerRe: No Resources Pin
Abhinav S4-May-10 7:50
Abhinav S4-May-10 7:50 
GeneralRe: No Resources Pin
#realJSOP4-May-10 7:52
professional#realJSOP4-May-10 7:52 
QuestionDynamic Image binding Pin
Sunil P V4-May-10 6:22
Sunil P V4-May-10 6:22 

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.