Error when trying to bind the value of a setter
问题 I have the following XAML: <ListBox.ItemsPanel> <ItemsPanelTemplate> <Grid> <Grid.RowDefinitions> ... </Grid.RowDefinitions> <Grid.ColumnDefinitions> ... </Grid.ColumnDefinitions> </Grid> </ItemsPanelTemplate> </ListBox.ItemsPanel> ... <ListBox.ItemContainerStyle> <Style TargetType="ListBoxItem"> <Setter Property="Grid.Row" Value="{Binding Row, Mode=OneWay}" /> <Setter Property="Grid.Column" Value="{Binding Column, Mode=OneWay}" /> </Style> </ListBox.ItemContainerStyle> ... When the page