Windows8TouchTheme Encoding

5 posts, 0 answers
  1. Wang
    Wang avatar
    42 posts
    Member since:
    Oct 2011

    Posted 09 May Link to this post

    Hello!

    I have a problem when using Windows8TouchTheme,

    when alert in Windows8TouchTheme, the punctuations can not show incorrect.

    but in windows7theme,it is all right.

     

  2. Wang
    Wang avatar
    42 posts
    Member since:
    Oct 2011

    Posted 09 May Link to this post

    It seems the website could not attach image Containing the Chinese,

    attach a image again.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 12 May Link to this post

    Hello Wang,

    I didn't manage to reproduce the reported issue, so could you to send us some sample code showing how you're setting the Alert?

    Thanks in advance.

    Regards,
    Yana
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  5. Wang
    Wang avatar
    42 posts
    Member since:
    Oct 2011

    Posted 12 May Link to this post

    here is the code:

    using System.Windows;
    using Telerik.Windows.Controls;

    namespace WpfTest
    {
        /// <summary>
        /// MainWindow.xaml 的交互逻辑
        /// </summary>
        public partial class MainWindow : Window
        {
            public MainWindow()
            {
                InitializeComponent();
                StyleManager.ApplicationTheme = new Windows8TouchTheme();
                
            }

            private void button_Click(object sender, RoutedEventArgs e)
            {
                RadWindow.Alert(new DialogParameters
                {
                    Header = "提示信息",
                    Content = "用户名或密码不正确,登录失败!",
                    OkButtonContent = "确定",
                    Owner = Application.Current.MainWindow
                });
            }
        }
    }

  6. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 13 May Link to this post

    Hello Wang,

    I have tested the provided code with the latest release of UI for WPF and the punctuation is displayed as expected, please check the attached screenshot.

    Could you check the version that you're using?

    Regards,
    Yana
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Back to Top
UI for WPF is Visual Studio 2017 Ready