private static void OnScrollOffsetChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args) { SpinerWindow myObj = obj as SpinerWindow; if (myObj != null) { myObj.scroll.ScrollToHorizontalOffset(myObj.ScrollOffset); } }
private void Worker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { if (String.IsNullOrEmpty(bgPath)) { return; } List <String> data = e.Result as List <String>; SpinerWindow wd = new SpinerWindow(logoPath, bgPath, data, imgSize); wd.Show(); this.Close(); }