Help with wide strings
Posted: 02 Sep 2013, 03:57
Well, I feel kind of stupid asking this but I am having some trouble settings text programmatically on my Buttons and TextBlock objects. All my text uses 16 bit characters (it is Japanese). I'm a little lost looking through the string headers. I'm also a little confused because some of the documentation (namely Core.Kernel.Strings.html) references code that appears to be missing from the include directory of the SDK (I don't see String16).
How can I construct an NsString with 16 bit characters to give to SetText of a TextBlock?
How can I provide a 16 bit character string to a Button which does not have a SetText method, but a SetContent method instead?
I can do these things fine through the xaml, but I need to be able to do it in code as well.
How can I construct an NsString with 16 bit characters to give to SetText of a TextBlock?
How can I provide a 16 bit character string to a Button which does not have a SetText method, but a SetContent method instead?
I can do these things fine through the xaml, but I need to be able to do it in code as well.