Windows Presentation Foundation (WPF) is part of the Microsoft .NET framework used to create rich client user experiences for Windows application.

learn more… | top users | synonyms

1
vote
1answer
29 views

MVVM Navigation WPF

Currently, I'm trying to learn every aspect of the MVVM design pattern. So basically I've written a little WPF App where I'm trying to understand Navigation in MVVM, the app has one MainView wich ...
6
votes
1answer
47 views

View-model for a WPF UserControl that validates regular expressions

I've created a small User Control library in WPF that contains a few GUI widgets that allow users to enter regular expressions. The widgets provide visual feedback when the user has entered an invalid ...
7
votes
3answers
246 views

Optimize WPF application (2 WPF Windows and a huge mess)

Right now i have a WPF application supposed to display some media into a WPF Window, from actions in another WPF Window ( for example : you write text in a textbox, you click on a button, and the text ...
3
votes
1answer
28 views

Declarative DependencyProperety registration

Most properties have simple requirements so it should be possible to register their Dependency Property fields declaratively. I made a small experiment and it seems to work just fine. The first ...
3
votes
1answer
58 views

Making Dependency Property registration strongly typed v2

This is my second attempt to create a strongly typed builder for the Dependency Property. I've improved the two main weaknesses of the previous version which were: Can specify only ...
3
votes
1answer
47 views

Making Dependency Property registration strongly typed

I've been working on another builder, this time for the DependencyProperty because it's object-based. This means that every ...
8
votes
3answers
211 views

Simple pack Uri builder

I want to make the creation of the pack Uri for WPF resources more verbose so they are easier to read and less error-prone and I thought I implement it using the builder pattern. The base class for ...
2
votes
2answers
130 views

WPF wizard-like app

I'm designing and developing wizard-like app for populating the database I created with data from different sources. It's my first attempt to design and develop well-structured object-oriented ...
5
votes
1answer
74 views

Composable custom control that supports binding and property inheritance

This is an experiment to investigate how to wire up binding and inheritance in a composable, custom control complex. Custom Control Structure There is a custom parent (...
2
votes
1answer
68 views

Popup message queueing

I have a WPF application where I have a function for generating an overlaying info grid. I have written some code for queueing the messages(IpopupMessage) so that each displays a certain amount of ...
0
votes
1answer
60 views

Automatic redrawing in WPF

I would like to re-render my WPF chart control when data source is changed. My minimum requirement for a data source is IEnumerable<Point> but it could be ...
3
votes
2answers
83 views

Window Factory and Manager using MVVM pattern

I am fairly new to Factories and Dependency Injection in MVVM. I've build my View(Window) factory with help from SO, and I would like to know if I had implemented everything properly(code works just ...
4
votes
1answer
58 views

Managing inherited dependency properties in WPF

Exposing Inherited Members I have a WPF Custom Control library (ContentToggleButton) and an app (spec) to test it. The Custom ...
0
votes
1answer
115 views

WPF async ObservableTaskQueue class

I'm currently working on a WPF application, making calls to various web APIs. Thus, I'm looking after a special observable tasks queue: Progress value must be available Tasks (API calls)/seconds must ...
3
votes
1answer
64 views

Managing documents with manager class

So I have a program that visualizes data from files (csv,txt,etc.). These files are saved to database as individual tables. In my application I have DocumentExplorer...
6
votes
5answers
308 views

Another DataGrid (ObservableCollection) Filtering Method

I have re-written my DataGrid filtering method to try to improve performance and I feel that although this is the fastest yet, there is still room for improvement ...
6
votes
1answer
75 views

MP3 tag Project in MVVM style

After reading the books "Clean Code" from Robert C. Martin and the "Head First Design Patterns" book from Elisabeth Robson I decided to make a mp3 tag application. I tried to do it in the MVVM style ...
2
votes
1answer
75 views

Trying MVVM on timer app

Check me: Model should do everything. That's where all functionalities and features are accommodated. It has some properties, that I can access and use. ...
11
votes
2answers
213 views

A Binary Editor with Live Text Preview

This is a tool I needed for some other things (it's incomplete, but almost done) which is essentially just a text-editor that has two text-boxes: the left being the binary view / raw bytes, the right ...
2
votes
1answer
60 views

Synesthesia for the rest of us (i.e. algorithm for unique string colorization)

I'd like to form an algorithmic connections between a particular string and and a particular color, in such that each unique string is always the same color. My particular use case is for a kiosk ...
1
vote
0answers
64 views

XML settings file read/write Design Patterns [closed]

I'm new to C# and would like to create a WPF app with xml config file. I have a certain setting file written by using System.Xml.Linq;. And I'd like to write ...
3
votes
2answers
74 views

Catching exception inside model

Is it normal to catch exception in concept of MVVM inside model? Or how should it be? How to improve this code? This is simple application that allows user to drop .pfx certificate on the label. <...
2
votes
1answer
267 views

MVVM - ObservableCollection & Entity Framework DbContext

I'm trying to catch WPF using MVVM pattern, where my set of models is implementing ObservableCollection as well as Entity Framework's ...
2
votes
1answer
112 views

WPF controls visibility throught IMultiValueConverter

I have control with RadioButtons. Each RadioButton represent some state of document. Each document have a lot of labels, buttons and another trash. I need to ...
2
votes
2answers
172 views

A list of students using MVVM

Is this a proper MVVM implementation? I copied it off a sample but the source would not open so I have to put stuff in spots? Should I call in different files? My first MVVM and have trouble with the ...
5
votes
5answers
558 views

Shuffles male or females names based on Fisher Yates algorthim

The code below has many Lists<> but I'm not sure how to modify it. The only thing here that is an algorithm is the Fisher Yates shuffle algorithm. I am trying ...
1
vote
0answers
42 views

Keep clean SimpleIoc initialization when reusing UserControl

Originally I had ChildUserControl inside ParentUserControl inside MainWindow with this view-...
4
votes
1answer
160 views

Using Mutex to prevent multiple WPF application launches

I've inherited an existing application which is a WPF implementation of toast notifications. This application is installed to multiple client PCs across the estate and, once installed, runs in the ...
2
votes
1answer
84 views

Invoke model logic in one UserControl from view-model in another UserControl without violating MVVM

I am developing WPF application keeping MVVM and using Prism. Here is simplified scheme: I need to invoke model logic in UserControlResult when executing command ...
2
votes
1answer
93 views

PDF conversion and timestamp tool

Since the last post, I have ported it to WPF (semi-MVVM) and added support for Excel and PowerPoint files, and custom fields and scripts. The conversion is done by interop with office. Apparently ...
2
votes
1answer
107 views

WPF object model control with singleton and static messenger? ConditionalWeakTable?

As always first I have to say that I'm an amateur and not native English speaker, so please have a little patience if I write nonsense ;) I've worked as an accountant for more than 10 years and since ...
4
votes
1answer
93 views

ViewModel base class supporting property notification, error notification and property value history

I've created a general purpose ViewModel base class in what I believe it's purest behaviour. It features property notification, error notification and property value history. Please take a look at it ...
5
votes
2answers
95 views

ListBox with a dynamic number of TextBox elements

I am making a kind of form, and I want the user to be able to enter a dynamic number of string inputs. The idea is that a single TextBox will be displayed, and once ...
1
vote
1answer
92 views

WPF Mvvm async function ViewModel

I worried about this code in a ViewModel. ViewModel shoud not contain any code exept binding's. But without async update ui should stuck. How to improve it? The main problem that this is need to be ...
3
votes
0answers
70 views

WPF Prism DelegateCommand Setup

I am currently in the process of learning WPF Prism and I have four buttons that I want to all go to the same place but with a different value being passed depending on which button has been pressed. ...
5
votes
1answer
92 views

Find a value in a comma delimited String

Here is a simple WPF converter method designed, where the object is a string, and the parameters are a string, which contain a set of comma separated values. The program return true if the list has ...
2
votes
1answer
172 views

WPF: Model to View Model data binding to implement Two Step View

I am trying to use Two Step View pattern in WPF. The problem is about keeping things in sync – I need a way to data-bind models to view models. Are there any good existing solutions? My approach is to ...
4
votes
1answer
60 views

Many similar ViewModel methods to fetch and prepare model data

I have a MVVM application that fetches data from active directory and displays it in a DataGrid. The exact data displayed is determined by which query a user runs, ...
4
votes
1answer
187 views

Active Directory Tool - Wpf application to query active directory and display results 2 (UI)

This is an update from here. I have made some changes, and have decided to only include the UI side of things in this particular question. I wanted to make the application follow the MVVM pattern, but ...
3
votes
1answer
68 views

CollectionViewSource Filter trigger for multiple controls

I have some markup: ...
8
votes
1answer
407 views

Active Directory Tool - WPF application to query active directory and display results

This is a Windows Presentation Foundation application that queries active directory and can display lists of users, users by group, groups, and users by manager (direct reports). It operates on ...
7
votes
2answers
298 views

AsyncCommand using MVVM and WPF

Goals I want to be able to call async code using the MVVM pattern I want to be able to add loading animations/screens without having to add properties for each command on my viewmodels I may want to ...
4
votes
2answers
94 views

Code Explorer UI

The third post in the Code Explorer series is about the UI and main VM. This is the XAML, except a few hundred lines of styling: ...
3
votes
1answer
65 views

Weaving through the MIST

Original post here: MIST - auto-implemented, attribute-driven .NET notification mechanism I've developed (and use) an IL "weaving" solution for auto-implementing property change notification in ....
7
votes
3answers
235 views

MIST - auto-implemented, attribute-driven .NET notification mechanism

I have a component that I've used myself for quite some time, the short story is that it automagically implements a property change notification mechanism (very useful for implementing ...
0
votes
0answers
76 views

User control wpf can't create by myself

I need some help with this control. I've created this but I don't like how I have done it. Could somebody review my xaml code and give me some advise how can I improve it? The control I have to ...
1
vote
1answer
112 views

Slow Filtering Method on DataGrid

Sometime ago I asked a question regarding a slow Filtering method for my DataGrid. Months later and I have a relatively quick method, though I am still looking to ...
2
votes
2answers
904 views

C# SerialPort implementation

I'm writing a C# WPF project built with a MVVM pattern. This software is written to use a medical diagnostic device, so in our planning it will be certified IEC 62304. Since I've been mainly writing ...
3
votes
1answer
2k views

WPF/MVVM with Entity Framework, Repository and Unit of Work pattern

I'm building WPF/MVVM application and I'm struggling implementing Unit of work pattern. The part, about which I'm not sure is UnitOfWork class. Here is my thought: ...
7
votes
1answer
207 views

Creating interactive tours for WPF applications

I am developing a WPF component that can be used to create interactive tours for WPF applications. To further improve the API in terms of usability and intuitiveness, the input of other developers is ...