Posts

Share:

RightEffect.cs | Drag Object To Scroll In WPF C# | Amit Padhiyar | Saatody

RightEffect.cs Drag object using MouseLeftButtonDown, MouseLeftButtonUp and MouseMove. When we drag object using mouse and if object's any part is going outside parent panel then the parent panel margin automatically update and try to in that object. using System; using System.Windows; using System.Windows.Controls; using System.Windows.Shapes; using System.Windows.Media; using System.Windows.Input; namespace EffectFeatures { public class RightEffect : Border { public void Initialize() { try { Repaint(); Resize(); Event(); Refresh(); } catch (Exception e) { } } public void Repaint() { try { this.Background = new SolidColorBrush(Color.FromArgb(100, 255, 165, 0)); this.BorderBrush = new SolidColorBrush(Color.FromArgb(255, 255, 165, 0)); this.BorderTh...

RightEffectRow.cs | Drag Object To Scroll In WPF C# | Amit Padhiyar | Saatody

RightEffectRow.cs Drag object using MouseLeftButtonDown, MouseLeftButtonUp and MouseMove. When we drag object using mouse and if object's any part is going outside parent panel then the parent panel margin automatically update and try to in that object. using System; using System.Windows; using System.Windows.Controls; using System.Windows.Shapes; using System.Windows.Media; using System.Windows.Input; using System.Collections.Generic; using System.Windows.Threading; namespace EffectFeatures { public class RightEffectRow : Grid { public RightEffect RE = new RightEffect(); public static UIElement UI = new UIElement(); public void Initialize() { try { this.Children.Clear(); Repaint(); Resize(); Event(); Refresh(); UI = this; this.Children.Add(RE); RE.Initialize(); } ...

RightEffectRowContainer.cs | Drag Object To Scroll In WPF C# | Amit Padhiyar | Saatody

RightEffectRowContainer.cs Drag object using MouseLeftButtonDown, MouseLeftButtonUp and MouseMove. When we drag object using mouse and if object's any part is going outside parent panel then the parent panel margin automatically update and try to in that object. using System; using System.Windows; using System.Windows.Controls; using System.Windows.Shapes; using System.Windows.Media; using System.Windows.Input; using System.Windows.Threading; namespace EffectFeatures { public class RightEffectRowContainer : Grid { public void Initialize() { try { this.Children.Clear(); Repaint(); Resize(); Event(); Refresh(); } catch (Exception e) { } } public void Repaint() { try { LinearGradientBrush gradientBrush = new LinearGradientBrush(Color.FromRgb(100, 0, 0), Color.FromRgb...

RightEffectControl.cs | Drag Object To Scroll In WPF C# | Amit Padhiyar | Saatody

RightEffectControl.cs Drag object using MouseLeftButtonDown, MouseLeftButtonUp and MouseMove. When we drag object using mouse and if object's any part is going outside parent panel then the parent panel margin automatically update and try to in that object. using System; using System.Windows; using System.Windows.Controls; using System.Windows.Shapes; using System.Windows.Media; using System.Windows.Input; using System.Collections.Generic; namespace EffectFeatures { public class RightEffectControl { public RightEffectRowContainer RERC = new RightEffectRowContainer(); public List<RightEffectRow> RER = new List<RightEffectRow>(); private double Y = 0; private int Counter = 0; public void AddRow() { RightEffectRow _RER = new RightEffectRow(); _RER.HorizontalAlignment = HorizontalAlignment.Left; _RER.VerticalAlignment = VerticalAlignment.Top; _RER.Margin = new Thic...

MyColor.cs | Drag Object To Scroll In WPF C# | Amit Padhiyar | Saatody

MyColor.cs Drag object using MouseLeftButtonDown, MouseLeftButtonUp and MouseMove. When we drag object using mouse and if object's any part is going outside parent panel then the parent panel margin automatically update and try to in that object. using System.Windows.Media; namespace EffectFeatures { public class MyColor { public static Color[] Row = { Color.FromRgb(20, 15, 0), Color.FromRgb(20, 0, 15), Color.FromRgb(10, 0, 20), Color.FromRgb(0, 10, 20), Color.FromRgb(0, 20, 15), }; public static Color[] Effect = { Color.FromRgb(255, 165, 0), Color.FromRgb(255, 0, 165), Color.FromRgb(165, 0, 255), Color.FromRgb(0, 165, 255), Color.FromRgb(0, 255, 165), }; } } MainWindow.cs | Drag Object To Scroll In WPF C# | Amit Padhiyar | Saatody MyRowControl.cs | Drag Object To Scroll In WPF C# | Amit Padhiyar | Saatody MyRo...

MyRowTest.cs | Drag Object To Scroll In WPF C# | Amit Padhiyar | Saatody

MyRowTest.cs Drag object using MouseLeftButtonDown, MouseLeftButtonUp and MouseMove. When we drag object using mouse and if object's any part is going outside parent panel then the parent panel margin automatically update and try to in that object. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; using System.Windows.Threading; namespace EffectFeatures { public class MyRowTest : Grid { public static RightEffectControl REC = new RightEffectControl(); public void Initialize() { try { this.Children.Clear(); Repaint(); Resize(); Event(...

MyRowControl.cs | Drag Object To Scroll In WPF C# | Amit Padhiyar | Saatody

MyRowControl.cs Drag object using MouseLeftButtonDown, MouseLeftButtonUp and MouseMove. When we drag object using mouse and if object's any part is going outside parent panel then the parent panel margin automatically update and try to in that object. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; using System.Windows.Threading; namespace EffectFeatures { public class MyRowControl : Grid { private static Button AddRow = new Button(); public void Initialize() { try { this.Children.Clear(); Repaint(); Resize(); Event(); ...