Answered Cannot refresh custom control WPF

All Replies

  • Wednesday, June 01, 2011 5:49 PM
     
     
    Any suggestion?
    MSÖ
  • Thursday, June 02, 2011 12:04 AM
    Moderator
     
     Answered

    Ideally you should make sure you're using classes that implement and utilize INotifyPropertyChanged and use Collections that implement INotifyCollectionChanged such as ObservableCollection

    Then as long as you're using Databinding e.g. ItemsSource="{Binding MyAppointments}" Text={Binding AppointmentDate} etc. then your interface will receive notifications when appointments change, are added, removed, etc without you having to do anything.

     

  • Thursday, June 02, 2011 4:56 AM
    Moderator
     
     

    Hi serkanozgen,

    If your issue persists, could you share more information with me, some code snippet will be better.

     

    Best regards,


    Sheldon _Xiao[MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.