Re: WPF and old style Open File Dialog on x64 systems?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



You should have both versions 5.xxx.yyy.zzzz and 6.xxx.yyy.zzz installed in winSxS, and this for both X86 and amd64.


Willy.

"Stefanie Mehl" <StefanieM@xxxxxxxxxxxxx> wrote in message news:10E8FA7B-6EAE-4A20-8D5A-3DADDCF19D0D@xxxxxxxxxxxxxxxx
Hi,

It is a well known fact that if you use the Microsoft.Win32.OpenFileDialog
from an WPF application you will have old fashioned buttons and icons. The
proposed solution to this problem (at least for ClickOnce applications) is to
put a certain paragraph into the .exe.manifest file
(http://bombayboy.wordpress.com/2006/09/09/wpf-avalon-clickonce-application-and-fileopendialog-2/):

<dependency>
<dependentAssembly>
<assemblyIdentity
type=”win32″
name=”Microsoft.Windows.Common-Controls”
version=”6.0.0.0″
processorArchitecture=”X86″
publicKeyToken=”6595b64144ccf1df”
language=”*”
/>
</dependentAssembly>
</dependency>

Other options proposed are: Try to use EnableVisualStyles where people
assume that this is not stable (SEHExceptions problems?). Or implement the
dialog yourself by using a "Vista Bridge" sample from the Windows SDK, which
probably works only on Vista systems.
(http://reader.feedshow.com/show_items-feed=d7f39942385afee366f96021e8eb6263?page=1).

Howerver, the majority votes for the manifest solution, but there seems to
be a serious drawback: On Windows XP 64 bit versions, there is no version of
Common Controls that matches this entry in the manifest file. There are wow64
and amd64 versions of CommonControls 6.0.x available but for applications
compiled for 32 bit none of them can be used. For 32 bit applications, only
version 5.8.x is available which makes it very risky to use the above
mentioned entry in the manifest file because the ClickOnce application will
crash at install time.

Is there really no better solution to display decent OpenFileDialogs in WPF?

Best regards,

Stefanie


.



Relevant Pages

  • Re: Forcing a VB6 application to run with administrative privileges
    ... That article says it must be embeded, but I find it works just the same with an external manifest file. ... "Steve Easton" wrote in message ... Microsoft talks about adding a manifest, a small piece of code, but that is for .Net based applications built with Visual Studio.Net and involves adding code to the web.config file and the resource table. ... As part of my install there is an AutoInstall program that takes up to six arguments. ...
    (microsoft.public.vb.general.discussion)
  • Re: Browers wont run
    ... You may need to get the applications on another machine and install them ... May also want to try and install/use Firefox Internet Browser. ... Microsoft has these suggestions for Protecting your computer from the ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: FileSpy
    ... Microsoft has these suggestions for Protecting your computer from the ... applications you can use to protect yourself. ... using Windows XP "prettifications". ... install a third-party application and configure/maintain it. ...
    (microsoft.public.security)
  • Re: Errors with Windows XP
    ... Microsoft has these suggestions for Protecting your computer from the ... More full function applications for CD/DVD burning would be: ... using Windows XP "prettifications". ... install a third-party application and configure/maintain it. ...
    (microsoft.public.windowsxp.basics)
  • Re: When I am installing software on my system it takes forever.
    ... Microsoft has these suggestions for Protecting your computer from the ... More full function applications for CD/DVD burning would be: ... using Windows XP "prettifications". ... install a third-party application and configure/maintain it. ...
    (microsoft.public.windowsxp.perform_maintain)