void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.UserControl = ((PictureBrowserPanel.ExpandShow)(target)); return; case 2: this.LayoutRoot = ((System.Windows.Controls.Grid)(target)); return; case 3: this.NextShow = ((System.Windows.Shapes.Rectangle)(target)); return; case 4: this.STF_NextShow = ((System.Windows.Media.ScaleTransform)(target)); return; case 5: this.LastShow = ((System.Windows.Shapes.Rectangle)(target)); return; case 6: this.STF_LastShow = ((System.Windows.Media.ScaleTransform)(target)); return; case 7: this.MainShow = ((System.Windows.Shapes.Rectangle)(target)); return; case 8: this.STF_MainShow = ((System.Windows.Media.ScaleTransform)(target)); return; case 9: this.CA_ControlCanvas = ((System.Windows.Controls.Canvas)(target)); return; case 10: this.UC_ViewConsole = ((PictureBrowserPanel.ViewConsole)(target)); return; } this._contentLoaded = true; }
private void CreateExpanderShow(PictureInfo pictrueInfo, List <PictureInfo> pictureList) { ExpandShow eps = null; if (this.CC_MainHolder.Content == null || CC_MainHolder.Content as ExpandShow == null) { eps = new ExpandShow(); eps.Closed += () => { isInAnime = true; STB_ExpOut.Begin(); //CC_MainHolder.Visibility = Visibility.Collapsed; }; CC_MainHolder.Content = eps; } else { eps = CC_MainHolder.Content as ExpandShow; } eps.PictureInfoList = pictureList; eps.CurrentIndex = pictureList.IndexOf(pictrueInfo); eps.ShowImage(); GoToExpanderState(); }