Here is my layout:
<StackPanel>
<!-- Defining my DDS here wont allow my ComboBox inside the DataTemplate bind to the loaded items -->
<DomainDataSource x:Name="ddsValues" Query="MyQuery" DomainContext="{Binding DC}" />
<DataForm>
<DataForm.EditTemplate>
<DataTemplate>
<StackPanel>
<!-- Defining my DDS here works fine -->
<DomainDataSource x:Name="ddsValues" Query="MyQuery" DomainContext="{Binding DC}" />
<ComboBox ItemsSource="{Binding Data, ElementName=ddsValues}" />
</StackPanel>
</DataTemplate>
</DataForm.EditTemplate>
</DataForm>
</StackPanel>
Can anyone tell me why I have to setup my DomainDataSource this way? Why does it have to live inside the DataTemplate? Is there a way around this? Technically this means that EVERYTIME I change the record on the DataForm it has to RELOAD the values from the database. These values are static and wont change.