Note that there are some explanatory texts on larger screens.

plurals
  1. POWPF Pass current item from list to usercontrol
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. COIf I understood you correctly by the current Stage object you mean object corresponding to the item within ItemsControl. It is the function of ItemsControl to map each element of its ItemsSource to DataContext of generated item in Items list. Since plain {Binding} binds directly to DataContext, you did exactly the right thing in your code - bound MyUserControl.CustomDependencyProperty to corresponding element in your ObservableCollection<Stage>.
      singulars
    2. COAlso, passing it via constructor is not recommended: if ItemControls uses virtual panels it'll reuse items created previously if they disappear from screen by changing their DataContext to whatever showed up instead.
      singulars
    3. COI'm getting the following errors in the VS Output window at run time when I try to do the above: Cannot create default converter to perform 'one-way' conversions between types 'StageControl' and 'Stage'. Consider using Converter property of Binding. BindingExpression:Path=; DataItem='StageControl', target element is 'StageControl'target property is 'Stage' Value produced by BindingExpression is not valid for target property.; Value='StageControl' BindingExpression:Path=; DataItem='StageControl' (Name=''); target element is 'StageControl' (Name=''); target property is 'Stage'
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload