Ejemplo n.º 1
0
        public void BringToFront(PartControl part)
        {
            var maxZ = -10000;

            foreach (var child in this.grid.Children)
            {
                var z = Grid.GetZIndex(child as UIElement);
                if (z > maxZ)
                {
                    maxZ = z;
                }
            }
            Grid.SetZIndex(part, maxZ + 1);
        }
Ejemplo n.º 2
0
        private void AddPart()
        {
            {
                var part = new PartControl()
                {
                    Id    = Base64.UUID(),
                    Title = $"Part {nextPartNumber++}"
                };
                Grid.SetRow(part, this.lastTrackClicked);
                this.grid.Children.Add(part);

                part.SetStartTimeAndDuration(this.timeWhereLastClicked, this.defaultDuration);
            };
        }