private static void OnSourceChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { try { ImageAnim obj = (ImageAnim)d; string s = (string)e.NewValue; obj.CreateFromSourceString(s); } catch (Exception ex) { VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "OnSourceChange()", "Controls\\VMuktiGrid\\ImageAnim.cs"); } }
private static void OnStretchDirectionChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { try { ImageAnim obj = (ImageAnim)d; StretchDirection s = (StretchDirection)e.NewValue; if (obj._gifAnimation != null) { obj._gifAnimation.StretchDirection = s; } else if (obj._image != null) { obj._image.StretchDirection = s; } } catch (Exception ex) { VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "OnSrectchDirectionChange()", "Controls\\VMuktiGrid\\ImageAnim.cs"); } }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.CtlPOD = ((VMuktiGrid.CustomGrid.ctlPOD)(target)); #line 4 "..\..\..\..\..\Controls\VMuktiGrid\Grid\ctlPOD.xaml" this.CtlPOD.AddHandler(System.Windows.Input.Mouse.MouseMoveEvent, new System.Windows.Input.MouseEventHandler(this.ctlPOD_MouseMove)); #line default #line hidden return; case 2: this.OnMouseEnter1_BeginStoryboard = ((System.Windows.Media.Animation.BeginStoryboard)(target)); return; case 3: this.OnMouseLeave1_BeginStoryboard = ((System.Windows.Media.Animation.BeginStoryboard)(target)); return; case 4: this.grdMain = ((System.Windows.Controls.Grid)(target)); return; case 5: this.grdSub = ((System.Windows.Controls.Grid)(target)); return; case 6: this.colDef1 = ((System.Windows.Controls.ColumnDefinition)(target)); return; case 7: this.rowDef1 = ((System.Windows.Controls.RowDefinition)(target)); return; case 8: this.rowDef2 = ((System.Windows.Controls.RowDefinition)(target)); return; case 9: this.Rectangle = ((System.Windows.Shapes.Rectangle)(target)); return; case 10: this.brdPOD = ((System.Windows.Controls.Border)(target)); #line 107 "..\..\..\..\..\Controls\VMuktiGrid\Grid\ctlPOD.xaml" this.brdPOD.AddHandler(System.Windows.Input.Mouse.MouseEnterEvent, new System.Windows.Input.MouseEventHandler(this.brdPOD_MouseEnter)); #line default #line hidden #line 109 "..\..\..\..\..\Controls\VMuktiGrid\Grid\ctlPOD.xaml" this.brdPOD.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.grdTitle_PreviewMouseDown); #line default #line hidden return; case 11: this.grdTitle = ((System.Windows.Controls.Grid)(target)); return; case 12: this.imgPODIcon = ((System.Windows.Controls.Image)(target)); return; case 13: this.lblTitle = ((System.Windows.Controls.Label)(target)); return; case 14: this.btnClose = ((System.Windows.Controls.Button)(target)); #line 122 "..\..\..\..\..\Controls\VMuktiGrid\Grid\ctlPOD.xaml" this.btnClose.Click += new System.Windows.RoutedEventHandler(this.btnClose_Click); #line default #line hidden return; case 15: this.objBuddyList = ((VMuktiGrid.Buddy.ctlPodBuddyList)(target)); return; case 16: this.btnMinPanel = ((System.Windows.Controls.Button)(target)); #line 150 "..\..\..\..\..\Controls\VMuktiGrid\Grid\ctlPOD.xaml" this.btnMinPanel.Click += new System.Windows.RoutedEventHandler(this.btnMinPanel_Click); #line default #line hidden return; case 17: this.grdBody = ((System.Windows.Controls.Grid)(target)); return; case 18: this.Rct1 = ((System.Windows.Shapes.Rectangle)(target)); return; case 19: this.animImage = ((ReissSoftware.ImageAnim)(target)); return; case 20: this.btnHidePanel = ((System.Windows.Controls.Button)(target)); #line 175 "..\..\..\..\..\Controls\VMuktiGrid\Grid\ctlPOD.xaml" this.btnHidePanel.Click += new System.Windows.RoutedEventHandler(this.btnHidePanel_Click); #line default #line hidden return; case 21: this.btnMinPanel1 = ((System.Windows.Controls.Button)(target)); #line 186 "..\..\..\..\..\Controls\VMuktiGrid\Grid\ctlPOD.xaml" this.btnMinPanel1.Click += new System.Windows.RoutedEventHandler(this.btnMinPanel1_Click); #line default #line hidden return; } this._contentLoaded = true; }