| |
browse.develop.com
Browse.develop.com is a community that was established to collect and
organize valuable web information. Our technical staff have selected and
indexed information and courses that they feel will help you stay
current on best practices across the SDLC.
|
6 Articles match "Memory Leak","WPF"
| The Latest from DevelopMentor | MORE | | Simple MVVM Toolkit versus MVVM Light Toolkit Both Simple MVVM and MVVM Light toolkits support WPF, Silverlight and Windows Phone clients. One is an assortment of small samples, each illustrating a particular feature or aspect of the toolkit: Property Association, Enums, Async, Dependency Injection, Messaging, Navigation, and RIA Services, as well as Getting Started samples for Silverlight, WPF and Windows Phone. And the MessageBus uses a leak-proof eventing model , which means you never have to worry about unregistering with the MessageBus. Simple MVVM Toolkit would fall into the latter category. Platforms. Support. Tony and Zuzana's World - Saturday, April 23, 2011 Simple Mvvm Toolkit Version 2.0: Better and Even Easier to Use You heard right, the installer not only gives you the item templates and code snippets you had in v1, but it also provides four project templates : Silverlight, Windows Phone, WPF and RIA Services. To get started just open Visual Studio, select File, New Project, then click on the Mvvm category beneath Windows (for WPF), Silverlight, or Silverlight for Windows Phone. I have just released version 2.0 of the Simple Mvvm Toolkit on CodePlex , NuGet and the Visual Studio Extensions Gallery. This is nice, but the amazingly awesome project template is SimpleMvvmRiaServices. Sweet. Tony and Zuzana's World - Wednesday, April 13, 2011 Building a Leak-Proof Eventing Model One of the main features of the.NET Framework is to provide automatic memory management via garbage collection. You might think this would solve the problem of memory leaks in managed applications, but the effectiveness of the garbage collector can be hampered by your code. The GC will not release memory from objects that have root references, which can be local or static variables. If you create more instances and maintain references to them, memory consumption will continue to grow, resulting in a leaky application. public class System. Yikes! Tony and Zuzana's World - Tuesday, March 22, 2011 | -
| The Best from DevelopMentor | MORE | - MVVM: Views and ViewModels
Views are the UI presentation of data - in the case of a WPF/Silverlight application this is most commonly the XAML and XAML code behind files (they are considered a single element together). That way, my ViewModel sticks with base (non-WPF) types. This is necessary under WPF 3.5 The delegate instance is held in a weak reference so there’s no concern for memory leaks. Tags: NET Code MVVM WPF In the previous post, I provided a link to the project template you can use to start a new MVVM project using the JulMar MVVM library. Project Template. ViewModels. - Building a Leak-Proof Eventing Model
One of the main features of the.NET Framework is to provide automatic memory management via garbage collection. You might think this would solve the problem of memory leaks in managed applications, but the effectiveness of the garbage collector can be hampered by your code. The GC will not release memory from objects that have root references, which can be local or static variables. If you create more instances and maintain references to them, memory consumption will continue to grow, resulting in a leaky application. public class System. Yikes! Tony and Zuzana's World - Tuesday, March 22, 2011 - Simple MVVM Toolkit versus MVVM Light Toolkit
Both Simple MVVM and MVVM Light toolkits support WPF, Silverlight and Windows Phone clients. One is an assortment of small samples, each illustrating a particular feature or aspect of the toolkit: Property Association, Enums, Async, Dependency Injection, Messaging, Navigation, and RIA Services, as well as Getting Started samples for Silverlight, WPF and Windows Phone. And the MessageBus uses a leak-proof eventing model , which means you never have to worry about unregistering with the MessageBus. Simple MVVM Toolkit would fall into the latter category. Platforms. Support. Tony and Zuzana's World - Saturday, April 23, 2011 - Simple Mvvm Toolkit Version 2.0: Better and Even Easier to Use
You heard right, the installer not only gives you the item templates and code snippets you had in v1, but it also provides four project templates : Silverlight, Windows Phone, WPF and RIA Services. To get started just open Visual Studio, select File, New Project, then click on the Mvvm category beneath Windows (for WPF), Silverlight, or Silverlight for Windows Phone. I have just released version 2.0 of the Simple Mvvm Toolkit on CodePlex , NuGet and the Visual Studio Extensions Gallery. This is nice, but the amazingly awesome project template is SimpleMvvmRiaServices. Sweet. Tony and Zuzana's World - Wednesday, April 13, 2011 - MVVM: Service Locator
cf0 cf3 ///cf4 This method registers known WPF services with the service provider.par ??cf0 par ??} -->. ///. /// This method registers known WPF services with the. /// service provider. ///. This normally isn’t an issue as most services are lifetime services and are intended to be around until the end, but if you are using a transient service and only need it for a short period please remember this point so you don’t create an unintentional memory “leak”. anyway). What is the Service Locator? It relates a type key to a specific object implementation. It’s easy. Mark's Blog of Random Thoughts - Wednesday, January 27, 2010 - MVVM Helpers 1: Views and ViewModels
Views are the UI presentation of data - in the case of a WPF/Silverlight application this is most commonly the XAML and XAML code behind files (they are considered a single element together). That way, my ViewModel sticks with base (non-WPF) types. This is necessary under WPF 3.5 The delegate instance is held in a weak reference so there’s no concern for memory leaks. Tags: NET Code MVVM WPF In the previous post, I provided a link to the project template you can use to start a new MVVM project using the JulMar MVVM library. Project Template. ViewModels. %>
| | |