Questions tagged [wpf]

WPF is a graphical subsystem for rendering user interfaces in Windows-based applications.

WPF) is a graphical subsystem for rendering user interfaces in Windows-based applications. WPF employs XAML, a derivative of XML, to define and link various UI elements. WPF applications can be deployed as standalone desktop programs, or hosted as an embedded object in a website. Silverlight utilizes a subset of WPF to provide embedded web controls for web based and Windows Phone 7 applications.

263 questions
73
votes
8 answers

Single Responsibility Principle - How Can I Avoid Code Fragmentation?

I'm working on a team where the team leader is a virulent advocate of SOLID development principles. However, he lacks a lot of experience in getting complex software out of the door. We have a situation where he has applied SRP to what was already…
Dean Chalk
  • 798
  • 1
  • 6
  • 9
49
votes
10 answers

Under what conditions is the use of MVVM appropriate?

Model View View-Model was developed by Microsoft to target UI development platforms which support event-driven programming, specifically Windows Presentation Foundation (WPF) and Silverlight on the .NET platforms using XAML and .NET languages. In…
Kelly Sommers
  • 599
  • 1
  • 4
  • 3
38
votes
10 answers

WPF vs. WinForms - a Delphi programmer's perspective?

I have read most of the major threads on WPF vs. WinForms and I find myself stuck in the unfortunate ambivalence you can fall into when deciding between the tried and true previous tech (Winforms), and it's successor (WPF). I am a veteran Delphi…
Robert Oschler
  • 809
  • 1
  • 10
  • 15
33
votes
4 answers

How to choose NOT to use a framework (Caliburn.Micro, etc.) in a given MVVM application?

I have once started a MVVM/WPF project, which was eventually built and deployed, and for that I studied a lot of the Caliburn.Micro MVVM Framework. The fact is: I ended up not using Caliburn.Micro for that, and ended up implementing some MVVM…
heltonbiker
  • 1,038
  • 1
  • 9
  • 17
31
votes
1 answer

Is there a good formal pattern to manage state in MVVM?

I have started learning about Redux and React in the web-world, and the more I learn about it the more I'm realizing how painful state management is in the desktop-world with WPF's MVVM-style architecture (using Caliburn specifically to bind Views…
willem
  • 1,053
  • 9
  • 10
31
votes
8 answers

ASP.Net or WPF(C#)?

Our team is divided on this and I wanted to get some third-party opinions. We are building an application and cannot decide if we want to use .Net WPF Desktop Application with a WCF server, or ASP.Net web app using jQuery. I thought I'd ask the…
Rachel
  • 23,979
  • 16
  • 91
  • 159
26
votes
5 answers

Moving from Winforms to WPF

I am a long time experienced Windows Forms developer, but now it's time to move to WPF because a new WPF project is comming soon to me and I have only a short lead time to prepare myself to learn WPF. What is the best way for a experienced Winforms…
Elmex
  • 753
  • 1
  • 7
  • 10
24
votes
17 answers

Does Silverlight have a future?

Recently I have read some articles/blogs/comments about the development and history of WPF and Silverlight. In some forums many developers and users criticize the performance of WPF applications (for example Visual Studio 2010). Actually the market…
Elmex
  • 753
  • 1
  • 7
  • 10
24
votes
2 answers

Help with complex MVVM (multiple views)

I need help creating view models for the following scenario: Deep, hierarchical data Multiple views for the same set of data Each view is a single, dynamically-changing view, based on the active selection Depending on the value of a property,…
jayars
  • 622
  • 1
  • 6
  • 11
21
votes
4 answers

Is it OK to create an Entity Framework DataContext object and dispose it in a using block in each of my CRUD methods?

I'm building a wpf application which implements the following features: Take user input and read data from databases perform some calculations on it Showcase it to the user in multiple types of views and write changes back to db Proposed…
Skyuppercut
  • 321
  • 1
  • 2
  • 6
21
votes
5 answers

Are value converters more trouble than they're worth?

I'm working on a WPF application with views that require numerous value conversions. Initially, my philosophy (inspired in part by this lively debate on XAML Disciples) was that I should make the view model strictly about supporting the data…
devuxer
  • 666
  • 6
  • 13
20
votes
2 answers

Is MVVM in WPF outdated?

I'm currently trying to get my head round MVVM for WPF - I don't mean get my head round the concept, but around the actual nuts and bolts of doing anything that is further off the beaten track than dumb CRUD. What I've noticed is that lots of the…
Benjol
  • 3,747
  • 5
  • 33
  • 41
18
votes
5 answers

How to make creating viewmodels at runtime less painful

I apologize for the long question, it reads a bit as a rant, but I promise it's not! I've summarized my question(s) below In the MVC world, things are straightforward. The Model has state, the View shows the Model, and the Controller does stuff…
dvdvorle
  • 849
  • 1
  • 9
  • 18
17
votes
5 answers

What does Windows 8 mean for the future of .NET?

Microsoft showed off a demo of Windows 8, including a new platform that allows developers to use HTML5 and JavaScript. Is this new platform the main way to develop for Windows 8? Is Microsoft phasing out the .NET platform in favor of the HTML 5…
Kottan
  • 331
  • 2
  • 7
17
votes
4 answers

How should I store readonly data to deploy with my application?

I'm developing a desktop application, and this application requires some information to run, but it doesn't change any of this information (the data must be loaded on every execution of the app, but the data is never changed). The data must be…
appa yip yip
  • 425
  • 6
  • 17
1
2 3
17 18