protected override FrameworkElement BuildElementInternal() { var buildElementInternal = new TextBlock { TextWrapping = TextWrapping.Wrap, Margin = new Thickness(0, 0, 0, 5) }; var buildElement = new XSpan(children.ToArray()).BuildElement(); buildElementInternal.Inlines.Add(buildElement); return(buildElementInternal); }
protected override string ToString(bool formatted) { if (!ShouldBuildElement()) { return(string.Empty); } var span = new XSpan(children.ToArray()); var spanToString = formatted ? span.ToString() : span.ToPlainString(); if (BlockStyle == BlockStyle.Indented) { spanToString = Indent(spanToString); } return(spanToString + Environment.NewLine); }
protected bool Equals(XSpan other) { return(base.Equals(other) && ListEquals(Children, other.Children)); }
protected bool Equals(XSpan other) { return base.Equals(other) && ListEquals(Children, other.Children); }
protected override FrameworkElement BuildElementInternal() { var buildElementInternal = new TextBlock { TextWrapping = TextWrapping.Wrap, Margin = new Thickness(0, 0, 0, 5) }; var buildElement = new XSpan(children.ToArray()).BuildElement(); buildElementInternal.Inlines.Add(buildElement); return buildElementInternal; }
protected override string ToString(bool formatted) { if (!ShouldBuildElement()) return string.Empty; var span = new XSpan(children.ToArray()); var spanToString = formatted ? span.ToString() : span.ToPlainString(); if (BlockStyle == BlockStyle.Indented) { spanToString = Indent(spanToString); } return spanToString + Environment.NewLine; }