private void BuildRows()
 {
     for (int i = 0; i < NeckStrings.Count() + 1; i++)
     {
         neckLayout.RowDefinitions.Add(new RowDefinition());
     }
 }
 private void FillStrings()
 {
     for (int i = 0; i < NeckStrings.Count(); i++)
     {
         var neckString = NeckStrings.ElementAt(i);
         AddNotes(neckString);
     }
 }
        private void BuildColumns()
        {
            var totalLength = fretSpaceConst * firstFretWidth;
            var fretCount   = NeckStrings.FirstOrDefault()?.Notes.Count() ?? 0;

            for (int i = 0; i < fretCount; i++)
            {
                var columnDef = new ColumnDefinition();
                if (i != 0)
                {
                    var columnWidth = Math.Floor(totalLength / fretSpaceConst);
                    columnDef.Width = new GridLength(columnWidth);
                    totalLength    -= columnWidth;
                }
                else
                {
                    columnDef.Width = new GridLength(25); // Sets the open string column width
                }

                neckLayout.ColumnDefinitions.Add(columnDef);
            }
        }