object TextFlow_UpdateWindow(object obj) { txtFlow = new TextFlow(); if (_txtRun) { txtFlow.TextRuns.Add(tr1); txtFlow.TextRuns.Add("1st Text", _font, _color); txtFlow.TextRuns.Add(tr1); } if (_lineCount) { txtFlow.TextRuns.Add(_longStr, _font, _color); txtFlow.TextRuns.Add(TextRun.EndOfLine); for (int i = 0; i < count; i++) { txtFlow.TextRuns.Add("Text " + i, _font, _color); txtFlow.TextRuns.Add(TextRun.EndOfLine); } } trc = txtFlow.TextRuns; txtFlow.ScrollingStyle = _style; _getStyle = txtFlow.ScrollingStyle; mainWindow.Child = txtFlow; return obj; }
public TextFlow() { TextRuns = new TextRunCollection(this); }