This is a migrated thread and some comments may be shown as answers.

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

2 Answers 92 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
ajoua taha
Top achievements
Rank 1
ajoua taha asked on 21 Mar 2016, 11:31 AM

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 Answers, 1 is accepted

Sort by
0
Accepted
Martin Ivanov
Telerik team
answered on 24 Mar 2016, 08:50 AM
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.
0
ajoua taha
Top achievements
Rank 1
answered on 24 Mar 2016, 03:44 PM

Hi Martin,

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

Tags
General Discussions
Asked by
ajoua taha
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
ajoua taha
Top achievements
Rank 1
Share this question
or