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

WPF

 
AnswerRe: MVVM: Transfering data from ViewModel to Model, when and how ? Pin
RobCroll20-Jul-11 1:53
RobCroll20-Jul-11 1:53 
AnswerRe: MVVM: Transfering data from ViewModel to Model, when and how ? Pin
_Maxxx_21-Jul-11 14:06
professional_Maxxx_21-Jul-11 14:06 
QuestionDynamically changing themes from DLL at run-time Pin
Prasoon Chaudhary19-Jul-11 1:20
Prasoon Chaudhary19-Jul-11 1:20 
AnswerRe: Dynamically changing themes from DLL at run-time Pin
Varsha Ramnani20-Jul-11 21:23
professionalVarsha Ramnani20-Jul-11 21:23 
GeneralRe: Dynamically changing themes from DLL at run-time Pin
Prasoon Chaudhary20-Jul-11 22:42
Prasoon Chaudhary20-Jul-11 22:42 
QuestionFind an empty element in a Silverlight Grid Pin
Neo1010119-Jul-11 0:31
Neo1010119-Jul-11 0:31 
QuestionRe: Find an empty element in a Silverlight Grid Pin
Mark Salsbery19-Jul-11 12:35
Mark Salsbery19-Jul-11 12:35 
QuestionEntity Framework - Sorting Relationproperties Pin
Nicolai Schrade18-Jul-11 22:52
Nicolai Schrade18-Jul-11 22:52 
Hi,
my question is, how do I sort related items of an entity.

In an invoice editing window, I have one ComboBox displaying all customers:

XAML:
    <UserControl.Resources>
        <CollectionViewSource x:Key="cvsCustomers" 
                              d:DesignSource="{d:DesignInstance local:Customer, CreateList=True}" />
...

    </UserControl.Resources>

<ComboBox ItemsSource="{Binding Source={StaticResource cvsCustomers}}" .../>


Code-behind:
Dim cvsCustomers As System.Windows.Data.CollectionViewSource
cvsCustomers = CType(Me.FindResource("cvsCustomers"), System.Windows.Data.CollectionViewSource)
        
Dim qryCustomers = _
            From c In myEntities.Customers _
            Order By c.CustomerCode
            Select c
        cvsCustomers.Source = qryCustomers


Now I have a 2nd ComboBox displaying all contact persons of the selected customer. This works fine, but the entries in this second ComboBox are unsorted / sorted by ID.

XAML:
<ComboBox ItemsSource="{Binding Path=myInvoice.Customer.Contacts}" .../>
;

How do I get the list on the 2nd ComboBox sorted?

King regards,
and thanks in advance for tips/suggestions,

Nico
QuestionPerformance stymied by UIElement_CreateAutomationPeer Pin
Lee Reid16-Jul-11 14:01
Lee Reid16-Jul-11 14:01 
AnswerRe: Performance stymied by UIElement_CreateAutomationPeer [modified] Pin
SledgeHammer0118-Jul-11 10:20
SledgeHammer0118-Jul-11 10:20 
GeneralRe: Performance stymied by UIElement_CreateAutomationPeer Pin
Lee Reid18-Jul-11 16:40
Lee Reid18-Jul-11 16:40 
Questionwpf time picker control in vb.net Pin
prachi_sathep16-Jul-11 0:30
prachi_sathep16-Jul-11 0:30 
AnswerRe: wpf time picker control in vb.net Pin
Kim Breugelmans18-Jul-11 22:07
Kim Breugelmans18-Jul-11 22:07 
AnswerRe: wpf time picker control in vb.net Pin
Oludayo Alli16-Aug-11 2:29
Oludayo Alli16-Aug-11 2:29 
QuestionHow to enable wpf controls through data binding on a selected item from a combo box Pin
Member 297299215-Jul-11 4:20
Member 297299215-Jul-11 4:20 
AnswerRe: How to enable wpf controls through data binding on a selected item from a combo box [modified] Pin
Mark Salsbery15-Jul-11 6:11
Mark Salsbery15-Jul-11 6:11 
QuestionGame algorithm problem Pin
Neo1010115-Jul-11 4:05
Neo1010115-Jul-11 4:05 
AnswerRe: Game algorithm problem Pin
Mark Salsbery15-Jul-11 6:41
Mark Salsbery15-Jul-11 6:41 
AnswerRe: Game algorithm problem Pin
Abhinav S15-Jul-11 6:51
Abhinav S15-Jul-11 6:51 
GeneralRe: Game algorithm problem Pin
Neo1010119-Jul-11 0:02
Neo1010119-Jul-11 0:02 
GeneralRe: Game algorithm problem Pin
Pete O'Hanlon19-Jul-11 1:46
mvePete O'Hanlon19-Jul-11 1:46 
GeneralRe: Game algorithm problem Pin
Neo101017-Nov-11 0:25
Neo101017-Nov-11 0:25 
QuestionWCF Async Call random response Pin
NTheOne13-Jul-11 18:01
NTheOne13-Jul-11 18:01 
AnswerRe: WCF Async Call random response Pin
Abhinav S13-Jul-11 20:36
Abhinav S13-Jul-11 20:36 
Questionvisualstudio/experssion blend Pin
arkiboys13-Jul-11 10:31
arkiboys13-Jul-11 10:31 

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.