Click here to Skip to main content
15,884,986 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: DependancyProperty Confusion with Custom Controls and ModelView Pin
Ian Shlasko2-Dec-10 9:56
Ian Shlasko2-Dec-10 9:56 
GeneralRe: DependancyProperty Confusion with Custom Controls and ModelView Pin
SledgeHammer012-Dec-10 10:05
SledgeHammer012-Dec-10 10:05 
GeneralRe: DependancyProperty Confusion with Custom Controls and ModelView Pin
Ian Shlasko2-Dec-10 10:59
Ian Shlasko2-Dec-10 10:59 
GeneralRe: DependancyProperty Confusion with Custom Controls and ModelView Pin
SledgeHammer012-Dec-10 11:58
SledgeHammer012-Dec-10 11:58 
GeneralRe: DependancyProperty Confusion with Custom Controls and ModelView Pin
PaulPrice3-Dec-10 0:11
PaulPrice3-Dec-10 0:11 
GeneralRe: DependancyProperty Confusion with Custom Controls and ModelView Pin
PaulPrice3-Dec-10 0:05
PaulPrice3-Dec-10 0:05 
AnswerRe: DependancyProperty Confusion with Custom Controls and ModelView Pin
SledgeHammer012-Dec-10 6:35
SledgeHammer012-Dec-10 6:35 
GeneralRe: DependancyProperty Confusion with Custom Controls and ModelView Pin
PaulPrice2-Dec-10 7:05
PaulPrice2-Dec-10 7:05 
SledgeHammer, Thanks for your time and comments

Re point one,

DependancyProperties obviously still confuse the life out of me!
I tried making this a readonly collection and then realised what you are suggesting, you have given me the method required if I want a single list for all DualListControls right? but these can no longer be ovverriden by a user.

That is not my intention, what I am trying to achieve and failing is to be allow a developer to do something like this

<Grid>
    <CustomControls:DualListControl Name="List" SelectedItems="{Binding SelectedItemsA}" DeSelectedItems="{Binding DeslectedItemsA}"/>
</Grid>


The problem I appear to have is that the SelectedItems dependancy property is not being bound to the one in the MainAppViewModel.

Re point two,

Ian has already found this and corrected me, the bindings in the Generic.xaml are now as the follows

<ListView Grid.Column="2" Name="ElementSelectedList" ItemsSource="{TemplateBinding SelectedItems}"/>


Have I understood this correctly?
Just racking up the postings

GeneralRe: DependancyProperty Confusion with Custom Controls and ModelView Pin
SledgeHammer012-Dec-10 10:04
SledgeHammer012-Dec-10 10:04 
GeneralRe: DependancyProperty Confusion with Custom Controls and ModelView Pin
PaulPrice2-Dec-10 23:59
PaulPrice2-Dec-10 23:59 
GeneralRe: DependancyProperty Confusion with Custom Controls and ModelView Pin
SledgeHammer013-Dec-10 14:33
SledgeHammer013-Dec-10 14:33 
Questionvs 2010 settings Pin
arkiboys1-Dec-10 21:43
arkiboys1-Dec-10 21:43 
AnswerRe: vs 2010 settings Pin
Abhinav S1-Dec-10 22:34
Abhinav S1-Dec-10 22:34 
GeneralRe: vs 2010 settings Pin
arkiboys1-Dec-10 23:54
arkiboys1-Dec-10 23:54 
QuestionGUI guidance Pin
arkiboys1-Dec-10 21:35
arkiboys1-Dec-10 21:35 
AnswerRe: GUI guidance Pin
phil.o3-Dec-10 0:09
professionalphil.o3-Dec-10 0:09 
GeneralRe: GUI guidance Pin
arkiboys3-Dec-10 1:48
arkiboys3-Dec-10 1:48 
GeneralRe: GUI guidance Pin
phil.o4-Dec-10 2:46
professionalphil.o4-Dec-10 2:46 
QuestionHow do I Invalidate or repaint the Window in WPF. Pin
o1010wanabe1-Dec-10 12:25
o1010wanabe1-Dec-10 12:25 
AnswerRe: How do I Invalidate or repaint the Window in WPF. Pin
SledgeHammer012-Dec-10 6:22
SledgeHammer012-Dec-10 6:22 
GeneralRe: How do I Invalidate or repaint the Window in WPF. Pin
o1010wanabe2-Dec-10 22:24
o1010wanabe2-Dec-10 22:24 
GeneralRe: How do I Invalidate or repaint the Window in WPF. Pin
o1010wanabe2-Dec-10 22:33
o1010wanabe2-Dec-10 22:33 
NewsNew article Pin
TechiGIRL30-Nov-10 23:49
TechiGIRL30-Nov-10 23:49 
GeneralRe: New article Pin
#realJSOP5-Dec-10 6:18
mve#realJSOP5-Dec-10 6:18 
QuestionImage does not display in the TextBlock. Pin
rus20430-Nov-10 21:00
rus20430-Nov-10 21:00 

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.