Jump to content
Xtreme .Net Talk

XAML Form used a lot more memory than a normal WinForm?


Recommended Posts

Posted
Just start trying XAML. Put a button and a textbox in it and built the application. The size of file seems the same as the WinForm one, but when I ran the application it took like 20+Mb instead of 8+Mb(for the WinForm, which I consider is huge already). Why the XAML made form takes so much memory? Doesn't XAML get transform into CLR which should be the same as the WinForm? I am surely missing something here:confused:
  • 1 month later...
  • Administrators
Posted

A bit late answering this one I know but...

 

XAML applications are fundamentally different to a normal window application, even though the code itself is compiled down to MSIL the actual front end isn't built using standard windows controls.

 

WPF applications have their own windowing system based around DirectX and it is probably this extra overhead that is accounting for some of the differerences in memory usage.

 

WPF really is designed for newer systems with plenty of resources and cpu / graphics power as opposed to older and lower specced machines.

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...