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
2 answers
215 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 ...
pacmaninbw's user avatar
  • 23.8k
4 votes
1 answer
456 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 ...
user avatar
31 votes
1 answer
30k views

Single-instance WPF application

This is the code I implemented so far to create a single instance WPF application: ...
Tommaso Belluzzo's user avatar
10 votes
4 answers
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 ...
user avatar
10 votes
1 answer
239 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 <...
Mathieu Guindon's user avatar
8 votes
2 answers
15k 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 ...
Mehrad's user avatar
  • 812
8 votes
3 answers
756 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 ...
Mik3c's user avatar
  • 101
7 votes
1 answer
3k 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 ...
Michael Brandon Morris's user avatar
7 votes
1 answer
195 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,...
user avatar
6 votes
3 answers
987 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? ...
Maartenw's user avatar
  • 163
6 votes
1 answer
899 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 ...
Der Kommissar's user avatar
6 votes
1 answer
91 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: ...
user avatar
6 votes
1 answer
225 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 ...
JanDotNet's user avatar
  • 8,538
5 votes
2 answers
4k 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 ...
Nikita B's user avatar
  • 13k
5 votes
1 answer
135 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 ...
Paras's user avatar
  • 585
5 votes
2 answers
76 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. ...
user avatar
4 votes
1 answer
1k 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 ...
Denis's user avatar
  • 8,458
4 votes
0 answers
477 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 ...
Denis's user avatar
  • 8,458
4 votes
1 answer
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 ...
Guillermo Mestre's user avatar
3 votes
1 answer
1k 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 ...
t3chb0t's user avatar
  • 44.3k
3 votes
0 answers
305 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 ...
Denis's user avatar
  • 8,458
2 votes
1 answer
995 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 ...
Sharad Shahi's user avatar
2 votes
1 answer
1k 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 ...
geometrikal's user avatar
1 vote
2 answers
877 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 ...
doctorwhy's user avatar
1 vote
1 answer
58 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 ...
t3chb0t's user avatar
  • 44.3k
1 vote
1 answer
667 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 ...
Pr0gr4mm3r's user avatar
0 votes
1 answer
10k 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 ...
geometrikal's user avatar