Posts

Showing posts with the label CSharp
Share:

Two Different Objects Are Overdraw In WPF C#, Solve It?

Image
I use 10 Grid Objects where i take 5 Grid objects as parents and other 5 Grid objects as children. Look at the WPF C# simple program which is below. using System; using System.Windows; using System.Windows.Controls; using System.Windows.Media; namespace Demo.Saatody { public class OverdrawProblem : Window { private static Grid Container = new Grid(); private static Grid Parent1 = new Grid(); private static Grid Parent2 = new Grid(); private static Grid Parent3 = new Grid(); private static Grid Parent4 = new Grid(); private static Grid Parent5 = new Grid(); private static Grid Child1 = new Grid(); private static Grid Child2 = new Grid(); private static Grid Child3 = new Grid(); private static Grid Child4 = new Grid(); private static Grid Child5 = new Grid(); public void Initialize() { try { this.Content = Container;