, , .
, , , Dispatcher. , - , UIElements.
, UI DispatcherObject
, Dispatcher
, .
Dispatcher.VerifyAccess
, . .
@Kent.
, foreach
foreach
, , , Dispatcher.BeginInvoke
, "" . , , . , , .
private void Window_Loaded(object sender, RoutedEventArgs e)
{
CreateRow(1);
}
private void CreateRow(int i)
{
Dispatcher.BeginInvoke(DispatcherPriority.Background, new EventHandler(delegate { CreateRow(i + 1); }));
}