windows 8 - RichEditBox crashes in certain condition. -
rich edit box crashes me if try set fontsize it.
c# code:
reb_value.document.settext(textsetoptions.none, "company name, \nstreet name zip code. \n123-456-7890"); the xaml:
<stackpanel orientation="vertical"> <textblock text="lable field:" style="{staticresource textblockstyle}"/> <richeditbox name="reb_value" contextmenuopening="oncontextmenuopening" style="{staticresource mystyle}" selectionchanged="onselectionchanged" > </richeditbox> </stackpanel> style:
<style x:key="mystyle" targettype="richeditbox"> ... <setter property="borderbrush" value="transparent"/> <setter property="borderthickness" value="{staticresource textcontrolborderthemethickness}"/> <setter property="fontfamily" value="{staticresource contentcontrolthemefontfamily}"/> <setter property="fontsize" value="14"/> ... </style> the page renders/loads if remove property <setter property="fontsize" value="14"/> or if put /n @ end of string ie: "company name, \nstreet name zip code. \n123-456-7890\n"
there other richeditboxes works fine, eg:
someotherreb.document.settext(textsetoptions.none, "123456789"); i don't understand why happening?
can show crash stack? tried create repro couldn't hit issue. let me know need change hit crash: https://github.com/finnigantime/samples/tree/master/examples/win8xaml/rebcrash
Comments
Post a Comment