Here is the situation:
I just build a basic WPF application with a simple grid with a <LabeL>
that display Hello Word!
Here is the XAML:
<Window x:Class="TestShell.NoCaliburn.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525">
<Grid>
<Label VerticalAlignment="Center" HorizontalAlignment="Center">Hello World!</Label>
</Grid>
</Window>
On my machine I have installed .Net 4.5
and the application show up under a second. But on my collegue machine the application show up after ≈10s.
- I've tried to repair .Net framework on my collegue machine
- Run this Command (NGEN update)
- Compile the application under different .NET version
- Compile the application in 32 and 64 bits.
NOTE This behavior happen only with WPF
What I'm missing ?
I experienced this issue
my wpf apps usually :
1- run faster on 32bit systems than 64bit systems
2- if directx is installed it will affect the application as the wpf is running based on directx and the version of directx is important also:
directx version 7 or greater : No graphics hardware acceleration
directx version 7 or greater and lesser than version 9.0 : Rendering Tier 1 Partial graphics hardware acceleration
directx version 9 or greater : Most graphics features use graphics hardware acceleration.
so most recent version always is better for your wpf app
use .net version 4 or later, for better clearer text
also check if the graphic card driver is installed and it's version is the latest release
and many more... but these infos are enough for your situation
good luck