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

Fluent theme - strange behavior in XAML designer

14 Answers 139 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
Hans
Top achievements
Rank 1
Veteran
Hans asked on 28 Oct 2019, 09:18 AM

Hi,

We experience some strange behavior in the xaml designer (Visual Studio 2017) when we apply the Fluent theme on the TabControl

<Style x:Key="DefaultTelerikRadTabControlStyle" TargetType="telerik:RadTabControl">
    <Setter Property="telerik:StyleManager.Theme" Value="{StaticResource FluentTheme}"/>
</Style>
<Style TargetType="{x:Type telerik:RadTabControl}" BasedOn="{StaticResource DefaultTelerikRadTabControlStyle}"/>

 

When the header of a tabitem is clicked, the designer does not 'switch' to that tab.  This happens randomly (not all of the time) and is pretty annoying.  Only thing to do when this happens is to restart Visual Studio.

The problem does not occur when setting the theme to Office2016.

Regards,
Hans

 

14 Answers, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 31 Oct 2019, 07:54 AM

Hello Hans,

Thank you for the provided code snippet.

I have tried to reproduce this behavior using the provided information but to no avail. May I ask you to specify which version of VS 2017 you have on your machine. On my side, I have VS 2017 15.9.5. I am also attaching the sample project, which I used to test your scenario. You can check it out and let me know if I am missing additional code.

Regards,
Dinko
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Hans
Top achievements
Rank 1
Veteran
answered on 15 Nov 2019, 11:19 AM

Hi Dinko,

I could not reproduce the problem in you sample project.  My version of VS 2017 is 15.9.7.  I recently installed the latest Telerik version (2019.3.1023) and I have the impression the problem does not occur anymore, but like I said in my first post, it's very randomly.  I'll keep you posted.

Regards,
Hans

0
Dinko | Tech Support Engineer
Telerik team
answered on 19 Nov 2019, 01:09 PM

Hi Hans,

Thank you for the provided details.

If you manage to isolate this behavior in a stand-alone project you can send it to me so I can further investigate this.

Regards,
Dinko
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Hans
Top achievements
Rank 1
Veteran
answered on 14 Jan 2020, 10:46 AM

Hi Dinko,

first of all my best wishes for 2020 !

A new year, a fresh start but sadly enough my problem is still there and it's very irritating.  Here's a sumay of my findings so far:

  • As stated in my previous post, I cannot reproduce the problem in a newly created project
  • The problem has nothing to do with the selected theme (contrary to what I stated in the first post)
  • The problem only occurs in a specific project of my solution.  When I create a new window with RadTabControl in another project of the solution, everything works fine.
  • My colleague has the same problem.
  • As far as I can figure out, the problem has nothing to do with the used style, code in code behind or ViewModel.  To support this conclusion, I added a new window to this specific project, containing only a RadTabControl with 3 RadTabItem controls, nothing else (no code in code behind, no datacontext set, no nothing).  After I selected another view and switched back to this test view, the problem occurred (not possible to change the tab)
  • I deleted all Telerik references in this project and added them back by using the "Configure Project" option of the "Telerik UI for WPF"' context menu, without any luck

As I would like to find a solution very quick now, I would like to submit a ticket that contains the the information of this thread and I would like to take advantage of the Telerik Remote Web Assistance.  How do I proceed ?

Regards
Hans

 

 

0
Dinko | Tech Support Engineer
Telerik team
answered on 15 Jan 2020, 12:46 PM

Hi Hans,

Thank you for the provided details.

The remote web assistance service is available only for the DevCraft Ultimate package. Still, we will do our best to resolve this behavior. As per your request, I have converted this tread to General Feedback so that the response time will be 24 hours.

After reading your findings I have tried a few approaches on my side and I think I manage to reproduce it. In my previous project I have just added another window with sample RadTabControl with 3 RadTabItems inside. So when I switch from the MainWindow to the TestWindow the tabs can't be changed in the designer. You can find the project attached to this reply.

I still haven't found the reason behind this and I need more time to further investigate it. I will contact you again as soon as I have more information about your case.

Regards,
Dinko
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Hans
Top achievements
Rank 1
Veteran
answered on 15 Jan 2020, 01:59 PM

Hi Dinko,

I'm realy glad you managed to reproduce the problem.  I hope you guys will find a solution fast because it's realy driving my colleague and me crazy.

Regards
Hans

 
0
Dilyan Traykov
Telerik team
answered on 20 Jan 2020, 09:43 AM

Hi Hans,

I've gone ahead and created a new bug report on your behalf regarding this issue and forwarded it to our development team. I've also awarded you with some Telerik points for bringing this to our attention. We will try to address this with one of our next internal builds, but please follow the bug report to get notified about any changes in its status.

For the time being, I can recommend creating an external tool to restart the VS designer as demonstrated in this article so that you do not need to restart Visual Studio each time the issue occurs. I do hope you find this possible for the time being and I apologize for any inconvenience caused by this.

Regards,
Dilyan Traykov
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Hans
Top achievements
Rank 1
Veteran
answered on 21 Jan 2020, 07:50 AM

Hi Dilyan,

thanks for reporting the bug and the temporary solution.  Nevertheless I hope to see this bug fixed quickly.

Regards,
Hans

0
Dilyan Traykov
Telerik team
answered on 21 Jan 2020, 12:47 PM

Hi Hans,

Although I cannot commit to a certain time frame for the fix, you will be notified about any changes in the bug report's status. If I can further assist you with anything else in the meantime, however, please let me know.

Regards,
Dilyan Traykov
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Hans
Top achievements
Rank 1
Veteran
answered on 22 Jan 2020, 02:39 PM

Hi Dilyan,

where can I find an overview of all the bug reports I'm currently following ?
When I look at my account overview, I can only see my support tickets and tracked forum items ...

Regards
Hans

 
0
Dilyan Traykov
Telerik team
answered on 23 Jan 2020, 01:01 PM

Hi Hans,

You can find a list of all the bug reports you're currently following at the following link:
https://feedback.telerik.com/wpf?typeId=3&listMode=Followed
Please let me know if this is what you're looking for.

Regards,
Dilyan Traykov
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Hans
Top achievements
Rank 1
Veteran
answered on 23 Jan 2020, 04:09 PM

Hi Dilyan,

yes, that's it.  Thanks !

Regards,
Hans

0
Hans
Top achievements
Rank 1
Veteran
answered on 29 Jan 2020, 01:42 PM

Hi Dilyan and colleagues,

I'm following the status of the bug report on a daily bases because, as I already mentioned in previous posts, this is a really nasty and annoying bug (even with the trick provided by Dylian) and a quick fix is really crucial to me and my colleague developer.  Unfortunately, the vote count (3 for the moment !) is not increasing and so the status remains "Unplanned".

So, I can't help but wondering if we're the only ones having multiple views open at the same time in Visual Studio.  As this is a confirmed bug, surely there must be a bunch of developers cursing each day because of this bug ?

Regards,
Hans

0
Kalin
Telerik team
answered on 31 Jan 2020, 10:54 AM

Hello Hans,

Thanks for your input. We did investigate the cause of the described issue and problem lies in VisualStudio designer implementation. We are using custom DesignModeValueProvider that should be triggering the IsSelected property of each tab when the tab is activated in the designer. However it appears that this custom DesignModeValueProvider works as expected only in the first Window displayed in the designer and until it gets closed (if you close and reopen the MainWindow in the designer the behavior will stop working again).

Unfortunately the same behavior of the WPF TabControl is integrated deeply in the designer dlls, so it is not possible to use the same approach as seen there. One other thing we noticed is that the same designer behavior works correctly for our controls (RadTabControl) in the WPF NetCore project and designer. So if switching to NetCore is option to you - please give it a try.

We are in process of isolating the problem in really sample project and will log it to Microsoft afterwards. Once this is done I will update the public feedback item with link to the Microsoft item.

If you have any other questions or concerns, please let me know.

Regards,
Kalin
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
TabControl
Asked by
Hans
Top achievements
Rank 1
Veteran
Answers by
Dinko | Tech Support Engineer
Telerik team
Hans
Top achievements
Rank 1
Veteran
Dilyan Traykov
Telerik team
Kalin
Telerik team
Share this question
or