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

WPF

 
AnswerRe: Standard Button Layout Pin
Pete O'Hanlon3-Dec-10 1:16
mvePete O'Hanlon3-Dec-10 1:16 
JokeRe: Standard Button Layout Pin
PaulPrice3-Dec-10 2:02
PaulPrice3-Dec-10 2:02 
GeneralRe: Standard Button Layout Pin
Pete O'Hanlon3-Dec-10 4:35
mvePete O'Hanlon3-Dec-10 4:35 
QuestionDependancyProperty Confusion with Custom Controls and ModelView Pin
PaulPrice2-Dec-10 3:13
PaulPrice2-Dec-10 3:13 
AnswerRe: DependancyProperty Confusion with Custom Controls and ModelView Pin
Ian Shlasko2-Dec-10 3:55
Ian Shlasko2-Dec-10 3:55 
GeneralRe: DependancyProperty Confusion with Custom Controls and ModelView Pin
PaulPrice2-Dec-10 4:36
PaulPrice2-Dec-10 4:36 
GeneralRe: DependancyProperty Confusion with Custom Controls and ModelView Pin
Ian Shlasko2-Dec-10 6:18
Ian Shlasko2-Dec-10 6:18 
GeneralRe: DependancyProperty Confusion with Custom Controls and ModelView Pin
PaulPrice2-Dec-10 6:34
PaulPrice2-Dec-10 6:34 
Unfortunatly this is already done.

I have double checked and I can see while debugging that both the MainAppView and the DualListControl instance have the DataContext set to the same instance of the MainAppViewModel class.

The Content of the main window is set as follows

public MainWindow()
{
    InitializeComponent();
    Content = new MainAppViewModel();
}


And in the App.xaml i have a DataTemplate telling WPF how to render the object as follows

<Application x:Class="TestApplication.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:ViewModels="clr-namespace:TestApplication.ViewModels"
             xmlns:Views="clr-namespace:TestApplication.Views"
             StartupUri="MainWindow.xaml">
    <Application.Resources>
        <DataTemplate DataType="{x:Type ViewModels:MainAppViewModel}">
            <Views:MainAppView/>
        </DataTemplate>
    </Application.Resources>
</Application>


If you see what I mean

So the part that is missing is the actual binding of the DualListControls dependancy properties being bound to the MainAppViewModels SelectedListA and DeSelectedListA properties.

Any ideas as to what I have missed?
Just racking up the postings

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 
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 

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.