| |
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.
|
17 Articles match "WPF"
See all articles with
"WPF"
| The Latest from Tony and Zuzana's World | MORE | | Simple MVVM Toolkit for Silverlight 5.0, Windows Phone 7.1 To get those, install the NuGet package manager from the Extensions Manager command under the Tools menu, then search for “SimpleMvvm” and select a package to install, depending on the type of project you have: WPF, Windows Phone, Silverlight 4 or Silverlight 5. I’ve just upgraded my Simple MVVM Toolki t to support Silverlight 5.0 and Windows Phone 7.1 ! You can download the latest version here and take it for a spin – or get it from the Visual Studio Extensions Gallery by opening Visual Studio and selecting Extensions Manager from the Tools menu. Enjoy DevelopMentor Courses - Friday, March 2, 2012 Screening C# Candidates: Let’s Play 20 Questions! For example, someone might be called upon to build a WPF app retrieving data from a WCF service that queries a SQL database using Entity Framework with Ninject for dependency injection and MOQ for unit testing. Neither do the questions touch on any of the “pillars” of the.NET Framework API, such as data access (Entity Framework), web services (WCF), or presentation platforms (WPF, SL, ASP.NET MVC). Over the past year I was involved in the process of interviewing candidates for both mid and senior level developer positions. This is the purpose of the technical phone screen. DevelopMentor Courses - Tuesday, February 28, 2012 2011 Recap It was at that time that I decided to write my own MVVM Toolkit, which I called “ Simple MVVM Toolkit ,” first targeting it for Silverlight, and then adding support for both WPF and Windows Phone. After a rather long break from blogging, it’s time for me to jump back in! thought I would start by taking a look back at 2011 and recapping some of my experiences, with a sneak peek at blogging topics I plan to cover in the next several weeks. On a personal level, we added a new member to our family: Kornelius Aaron Sneed, born February 8, 2011. He is the youngest of our three children. Tony and Zuzana's World - Tuesday, January 31, 2012 | | The Best from Tony and Zuzana's World | MORE | | Screening C# Candidates: Let’s Play 20 Questions! For example, someone might be called upon to build a WPF app retrieving data from a WCF service that queries a SQL database using Entity Framework with Ninject for dependency injection and MOQ for unit testing. Neither do the questions touch on any of the “pillars” of the.NET Framework API, such as data access (Entity Framework), web services (WCF), or presentation platforms (WPF, SL, ASP.NET MVC). Over the past year I was involved in the process of interviewing candidates for both mid and senior level developer positions. This is the purpose of the technical phone screen. DevelopMentor Courses - Tuesday, February 28, 2012 Easier Async for Silverlight Apps using MVVM However, as is the case with other UI frameworks such as Windows Forms or WPF, you should not touch UI elements from worker threads. WPF and Silverlight have Dispatcher.CheckAccess / Dispatcher.BeginInvoke. It makes sense to execute long-running tasks on a background thread, in order to keep the UI responsive by not tying up the main thread. This has to do with how Windows apps process messages, which are always handled on the thread that created the visual element. There are various mechanisms available for you to marshal a call from a worker thread back to the main thread. Tony and Zuzana's World - Saturday, January 29, 2011 Building a Leak-Proof Eventing Model In full.NET (and consequently WPF) this code works like a charm. Best of all, this approach works across the board with full.NET / WPF, Silverlight and Windows Phone. 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. public class System. Yikes! Tony and Zuzana's World - Tuesday, March 22, 2011 | - Using Ninject with WCF Services
In an ASP.NET MVC application, it is possible to use repositories directly from controllers, but it may be desirable to place a WCF services façade over the data access layer, so that other kinds of clients, such as Silverlight or WPF, won’t directly access the database. Download the code for this post. In my post on the Onion Architecture I highlight the use of Dependency Injection to loosen the coupling between application components. This is commonly referred to as an n-tier application architecture. Then use NinjectServiceHost in lieu of ServiceHost. Enjoy. Technical DI Ninject WCF Tony and Zuzana's World - Monday, October 24, 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. Now that I’ve released Simple MVVM Toolkit version 2 , people are starting to ask how it stacks up against some of the other MVVM Toolkits out there. Simple MVVM Toolkit would fall into the latter category. Support. Tony and Zuzana's World - Saturday, April 23, 2011 - Tackling the Problem of Modal Dialogs in MVVM
This plays nice with the asynchronous nature of dialogs in Silverlight, which are not truly model as they are in WPF or Windows Forms (this is because you can’t rely on the Windows message pump in a cross-platform framework such as Silverlight). One of the first issues you’ll run into when wading into the waters of MVVM is how to display model dialogs to the user while executing code in the view-model. Popping up a dialog, such as a MessageBox or a ChildWindow, from the view-model is an anti-pattern that violates the separation of concerns that exists between the view and the view-model. Tony and Zuzana's World - Friday, January 28, 2011 - Type-Safe Two-Way Data Binding with INotifyPropertyChanged
Anyone who’s developed a UI application using Windows Forms, WPF or Silverlight is probably aware that you have to implement the INotifyPropertyChanged interface to get two-way data binding between UI elements and an underlying data source. The problem is that you have to pass the name of the property as a string when you fire the event from each property setter. In this post I will show you a better way, namely, how you can use lambda expressions instead of strings to pass the property name. You can download the code for this blog post here. null ). Body).Member.Name; Tony and Zuzana's World - Tuesday, January 25, 2011 - Simple MVVM Toolkit: Feature Rich with WPF and WP7 Support
On top of all that I’ve also added support for both WPF ( Windows Presentation Foundation ) and WP7 ( Windows Phone ). Technical MEF MVVM Silverlight WP7 WPFI’ve rounded out the feature set of my Simple MVVM Toolkit to include a Message Bus (also known as an event aggregator or mediator ) for loosely coupled communication among view-models and to support MEF (Managed Extensibility Framework0 for dependency injection (also known as inversion of control) of service agents to better enable unit testing of view-models. ve also updated the online documentation to cover these features. Tony and Zuzana's World - Friday, February 4, 2011 - Using Open Source? Get NuGet.
For example, searching for the “mvvm” tag you’ll find three packages for Simple Mvvm Toolkit: Silverlight, WP7 and WPF. My friend and fellow DevelopMentor instructor , Michael Kennedy , just turned me on to the NuGet Package Manager , a very cool way to install and use open source software right from within Visual Studio. Let’s say you use one or more open source projects, such as my Simple MVVM Toolkit or NHibernate. NuGet uses the xcopy model or deployment, as opposed to the msi installer model. Packages installed with NuGet are scoped at the level of the Visual Studio project. Tony and Zuzana's World - Monday, February 7, 2011 - Simple MVVM Toolkit for Silverlight 5.0, Windows Phone 7.1
To get those, install the NuGet package manager from the Extensions Manager command under the Tools menu, then search for “SimpleMvvm” and select a package to install, depending on the type of project you have: WPF, Windows Phone, Silverlight 4 or Silverlight 5. I’ve just upgraded my Simple MVVM Toolki t to support Silverlight 5.0 and Windows Phone 7.1 ! You can download the latest version here and take it for a spin – or get it from the Visual Studio Extensions Gallery by opening Visual Studio and selecting Extensions Manager from the Tools menu. Enjoy DevelopMentor Courses - Friday, March 2, 2012 %>
132 Articles match "WPF"
See all articles with
"WPF"
| The Latest from DevelopMentor | MORE | | Join Me at Guerrilla.NET in November Model-View-ViewModel for WPF and Metro. Just a quick announcement for an developer upcoming event I’ll be participating in… Early November I’ll be co-teaching DevelopMentor’s biggest.NET developer event of the year in Los Angeles: Guerrilla.NET. If you haven’t been to Guerrilla.NET, it’s a very unique and memorable event – it’s unlike almost any other training class you’ve seen. We’ve just updated the outline with the most important current and upcoming technologies (see below). hope to see you there! mkennedy. Guerrilla.NET. Michael C. Kennedy's Weblog - Tuesday, September 25, 2012 What’s new in ApprovalTests.Net v.20? To test all the events on a form and its immediate children, simply call code as shown below: WinFormsApprovals.VerifyEventsFor( new DemoForm()); WPF support for Controls It’s always been possible to test WPF windows with a simple: WpfApprovals.Verify(window); This would render the window to a.png image and verify against.approved file. ASP routing support As community contributor, Krzysztof Ko?mic This can be particularly troublesome when changing an existing, unfamiliar piece of code. For example, it it easy to accidentally remove a button-click event. Happy testing. DevelopMentor Courses - Thursday, August 9, 2012 Simple MVVM Toolkit for Silverlight 5.0, Windows Phone 7.1 To get those, install the NuGet package manager from the Extensions Manager command under the Tools menu, then search for “SimpleMvvm” and select a package to install, depending on the type of project you have: WPF, Windows Phone, Silverlight 4 or Silverlight 5. I’ve just upgraded my Simple MVVM Toolki t to support Silverlight 5.0 and Windows Phone 7.1 ! You can download the latest version here and take it for a spin – or get it from the Visual Studio Extensions Gallery by opening Visual Studio and selecting Extensions Manager from the Tools menu. Enjoy DevelopMentor Courses - Friday, March 2, 2012 | -
| The Best from DevelopMentor | MORE | - WPF MVVM Helper Library (WPF + MVVM = testability)
There's been a lot of talk about the Model-View-ViewModel pattern recently and it's usage around the WPF and Silverlight technology stack. When teaching WPF, I always introduce students to MVVM as part of the Essential WPF class, it's an incredibly useful pattern that really separates the UI from the code behind behavior. It's evolution owes a lot to various blog posts, WPF Disciples, and other WPF leaders; I certainly didn't invent anything radically new but borrowed heavily from all kinds of places as I built various classes I needed for my own work. file -. - WPF Data Providers
One of the nifty new features of the WPF platform is the pluggable data providers. Data binding in WPF is extremely powerful -- I am constantly amazed at how much procedural code you can dump in favor of markup with creative bindings. Tags: NET;Code;WPF It ships with two out of the box: ObjectDataProvider: allows you to execute binding expressions against an object and it's methods. XmlDataProvider: loads an XML data source and makes it available as a binding source. State, Age, Income. We can get the data loaded into a collection source through the XmlDataProvider. Mark's Blog of Random Thoughts - Wednesday, January 17, 2007 - Part 3: Shifting focus to the first available element in WPF
We've seen how to programatically control focus and that's all great stuff, but one thing I like to do with WPF is see how much of the repetitive or UI-specific code I can move into the XAML and keep out of the code behind. Tags: NET;WPF We can use the FocusManager.FocusedElement property to shift focus in XAML but it only works when the element exists in the main XAML file. If you use UserControls it turns out that the approach doesn't work because that element is loaded separately and not available when the initial focus is being determined. but all is not lost! - Part 2: Changing WPF focus in code
In the last post , I wrote about how focus is generally managed in WPF - we have focus scopes to track a single element within that scope for logical focus, and then one of those elements is given physical, or keyboard focus. First, there is a Keyboard class in WPF which exposes several methods and properties. However, the most common request is to set initial focus to a specific control - remember that WPF doesn't do that by default. However, a popular way to develop WPF applications is to separate out chunks of UI into separate UserControls. Tags: NET WPF Mark's Blog of Random Thoughts - Thursday, September 4, 2008 - Part 2: Changing WPF focus in code
In the last post , I wrote about how focus is generally managed in WPF - we have focus scopes to track a single element within that scope for logical focus, and then one of those elements is given physical, or keyboard focus. First, there is a Keyboard class in WPF which exposes several methods and properties. However, the most common request is to set initial focus to a specific control - remember that WPF doesn't do that by default. However, a popular way to develop WPF applications is to separate out chunks of UI into separate UserControls. Tags: NET;WPF Mark's Blog of Random Thoughts - Thursday, September 4, 2008 %>
| | |