What is the best way to switch between touch and non touch screen ?

3 posts, 1 answers
  1. ajoua taha
    ajoua taha avatar
    25 posts
    Member since:
    Feb 2016

    Posted 21 Mar Link to this post

    Hi,

    What is the best way to implement the feature of switching between Touch and non Touch Screen ?

    Is there any way to do it with a single Xaml file not like it is implemented within th telerik WPF Demo ?

    Thanks

  2. Answer
    Martin
    Admin
    Martin avatar
    1101 posts

    Posted 24 Mar Link to this post

    Hi Taha,

    I guess by Touch and non Touch screen you mean the theme changing on click the "Switch to Touch" button in the UI for WPF demos application. If that so, the example is using our implicit styles theming mechanism which requires to merge the required resource dictionaries (the xaml files) with the controls styles. The number of the files that need to be merged depends on the controls used in the application.

    So, the answer to your questions is, it depends. If you are using only controls from the Telerik.Windows.Controls assembly, yes you can change the theme using only a single xaml file. However, if you have controls from other dlls like Telerik.Windows.Controls.Navigation for example, you will need to merge them as well.

    I prepared a small example demonstrating change in the Telerik controls theme. The used themes are Windows8 and Windows8Touch. Please give it a try and let me know if it helps.

    Regards,
    Martin
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. UI for WPF is Visual Studio 2017 Ready
  4. ajoua taha
    ajoua taha avatar
    25 posts
    Member since:
    Feb 2016

    Posted 24 Mar Link to this post

    Hi Martin,

    Think you for replying , that was benefic for me , that's exactly what i needed

Back to Top