xaml - [WPF]ItemsControl not completely loaded @Loaded event -


I probably have a simple problem that I could not find this address:

I We < Code> ItemsControl , which has Datacontext set and displays the data as a pair of checkboxes and TextBlocks :

  & amp; Lt; Items control name = "listTestamps" grid. Line = "1" grid. Column = "2" grid. Rowspan = "2" item source = "{binding}" margin = "10, 0,0,0" vertical alignment = "top" loaded = "listTestes_loaded" & gt; & Lt; ItemsControl.ItemTemplate & gt; & Lt; DataTemplate & gt; & Lt; StackPanel Orientation = "Horizontal" & gt; & Lt; Checkbox name = "check box" tag = "{binding path = taskout id}" /> & Lt; TextBlock FontSize = "11pt" FontFamily = "Helvetica" Text = "{Binding Path = Text}" /> & Lt; / StackPanel & gt; & Lt; / DataTemplate & gt; & Lt; /ItemsControl.ItemTemplate> & Lt; / ItemsControl>  

My problem is that in the event of loaded eventControl , checkboxes are not present yet ItemsControl complete It's kind of full or is it not possible when I get an event?

listTaskTypes.ItemContainerGenerator.StatusChanged event handler item can notify you on each item created on the control.

Yes loaded is the only item loaded event, the items are not created at that moment. Are you just curious about what you are trying to achieve here? I think that you are trying to get the code behind the checkboxes?

What you are looking for can be a better way of binding to achieve

Comments

Popular posts from this blog

MySql variables and php -

url rewriting - How to implement the returnurl like SO in PHP? -

Which Python client library should I use for CouchdB? -