diff options
author | Seungkeun Lee <sngn.lee@samsung.com> | 2017-01-24 07:52:46 +0900 |
---|---|---|
committer | Kangho Hur <kangho.hur@samsung.com> | 2017-07-10 11:11:18 +0900 |
commit | c1abf316bd5fd60a8bb1b0826c75772957a856a0 (patch) | |
tree | 4c67e2c40bf8006813e403005100bcab27c28aac /Xamarin.Forms.Platform.Tizen/Native | |
parent | 11142acc1a75484569f217f0986a61be59012a89 (diff) | |
download | xamarin-forms-c1abf316bd5fd60a8bb1b0826c75772957a856a0.tar.gz xamarin-forms-c1abf316bd5fd60a8bb1b0826c75772957a856a0.tar.bz2 xamarin-forms-c1abf316bd5fd60a8bb1b0826c75772957a856a0.zip |
Refactoring LabelRenderer
- Optimize update of FormattedText
Change-Id: Iad0b8a4972bfef97f28502d724d443188411f760
Diffstat (limited to 'Xamarin.Forms.Platform.Tizen/Native')
-rw-r--r-- | Xamarin.Forms.Platform.Tizen/Native/FormattedString.cs | 3 | ||||
-rw-r--r--[-rwxr-xr-x] | Xamarin.Forms.Platform.Tizen/Native/Span.cs | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Native/FormattedString.cs b/Xamarin.Forms.Platform.Tizen/Native/FormattedString.cs index da3d1460..cb93aff9 100644 --- a/Xamarin.Forms.Platform.Tizen/Native/FormattedString.cs +++ b/Xamarin.Forms.Platform.Tizen/Native/FormattedString.cs @@ -92,8 +92,7 @@ namespace Xamarin.Forms.Platform.Tizen.Native } else { - var conStr = string.Concat(from span in this.Spans select span.GetMarkupText()); - return conStr.Replace(Environment.NewLine, "<br>"); + return string.Concat(from span in Spans select span.GetMarkupText()); } } diff --git a/Xamarin.Forms.Platform.Tizen/Native/Span.cs b/Xamarin.Forms.Platform.Tizen/Native/Span.cs index c92fefcf..f0932f4b 100755..100644 --- a/Xamarin.Forms.Platform.Tizen/Native/Span.cs +++ b/Xamarin.Forms.Platform.Tizen/Native/Span.cs @@ -1,3 +1,4 @@ +using System; using System.Text; using EColor = ElmSharp.Color; @@ -272,7 +273,7 @@ namespace Xamarin.Forms.Platform.Tizen.Native { return text.Replace("<", "<") .Replace(">", ">") - .Replace("\n", "<br>"); + .Replace(Environment.NewLine, "<br>"); } public string GetStyle() |