Windows Presentation Foundation (WPF) is part of the Microsoft .NET framework used to create rich client user experiences for Windows application.
8
votes
1answer
95 views
Simple Tic-Tac-Toe Application in WPF
I made a Tic-Tac-Toe game in WPF and was just hoping for some input as I am pretty new to WPF and I am still a student so I'm sure that my C# code in general may be lacking
XAML:
...
5
votes
1answer
54 views
WPF Multiscreen Media Application
Information
I have a Multiscreen Application written for a Client that basically is displaying Video content with MediaElements bind to a ContentControl on 5 Screens horizontally(5 splittet Videos). ...
0
votes
2answers
92 views
Using “Lookup Logic” in a WPF Converter (vs extra properties in “model” classes) [closed]
There seems to be a point of contention on my project team regarding what method should be used when trying to display something about an object that requires "lookup-logic". Namely, should their be a ...
2
votes
0answers
31 views
Hotkey-System for command-based WPF applications
I wrote a Hotkey-System for command-based WPF applications.
Could you please take a look at my code (even if it consists of multiple classes :P). I am mainly interested in following things:
How ...
2
votes
2answers
89 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
67 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
282 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 ...
2
votes
1answer
32 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
63 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
60 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 ...
7
votes
3answers
252 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
145 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
94 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
79 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 ...
1
vote
1answer
76 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
125 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
70 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
134 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
74 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
340 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
80 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
85 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
246 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
63 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
136 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
79 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. <...
3
votes
1answer
633 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
180 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 ...
3
votes
2answers
186 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
568 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
43 views
Keep clean SimpleIoc initialization when reusing UserControl
Originally I had ChildUserControl inside ParentUserControl inside MainWindow with this view-...
4
votes
1answer
249 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
97 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
113 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
130 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
95 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
115 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 ...
2
votes
1answer
127 views
WPF Mvvm async function ViewModel
I worried about this code in a ViewModel. ViewModel should not contain any code except binding's. But without async update the ui would freeze. How do I improve it? I'm restricted to using .net 3.5 or ...
3
votes
0answers
90 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
95 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
199 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
268 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
87 views
8
votes
1answer
536 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
375 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
96 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
68 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
259 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
83 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 ...