Как вызвать метод с UI thread в Silverlight?
??? ????? ???? ????? ???????? ?????? System.Windows.Threading.Dispatcher.
???? ??? ????? ??????????, ??????, ?? UserControl:
public
partial class Page : UserControl
?? ? ??? ????????????? ???? ?????? ? ??????????, ????????? ?? ???????? public ?????? ??????????? ?????? System.Windows.DependencyObject.
???????? ??????:
System.Windows.Controls.UserControl : System.Windows.Controls.Control : System.Windows.FrameworkElement : System.Windows.UIElement : System.Windows.DependencyObject
???? ?? ???, ????????, ??? ??? ?????????? ?? ?????????? ?????? ??? ??????? ? ????? UserControl'??, ?? ?????????? ????? ??????? ?? Application.Current.RootVisual.Dispatcher, ?? ?????? ?????????: RootVisual ????? ?? ???????? ?????? ? UI thread, ??? ??? ?????? ????? ???????? ???????? ??? ???-?????? ? ?????????? ???????????? ??? ?? ??????? ?????? ? ????????? ?????? ? ??????? ?????.
???????????? ????????? ????? ??????:
disp.BeginInvoke(Action)
???
disp.BeginInvoke(Delegate, Object[])
?????? ?????? ????????? ?????????? ?????????? ??????????, ?????? ?????? ????????? ?? ???????????. ????????, disp.BeginInvoke(new MyDelegate(callback), 1, 2, 3, 4, 5)