Beispiel #1
0
        private static bool TryParse(XElement xml, string xname, out DashStyle value)
        {
            value = DashStyle.Custom;
            string gridSpan = xml.Element(xname) == null ? null : xml.Element(xname).Value;

            return(!string.IsNullOrWhiteSpace(gridSpan) && DashStyle.TryParse(gridSpan, out value));
        }