개정판 19d602e0
Fix: Undo/Redo 기능 개선
Change-Id: I788a6fe870ed5ee7096f3ee461227588cf758388
MarkupToPDF/Controls/Parsing/MarkupParse.cs | ||
---|---|---|
257 | 257 |
|
258 | 258 |
using (System.IO.MemoryStream stream = new System.IO.MemoryStream()) |
259 | 259 |
{ |
260 |
System.IO.StreamWriter writer = new System.IO.StreamWriter(stream); |
|
261 |
xamlData = xamlData.Replace("#FFFF0000", DisplayColor); |
|
262 |
|
|
263 |
if (STAMP_Contents?.Count > 0) |
|
260 |
using (System.IO.StreamWriter writer = new System.IO.StreamWriter(stream)) |
|
264 | 261 |
{ |
265 |
foreach (var Content in STAMP_Contents) |
|
262 |
xamlData = xamlData.Replace("#FFFF0000", DisplayColor); |
|
263 |
|
|
264 |
if (STAMP_Contents?.Count > 0) |
|
266 | 265 |
{ |
267 |
xamlData = xamlData.Replace(Content.Key, System.Security.SecurityElement.Escape(Content.Value)); |
|
266 |
foreach (var Content in STAMP_Contents) |
|
267 |
{ |
|
268 |
xamlData = xamlData.Replace(Content.Key, System.Security.SecurityElement.Escape(Content.Value)); |
|
269 |
} |
|
268 | 270 |
} |
269 |
} |
|
270 | 271 |
|
271 |
writer.Write(xamlData); |
|
272 |
writer.Flush(); |
|
272 |
await writer.WriteAsync(xamlData); |
|
273 |
await writer.FlushAsync(); |
|
274 |
} |
|
273 | 275 |
stream.Position = 0; |
274 | 276 |
|
275 | 277 |
object obj = XamlReader.Load(stream); |
내보내기 Unified diff