Questions tagged [wpf]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
1k views

Encapsulate multiple properties into a single class to use as a custom DependencyProperty

My application is a WPF project implemented in C# .NET (4.5) using an MVVM architecture with no code-behind in the View. In order to eliminate the coupling between the View and the ViewModel I'm ...
Evil Dog Pie's user avatar
1 vote
1 answer
1k views

What is the best approach to storing a multi-dimensional array with unknown bounds?

I'm trying to store content scraped from several lyric and chord websites into separate variables into either a multi-dimensional array, or into separate string arrays, but I've been stuck trying some ...
cadomani's user avatar
0 votes
3 answers
634 views

Coded UI test Automation Technique

How is coded UI testing technique more favorable than any other testing technique? What is the main advantage of using a coded UI test?
baddu's user avatar
  • 1
0 votes
0 answers
244 views

does class reference itself static anti pattern in prism

I have an application and my desing approach look like this: class Manager { public int State; static Manager _instance = null; public static Manager Instance { get { return ...
Michael Riva's user avatar
0 votes
1 answer
59 views

WPF4 Unleashed - how does converting child elements work?

In chapter 2 of the book WPF4 Unleashed the author shows an example of how XAML processes type conversion. He states that <SolidColorBrush>White</SolidColorBrush> is equivalent to <...
Kapol's user avatar
  • 398
6 votes
1 answer
9k views

What's the best way to expose a Model object in a ViewModel?

In a WPF MVVM application, I exposed my model object into my viewModel by creating an instance of Model class (which cause dependency) into ViewModel. Instead of creating separate VM properties, I ...
Angel's user avatar
  • 161
4 votes
1 answer
1k views

WPF properties memory management

I'm trying to build binding system similar to the one that is used in WPF and I ran into some memory leaking problems, so here comes my question - how is memory managed in WPF property system? From ...
zduny's user avatar
  • 2,653
1 vote
1 answer
215 views

How much functionality needed to create a new class?

Right now I am working on my own small project of a WPF file back up application. I have come to a point where I want to create a method that will copy files recursively from one place to another. ...
Kapol's user avatar
  • 398
2 votes
0 answers
282 views

Software License for project using .NET and Sql Server Express

I considering making my application open source on github. I don't intend to sell it (neither in binary form nor source code form). It probably isn't even useful to a lot of people except maybe for ...
Gilles Radrizzi's user avatar
3 votes
2 answers
2k views

As a .NET WPF developer what are key differences I should be aware of when working with ASP.NET MVC? [closed]

I'm a fairly experienced desktop .NET developer with a solid feel for MVVM and WPF, and I've worked with JavaScript, jQuery and HTML/CSS in the past - though I'm pretty dated and haven't had a ton of ...
Vernacular Ham's user avatar
1 vote
1 answer
2k views

Again MVVM / MVP story , passing interface of a view to its view model why it is bad?

I have used WPF for an Enterprise solution (hundreds views heavily used Data inputs and validation) in MVP pattern (it was a clean solution usually small amount of code behind forms and main code was ...
Mojtaba's user avatar
  • 113
3 votes
1 answer
416 views

xaml schedule control how to cope with items of vastly differing durations

I have to create a schedule control using WPF XAML for displaying items with duration as little as 1 seconds and potentially as large as couple of hours. First thing which seems clear is that I ...
John's user avatar
  • 133
3 votes
1 answer
949 views

How to create a WinForms project that is "WPF-ready"

I'm a C# developer who hasn't had the privilege of learning WPF yet. However, I recently initiated the architecture phase of a new project which I expect will eventually employ WPF (probably; although ...
kmote's user avatar
  • 3,322
5 votes
3 answers
4k views

What are my options for using a C++11 library in a C# WPF application? [closed]

I am writing a cross-platform (OS X and Windows) desktop application in C++11. I intend to use the same C++11 core on both platforms, utilizing native frameworks for the UI (Cocoa and Objective-C on ...
Rotsiser Mho's user avatar
1 vote
1 answer
16k views

Where do put INotifyPropertyChanged Interface in Model or ViewModel [closed]

I am new to MVVM pattern I have a window which has 3 text boxes namely Name,Address,Description ,a save button and a listview which displays the above fields Name,Address,Description respectively ....
Mussammil's user avatar
  • 133
0 votes
2 answers
3k views

Model and ViewModel for View

I am new to the MVVM pattern. I have a window which has 3 text boxes (Name, Address, Description), a save button, and a listview which displays the above fields. When the save button is clicked I want ...
Mussammil's user avatar
  • 133
2 votes
2 answers
2k views

Where does non-MVVM code belong in an MVVM app?

By non-MVVM code, I mean things like highly generalized components, like one with common extension methods for CLR types, and other 'homeless' helper classes etc? I have a Core project that most ...
ProfK's user avatar
  • 512
0 votes
1 answer
576 views

Need an OOP pattern or strategy for "pluggable" property

I'm using OOP and MVVM in a WPF c# application. The goal is for the resulting object (data-bound to user interface) to accurately represent a product. One specific area of the product is highly ...
Ethan's user avatar
  • 167
24 votes
2 answers
20k views

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 ...
jayars's user avatar
  • 622
1 vote
1 answer
4k views

Best method for async initialization of view model in MVVM pattern (WPF)

I'm working on a business application (C#, WPF, EF, MVVM). I need to load a bunch of items from database, create view models for them and put them in a window. Is there a way to create the view model ...
Bizhan's user avatar
  • 111
1 vote
1 answer
867 views

What shoud MainWindow of a WPF contains

I am making a WPF application following MVVM model. I have seen some approaches for applying MVVM. I am concerned about my MainWindow.xaml. In some tutorials I have seen that MainWindow is only ...
fhnaseer's user avatar
  • 111
3 votes
2 answers
426 views

How to abstract transition between Views?

Our team is developing an application using WPF with MVVM. We want to make ViewModels reusable. With this intention we want to abstract the transition logic between Views (ViewModels, we use ...
EngineerSpock's user avatar
1 vote
1 answer
826 views

Syncing objects from code with the view in WPF

I've been reading some into it, but I am time pressed, so I would require a simple solution now and I promise to read up on it later. I come from a winforms c# background, and have lately been working ...
JasonX's user avatar
  • 113
10 votes
1 answer
4k views

How do I approach a serious F# project without C# knowledge?

So, essentially the project I wish to undertake is an SVG editor. I would prefer to use WPF because then I can leverage XAML for my application layout (that designer is so nifty). Unfortunately, I ...
Alexander Ryan Baggett's user avatar
6 votes
2 answers
6k views

Is a 'God' ViewModel desired in WPF

My application has user controls within user controls. Please see a screen shot of one of the most beautiful applications of all time (UC = user control): All the properties live in the MainWindow ...
Dave's user avatar
  • 662
0 votes
1 answer
2k views

What is the most efficient way to manage large collection

I have a rather difficult problem: I periodically receive a Dictionary<decimal, int> subDict containing 100 records where decimal is a Price and int is Amount The outcome I need is a dataGrid ...
Macin's user avatar
  • 211
1 vote
1 answer
457 views

Organization standards for large programs [closed]

I'm the only software developer at the company where I work. I was hired straight out of college, and I've been working here for several years. When I started, eveeryone was managing their own data as ...
Chronicide's user avatar
10 votes
3 answers
28k views

What the best way to wire up Entity Framework database context (model) to ViewModel in MVVM WPF?

As in the question above: What the best way to wire up Entity Framework database model (context) to viewModel in MVVM (WPF)? I am learning MVVM pattern in WPF, alot of examples shows how to implement ...
hal9k2's user avatar
  • 103
8 votes
2 answers
7k views

Well designed Open Source WPF Applications [closed]

I'm just wondering if anyone knows about some well designed .NET Open Source Applications using WPF? I have already tried to search at the usual sites like GitHub and Sourceforge, but I wasn't very ...
Robert Harb's user avatar
1 vote
0 answers
62 views

Switch Parent Children relationship in C# [duplicate]

Using C# and WPF I have a situation where my data is organized hierarchically. I am using a treeview to represent this (each node is a Class type that containts a Children property that is an ...
powernemo's user avatar
2 votes
3 answers
2k views

Switch Parent Children relationship in C#

Using C# and WPF I have a situation where my data is organized hierarchically. I am using a treeview to represent this : Group_01 Object_01 Material_01 Texture Material_02 Texture_02 Group_02 ...
powernemo's user avatar
-2 votes
1 answer
240 views

ASP.NET and windows applications [closed]

Currently I'm still learning ASP.NET. My goal is to build dynamic websites. However, I also want to be able to build some windows applications as well. So, is it easy to learn Windows forms or WPF ...
Kaser's user avatar
  • 239
3 votes
1 answer
732 views

Selecting an appropriate design for Month/Date Selection

I have a requirement what seemingly looks very simple (and perhaps strange) but some minor details are giving me troubles. Perhaps I'm overthinking this. I'm building a scheduler application (on WPF) ...
TtT23's user avatar
  • 1,553
7 votes
1 answer
5k views

Using WPF rather than WinRT for Windows 8 Pro tablet app: good or bad idea?

Our business is considering writing a line of business application for tablets to enable road warriors and executives access our data. This will be primarily used for dashboards, reports and some form ...
Kharlos Dominguez's user avatar
7 votes
5 answers
24k views

MVVM ViewModel and Commands

I need a bit of help to understand the relationship between a viewmodel and a command, and the responsibility of the viewmodel. I'll try to give an example (using Caliburn Micro). I have a viewmodel ...
Karsten's user avatar
  • 321
0 votes
2 answers
7k views

MVVM pattern - Best design approach to manage an application

One year ago, I discovered the WPF technology and I developed a little application, as first experiment, to compare the content of two different directories. The content of each directory is shown in ...
Alberto Solano's user avatar
6 votes
1 answer
3k views

Is there an effective way for creating complex forms?

While creating a 'search' form I've been faced to an overwhelming complexity and I was wondering whether there is a well-known way to accomplish such task. Fields of the form in question can be seen ...
Eric Cartman's user avatar
5 votes
1 answer
3k views

Why, in WPF, do we set an object to Stretch via its Alignment properties instead of Width/Height?

In WPF's XAML, we can tell an element to fill its container like this: <Button HorizontalAlignment="Stretch" VerticalAlignment="Stretch" /> Why is it that when we set an element to Stretch, we ...
doppelgreener's user avatar
3 votes
2 answers
450 views

Dependency properties outside the realm of WPF?

Is there a more general concept or name for what WPF calls "dependency properties"? I imagine this is not a WPF-ism and in fact other libraries or frameworks have employed a similar approach? If so, ...
DuckMaestro's user avatar
10 votes
1 answer
3k views

Value of MVVM in a Line of Business Application (and a Rant of Current Development Practices)

After 2 years, I'm still struggling with MVVM as a practical method of producing working software. In some cases it's great. I did a multithreaded application that controlled a small assembly line ...
b_levitt's user avatar
  • 201
20 votes
2 answers
18k views

Is MVVM in WPF outdated? [closed]

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 ...
Benjol's user avatar
  • 3,727
2 votes
2 answers
255 views

Source Code Only Allowed With One Open Source Project

I have an open source project that is licensed under the GNU General Public License v3 and it's done in Windows Presentation Foundation. I came across someone that sells themes/skins for WPF projects ...
SameOldNick's user avatar
1 vote
2 answers
227 views

Why DependencyProperties and not native language support?

With advent of WPF and MVVM Microsoft introduced DependencyProperties and INotifyPropertyChange interface to provide a way to implement the "reactive" approach used with those technologies. Sadly ...
zduny's user avatar
  • 2,653
1 vote
1 answer
248 views

Storage and naming of log data

I'm in the process of rewriting a small application from console mode to a GUI mode. The input is a file with log data from a measuring device: ... 00029;00044;00076;00044;00021 00309;00032;00037;...
DeepCore's user avatar
1 vote
2 answers
2k views

Should code-behind in WPF be considered part of the view?

I've read plenty of articles around different patterns in use with WPF and this is something I've yet to understand: should a code-behind file be considered part of the view? As a consequence, should ...
Andy Hunt's user avatar
  • 6,046
3 votes
1 answer
10k views

Communication between a C# application and C++ DLL

I am currently building an audio streamer and I have a CPP .dll that I use functions of inside the WPF C# GUI. The program needs to deal with sorts of events such as Lower/Increase Volume Manipulate ...
user66141's user avatar
3 votes
2 answers
2k views

Data representation with C# and WPF

I'm developing an application handling DB parts. I retrieve the data from the DB with stored procedures and prepared statements. Now I want to display the data in the GUI. What is the current ...
juergen d's user avatar
  • 111
4 votes
2 answers
1k views

WCF service as a proxy for publishing real-time data to a WPF/MVVM clients

I've been tasked with creating a dashboard application to show real time updates for our servers. The raw data comes in from an XML file on our intranet which I need to parse and present to the user. ...
ChrisO's user avatar
  • 175
1 vote
1 answer
1k views

How to test a localized WPF application in visual studio 2012

I am trying to create a localized application in C# / WPF in Visual Studio 2012. For that I created two resource files and changed one string in a (XAML) window to use the resource files (instead of a ...
Michel Keijzers's user avatar
0 votes
1 answer
506 views

Future of desktop applications on Windows 8 [closed]

There are a lot of threads discussing existence of WPF/Silverlight/HTML5 on Windows 8, I just need to clarify the picture about desktop applications only, I have following queries to the experts What ...
Vib's user avatar
  • 113