_box = null;
}
- if(_progress != null)
+ if (_progress != null)
{
_progress.Unrealize();
_progress = null;
void UpdateProcessVisibility()
{
- if(!XForms.IsInitialized)
+ if (!XForms.IsInitialized)
{
Log.Debug(FormsCircularUI.Tag, "Tizen Forms is not initialized");
return;
Style = "bottom"
};
- if (!string.IsNullOrEmpty(BottomButton.Text))_bottomButton.Text = BottomButton.Text;
+ if (!string.IsNullOrEmpty(BottomButton.Text)) _bottomButton.Text = BottomButton.Text;
if (!BottomButton.IconImageSource.IsNullOrEmpty())
{
void UpdateTitle()
{
+ string title = _title?.Replace("&", "&")
+ .Replace("<", "<")
+ .Replace(">", ">")
+ .Replace(Environment.NewLine, "<br>");
+
if (!_isProgressRunning)
{
- _layout.SetPartText("elm.text.title", _title);
+ _layout.SetPartText("elm.text.title", title);
}
else
{
void UpdateText()
{
+ string text = _text?.Replace("&", "&")
+ .Replace("<", "<")
+ .Replace(">", ">")
+ .Replace(Environment.NewLine, "<br>");
+
if (!_isProgressRunning)
{
- _layout.SetPartText("elm.text", _text);
+ _layout.SetPartText("elm.text", text);
}
else
{
_layout.SetPartText("elm.text", null);
- if (!string.IsNullOrEmpty(_text))
+ if (!string.IsNullOrEmpty(text))
{
if (_progressLabel == null)
{
TextStyle = "DEFAULT ='font=Tizen:style=Light color=#F9F9F9FF font_size=32 align=center valign=top wrap=word'",
};
}
- _progressLabel.Text = _text;
+ _progressLabel.Text = text;
_progressLabel.Show();
if (_box != null)
{