public Editor() { this.InitializeComponent(); this.navigationHelper = new NavigationHelper(this); this.navigationHelper.LoadState += navigationHelper_LoadState; this.navigationHelper.SaveState += navigationHelper_SaveState; this.BottomAppBar = bottomAppBar; // Add horizontal grid lines to the canvas for (double x = 1; x < CircuitCanvas.Height; x += 20) { CircuitCanvas.Children.Add(new Windows.UI.Xaml.Shapes.Line() { X1 = 0, X2 = CircuitCanvas.Width, Y1 = x, Y2 = x, Stroke = new SolidColorBrush(Colors.LightGray), StrokeThickness = .50 }); } // Add vertical grid lines to the canvas for (double x = 1; x < CircuitCanvas.Width; x += 20) { CircuitCanvas.Children.Add(new Windows.UI.Xaml.Shapes.Line() { X1 = x, X2 = x, Y1 = CircuitCanvas.Height, Y2 = 0, Stroke = new SolidColorBrush(Colors.LightGray), StrokeThickness = .50 }); } GWire TestWire = new GWire(10,10,50,50); CircuitCanvas.Children.Add(TestWire); }
public MainPage() { this.InitializeComponent(); this.navigationHelper = new NavigationHelper(this); this.navigationHelper.LoadState += navigationHelper_LoadState; }