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

Upgrade from SL4 to SL5 controls Theme issue

9 Answers 72 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Lindsay Miles
Top achievements
Rank 1
Lindsay Miles asked on 29 Mar 2012, 04:07 PM
Hello,

I've upgraded one of my projects to use the latest SL5 controls, re-referenced all necessary components etc.

The project builds without error and starts up but the app does not appear.

Following a breakpoint I get this runtime error, see below, please advise.
I assume it is something to do with a theme file missing or in the wrong location.


00000000 push ebp

00000001 mov ebp,esp

00000003 sub esp,14h

00000006 xor eax,eax

00000008 mov dword ptr [ebp-0Ch],eax

0000000b mov dword ptr [ebp-10h],eax

0000000e mov dword ptr [ebp-14h],eax

00000011 mov dword ptr [ebp-4],ecx

00000014 mov dword ptr [ebp-8],edx

00000017 cmp dword ptr ds:[03A75264h],0

0000001e je 00000029

00000020 nop

00000021 nop

00000022 nop

00000023 nop

00000024 call 51C0D0B4

00000029 nop

0000002a mov eax,dword ptr [ebp-8]

0000002d mov dword ptr [ebp-0Ch],eax

00000030 nop

00000031 nop

00000032 nop

00000033 nop

00000034 xor edx,edx

00000036 mov dword ptr [ebp-10h],edx

--- Telerik.Windows.Controls.Navigation;Component\Themes\Office\Black\Window.xaml

00000039 mov ecx,dword ptr [ebp-0Ch]

0000003c mov edx,dword ptr [ebp-10h]

0000003f cmp dword ptr [ecx],ecx

00000041 nop

00000042 nop

00000043 nop

00000044 nop

00000045 call 516AC3C0

0000004a mov dword ptr [ebp-14h],eax

0000004d nop

0000004e nop

0000004f mov esp,ebp

00000051 pop ebp

00000052 ret



9 Answers, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 30 Mar 2012, 08:23 AM
Hello Lindsay,

 

Actually with our Q1 2012 SP1 we have introduced a new way of styling RadControls using implicit styles. You will find two folders using our standard binaries and NoXAML binaries. The idea of the new assemblies is to use them with completely implicit styles instead the current way of styling. In the normal assemblies you have all the XAML for all components for all themes included in the dll and the styling is done with explicitly set styles - you have huge assembly, you have styles and resources not applicable for your application, etc. You may find more info on this topic following this link. I suggest that you have referenced the NoXAML binaries and by that reason the controls do not appear. 
Will you please check this one and let me know how it goes? 



Greetings,
Vanya Pavlova
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Lindsay Miles
Top achievements
Rank 1
answered on 30 Mar 2012, 08:44 PM
OK,

The path to my referenced dlls is:
C:\Program Files (x86)\Telerik\RadControls for Silverlight Q1 2012\Binaries\Silverlight\Telerik.Windows.Controls.dll

I don't THINK I'm referencing the wrong binaries.
Should I reference these?

C:\Program Files (x86)\Telerik\RadControls for Silverlight Q1 2012\Binaries.NoXaml\Silverlight\Telerik.Windows.Controls.dll

I've tried both and neither work.
I'm not setting the theme or styling anywhere, only using what is standard for now, so I have no idea how to fix this.


Thanks
0
Vanya Pavlova
Telerik team
answered on 02 Apr 2012, 07:52 AM
Hello Lindsay,

 

Indeed you are adding the right references. The behavior you described is a bit strange.
I am attaching you sample project and a screenshot for further reference.
Will you please take a look at the attached project and let me know how it differs from yours? 


Greetings,
Vanya Pavlova
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Lindsay Miles
Top achievements
Rank 1
answered on 17 Apr 2012, 02:54 PM
Vanya, sorry, I've been dragged off this for a bit.

Now it's suddenly urgent and I've still not been able to solve it.
Yes, in answer to your question, all seems the same between my project and yours.

I've done everything I can now but no SL components will show up in this project...

I have now tried reverting back to SL4, re-assigned the previous telerik dlls, cleaned and rebuilt all projects (3) in the solution.
Same issue, I can no longer see any SL controls at runtime.

Also, running OOB, the containing window will not close using X either. I need to actually stop debugging the app in VS.

Methinks something in SL5 and telerik is out of sync here. Versioning, an internal reference, not sure what but this is really screwing up this current solution!

Any further advice on what to check and/or lokk for would be most helpful.

Thanks
0
Vlad
Telerik team
answered on 17 Apr 2012, 02:57 PM
Hi,

Do you get the same with the attached project and/or other not Telerik related projects?

Regards,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Lindsay Miles
Top achievements
Rank 1
answered on 17 Apr 2012, 03:06 PM
Sorry, no, your sample works and the controls show up.

I've been through everthing and cannot see the difference in what you've sent me.
I'm not doing anything unusual or special at all on my project.

The UI controls simply will not display and I can get this in disassembly...

00000000 push ebp

00000001 mov ebp,esp

00000003 sub esp,14h

00000006 xor eax,eax

00000008 mov dword ptr [ebp-0Ch],eax

0000000b mov dword ptr [ebp-10h],eax

0000000e mov dword ptr [ebp-14h],eax

00000011 mov dword ptr [ebp-4],ecx

00000014 mov dword ptr [ebp-8],edx

00000017 cmp dword ptr ds:[057E5264h],0

0000001e je 00000029

00000020 nop

00000021 nop

00000022 nop

00000023 nop

00000024 call 667ED314

00000029 nop

0000002a mov eax,dword ptr [ebp-8]

0000002d mov dword ptr [ebp-0Ch],eax

00000030 nop

00000031 nop

00000032 nop

00000033 nop

00000034 xor edx,edx

00000036 mov dword ptr [ebp-10h],edx

--- Telerik.Windows.Controls.Navigation;Component\Themes\Office\Black\Window.xaml

00000039 mov ecx,dword ptr [ebp-0Ch]

0000003c mov edx,dword ptr [ebp-10h]

0000003f cmp dword ptr [ecx],ecx

00000041 nop

00000042 nop

00000043 nop

00000044 nop

00000045 call 50B5C620

0000004a mov dword ptr [ebp-14h],eax

0000004d nop

0000004e nop

0000004f mov esp,ebp

00000051 pop ebp

00000052 ret


0
Vlad
Telerik team
answered on 17 Apr 2012, 03:12 PM
Hello,

 You can open support ticket and send us small example project demonstrating the issue. Once we have the project we will let you know what's going on!

Regards,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Lindsay Miles
Top achievements
Rank 1
answered on 17 Apr 2012, 03:19 PM
Vlad,

I've created a couple test projects because I thought it might have been a component installation issue or a SL5 issue.
Test project work just fine with all the right references too...so no point in sending a sample as they all work :-)

It is only on THIS one project and I cannot figure it out.

No idea what to do here. I can skype and share screen if that'll help...we can take this offline.
0
Lindsay Miles
Top achievements
Rank 1
answered on 17 Apr 2012, 04:22 PM
Vlad, further to this, here are my assumptions so far:

Take a look at the disassembly dump. This line i THINK tells us part of the problem:
--- Telerik.Windows.Controls.Navigation;Component\Themes\Office\Black\Window.xaml

The only control I'm using under Telerik.Windows.Controls.Navigation is the RadWindow
Somehow it is looking for a theme under Component\Themes\Office\Black\Window.xaml (I think).

I have no such paths (if that what this is refering to) on my machine. The closest is:
C:\Program Files (x86)\Telerik\RadControls for Silverlight Q1 2012\Themes\OfficeBlack\Themes\Office\Black
OR
C:\Program Files (x86)\Telerik\RadControls for Silverlight Q1 2012\Themes\OfficeBlack\Themes
OR
C:\Program Files (x86)\Telerik\RadControls for Silverlight Q3 2011 SP1\Themes\OfficeBlack\Themes\Office\Black
Only this last one contains a Windows.xaml file

Not sure if that helps...


Tags
General Discussions
Asked by
Lindsay Miles
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Lindsay Miles
Top achievements
Rank 1
Vlad
Telerik team
Share this question
or