private void RaiseSelectedSizeEvent(int Size) { SelectedSizeChangedRoutedEventArgs newEventArgs = new SelectedSizeChangedRoutedEventArgs(SizeControl.SelectedSizeChangedEvent) { Size = Size }; RaiseEvent(newEventArgs); }
private void RaiseSelectedSizeEvent(int Size) { SelectedSizeChangedRoutedEventArgs newEventArgs = new SelectedSizeChangedRoutedEventArgs(SizeControl.SelectedSizeChangedEvent) { Size = Size }; this.Dispatcher.Invoke(() => RaiseEvent(newEventArgs)); }