WP7: Conditionally show & hide control elements in Data Templates
问题 I have a note application with a ListBox control, which lists all the available notes from the ObservableCollection<Note> Notes . class Note has attributes like String Title; bool Has_Reminder; DateTime Reminder_Date; What I want is that the TextBlock element, which shows the Reminder_Date , is only shown, if Has_Reminder is true. But I do not know how to access this attribute from my custom control NoteListItem. Its this.DataContext attribute is null , but the control still properly displays