Questions tagged [wpf]

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

Filter by
Sorted by
Tagged with
8
votes
2answers
174 views

Non-Entity framework database interaction model

A C# WPF user interface has been developed for the Book Inventory MySQL database previously shown in this question. Since the database had already been developed this was a database first ...
4
votes
1answer
437 views

Correct MVVM format

I have a Windows-Runtime app (very similar to WPF), and I am using (at least I think I am!) the MVVM style. I want to make sure I am doing this the proper way, and not just a working way. This is my ...
31
votes
1answer
28k views

Single-instance WPF application

This is the code I implemented so far to create a single instance WPF application: ...
8
votes
3answers
717 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 ...
5
votes
2answers
3k views

Filtered WPF textbox

I am trying to make a textbox which filters user input to match specified type, so I can discard some of my validation logic. For example, if I specify ushort I ...
10
votes
4answers
1k views

Resx Editor in WPF

To aid in the localization of .resx files, I made a generic resx comparer that allows you to edit the values of the resx's. Also, this is my first proper adventure in WPF (I've just been using ...
10
votes
1answer
234 views

TicTactics Presentation

This is my take at the current code-challenge, Ultimate Tic-Tac-Toe, at least the presentation part. As I chose to write a WPF application for my game, and this is my very first time fiddling with a <...
7
votes
1answer
2k 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
1answer
183 views

Resx Translation Helper, V.2.0

Related to Resx Translation Helper, V.2.0 Remove Files Window First, I implemented the changes suggested in my last question, then I changed my entire code base to support editing 1-N Resx files. So,...
6
votes
3answers
945 views

Crack the safe, find the right combination

I recently started C# and I've got the feedback that I still repeat too much. How can I make it less repetitive? ...
6
votes
1answer
877 views

Markdown Markup Markleft Markright Editor

I have a blog that I occasionally post to, but it's a PITA because of the fact that it has it's own WYSIWYG editor and doesn't support Markdown. So I have to switch the WYSIWYG editor to the HTML ...
6
votes
1answer
87 views

Go Back with More Detail

I have a Back function, and it is growing. I also think this is terrible, but I don't seem to get how it can be improved: ...
2
votes
1answer
840 views

Vertical WPF icon button that uses Segoe MDL2 font for icon

This is a button that changes text and icon according to a Boolean state. for example, a play / pause button or a connect / disconnect button. The icon uses Segoe MDL2 Assets as the default font, but ...
1
vote
1answer
609 views

C# Events in a Tic Tac Toe game

I am new to coding and am trying to understand events what is an annoying stage but super important I guess. I just made a Tic Tac Toe game and it is working but not really "beautiful" coded. I really ...
8
votes
2answers
14k views

Wiring CollectionView and updating itself without the need for Refresh()

I have been using your expertise developing my application using parts of WPF that I have never touched before. In this stage my View does all I need it to do, however, I am not sure if I've done my ...
6
votes
1answer
170 views

Processing input in background while user is typing

Use case A GUI with 2 controls: An input control for text (a DNA sequence) that should be analyzed A result control that displays the analyzing result of the entered text The analysis takes 2-3 ...
5
votes
1answer
126 views

Categorize episode-file names - Follow up

This is a follow up to this question. I have implemented changes to the code as they were suggested in the previous question and have made a few changes of my own. But it has been mentioned that the ...
5
votes
2answers
70 views

Resx Translation Helper, V.2.0 Remove Files Window

Related to Resx Translation Helper, V.2.0 This is the code for the Remove Files window. I was able to keep code out of the code-behind here, but I have a feeling I botched something else. ...
4
votes
1answer
989 views

Media player subtitles in WPF - Part 1 Processing and storing

I'm writing a media player in WPF and since movies are playable, subtitles are a must. Here's what it looks like so far: On the left is the settings tab, in the middle is the actual player and on ...
4
votes
0answers
369 views

Media player subtitles in WPF - Part 2 Handlers and notifications

This is a continuation of Part 1. In this question I will present you with a single class which is the most crucial component of the whole system, it's responsible for firing notifications whenever a ...
4
votes
1answer
4k views

Image cache for lots of images using WeakReference on C#

I'm developing an application to manage a player card-library from an online game. Each card has an image that is stored on disk with a numeric code, for example, the card with ID=1234 has his image ...
3
votes
1answer
887 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 ...
3
votes
0answers
249 views

Object pooling in WPF

In a WPF project I'm working on, often multiple objects reuse the same AnimationTimeline, to smooth that out I made an ...
2
votes
1answer
768 views

TPL Task tracker which keeps track of tasks

This class keeps track of tasks which are added and tries to remove them after certain delay. I tried doing it with CustomTaskScheduler but didn't get much in return. Here is my related question on ...
1
vote
2answers
814 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 ...
1
vote
1answer
47 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 ...
0
votes
1answer
9k views

WPF button with xaml-defined icon that changes with state

I needed a button with text and icon that did two things: Text and icon went grey if the button was disabled. Icon changes depending on Boolean property (e.g. connected / disconnected). For the icon ...