BoxKite.Notifications icon indicating copy to clipboard operation
BoxKite.Notifications copied to clipboard

Setting the locale breaks stuff (?!?!)

Open shiftkey opened this issue 12 years ago • 0 comments

From https://gist.github.com/xpaulbettsx/5632430

var toast = ToastContentFactory.CreateToastText02();

toast.TextHeading.Text = "A Thing!";
toast.TextBodyWrap.Text = "DO IT";
toast.Lang = "en-US";
toast.BaseUri = "http://google.com";
toast.Duration = BoxKite.Notifications.ToastDuration.Long;
toast.StrictValidation = false;

ToastNotificationManager.CreateToastNotifier().Show(new ToastNotification(toast.GetXml()));

and removing this line:

toast.Lang = "en-US";

Fixes All The Things

@xpaulbettsx - I know this came up a while ago, but is there anything in Event Viewer which might have explained this?

Applications and Services Logs > Microsoft > Windows > Immersive-Shell > Microsoft-Windows-TWinUI > Operational

shiftkey avatar Jun 02 '13 02:06 shiftkey