E
eselk2003
After reading the book "Sams teach yourself WPF" cover-to-cover over
my xmas vacation I decided to build the most basic of EXEs just to see
how it would run on different PCs with different versions of .NET
installed. I just used VS 2008 to create the most basic WPF
application with just one TextBox control centered on the main window,
pretty much:
1. Created new WPF app from the File->New Project option.
2. Dragged a TextBox from the control box and dropped it on the main
window.
3. Changed the build mode to Release instead of debug, then built the
EXE.
The EXE is tiny, about 13KB.
I copied just the EXE to 2 different test PCs, one running XP SP3, and
another running Vista.
On either of these PCs I can type in Notepad or Microsoft Word (2000
on XP, 2007 on Vista) and the display is able to keep up with my
typing (about 60 words per minute).
However, my little WPF app, when I type in the text box, it can't keep
up. By the time I've typed 10 words, the display is already a full
word behind.
....as I've been typing this message using Google's interface inside
IE6 on the test XP system, it keeps up with my typing, and this window
has a lot more going on than my test app.
Has anyone else noticed this? Is there some "make my app run super
slow" setting that is enabled by default and I just need to turn it
off? =]
I selected .NET 3.5 when creating the new project in VS 2008, and the
systems I'm testing on don't have any weird/BETA versions of the run-
times that I know of. They are actually "pretty fast" as far as other
applications I use them for (Office apps), not top of the line or
anything, but I would expect just a window with a text box (my test
app) to work well even on a pretty low-end system.
Here is the XAML (I tried with and without spell checking enabled,
didn't make a difference):
<Window x:Class="Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1" Height="300" Width="300"
WindowStartupLocation="CenterScreen" WindowState="Maximized"
FocusManager.FocusedElement="{Binding ElementName=TextBox1}">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="74*" />
<ColumnDefinition Width="204*" />
</Grid.ColumnDefinitions>
<TextBox Margin="10" Name="TextBox1"
SpellCheck.IsEnabled="true" Grid.ColumnSpan="2"
VerticalScrollBarVisibility="Auto" TextWrapping="Wrap"
AcceptsReturn="true" AcceptsTab="true" FontSize="14">
</TextBox>
</Grid>
</Window>
my xmas vacation I decided to build the most basic of EXEs just to see
how it would run on different PCs with different versions of .NET
installed. I just used VS 2008 to create the most basic WPF
application with just one TextBox control centered on the main window,
pretty much:
1. Created new WPF app from the File->New Project option.
2. Dragged a TextBox from the control box and dropped it on the main
window.
3. Changed the build mode to Release instead of debug, then built the
EXE.
The EXE is tiny, about 13KB.
I copied just the EXE to 2 different test PCs, one running XP SP3, and
another running Vista.
On either of these PCs I can type in Notepad or Microsoft Word (2000
on XP, 2007 on Vista) and the display is able to keep up with my
typing (about 60 words per minute).
However, my little WPF app, when I type in the text box, it can't keep
up. By the time I've typed 10 words, the display is already a full
word behind.
....as I've been typing this message using Google's interface inside
IE6 on the test XP system, it keeps up with my typing, and this window
has a lot more going on than my test app.
Has anyone else noticed this? Is there some "make my app run super
slow" setting that is enabled by default and I just need to turn it
off? =]
I selected .NET 3.5 when creating the new project in VS 2008, and the
systems I'm testing on don't have any weird/BETA versions of the run-
times that I know of. They are actually "pretty fast" as far as other
applications I use them for (Office apps), not top of the line or
anything, but I would expect just a window with a text box (my test
app) to work well even on a pretty low-end system.
Here is the XAML (I tried with and without spell checking enabled,
didn't make a difference):
<Window x:Class="Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1" Height="300" Width="300"
WindowStartupLocation="CenterScreen" WindowState="Maximized"
FocusManager.FocusedElement="{Binding ElementName=TextBox1}">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="74*" />
<ColumnDefinition Width="204*" />
</Grid.ColumnDefinitions>
<TextBox Margin="10" Name="TextBox1"
SpellCheck.IsEnabled="true" Grid.ColumnSpan="2"
VerticalScrollBarVisibility="Auto" TextWrapping="Wrap"
AcceptsReturn="true" AcceptsTab="true" FontSize="14">
</TextBox>
</Grid>
</Window>