private void AddShapesToRender(ElementSectionsInfo info)
        {
            double scale = ScaleBetweenSections(info.AtTheBeg, info.AtTheEnd);

            AddShapesToRender(info.AtTheBeg, sectionAtTheBegViewer, scale > 1.0 ? 1.0 / scale : 1.0);
            AddShapesToRender(info.AtTheEnd, sectionAtTheEndViewer, scale > 1.0 ? 1.0 : scale);
        }
        public void DoBinding(SectionShapeType shapeType, ElementSectionsInfo sectionsInfo, bool isSteel = false)
        {
            sectionTypeName.Content = Tools.SectionShapeTypeName(shapeType);

            BitmapImage source = new BitmapImage();

            source.BeginInit();
            string uriString = "/SectionPropertiesExplorer;component/Resources/Images/section";
            string typeName  = Tools.SectionShapeTypeName(shapeType);
            string steelTxt  = "";

            if (shapeType == SectionShapeType.Z && isSteel)
            {
                steelTxt = "steel";
            }
            uriString       += typeName + steelTxt + ".png";
            source.UriSource = new Uri(uriString, UriKind.Relative);
            source.EndInit();
            sectionDefinition.Source = source;

            AddShapesToRender(sectionsInfo);
        }