microsoft metro - Loading a rtf file in a windows store app -


I am trying to load an RTF file in a Windows Store app, though this file comes with a style And sometimes this style is not applicable and ohter is not time. This behavior is random completely (if I resume the apple again and occasionally uses the container then uses the style, not the other).

I RichEditBox only because.

I have a RichEditBox menu .xml

  lift; Grid & gt; & Lt; RichEditBox x: name = "InfoContentView" vertical alignment = "statch" bordertrain = "0" background = "{x: faucet}" foreground = "#FFFFF" /> & Lt; / Grid & gt;   

And then I am injecting the RTF file like this:

  this.InfoContentView.IsReadOnly = false; This.InfoContentView.Document.SetText (Windows.UI.Text.TextSetOptions.FormatRtf, textContent); This.InfoContentView.IsReadOnly = True;   

Text content is loaded from the application package. I understand that even when I look at the text completely, the work is fine even then.

I have tried to insert document text to clear every execution. Besides, I have added a button to refresh the behavior and it does not work in the first execution, but then, when I press the button several times, it is compatible.

I just want the behavior to be the same. I do not care that I have to format the file in the file or in the application.

The RTF file is quite simple and you can download the RTF file.

Well, this is the truth. I do not know if this is a bug or if I should not do this.

This grid was inside another grid in which visibility = collapsed it has been found that if I have a heap of visibility and after that I change it to change it , Then it would have been this random transaction I have hidden it from ambiguity and then it works. Although with this solution I had to do some hacking material, so in that area the opacity could be set to 0, then I could touch it.

I am not satisfied with my answer, but it can save some other time. I will accept any answers to this behavior

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -