Questions tagged [wpf]
Windows Presentation Foundation, or WPF, is a subsystem for rendering user interfaces in Windows-based applications.
169,865
questions
0
votes
0
answers
36
views
Standard MVVM Pattern Implementation [closed]
I am currently working on a MVVM WPF application and exploring different ways to implement the MVVM:
One View:
One View Model: In this approach, each View has a corresponding View Model. The View ...
0
votes
0
answers
38
views
WPF MVVM - Setting the CaretPosition from ViewModel [closed]
I am trying to create a serial console output display using WPF, and I have implemented using MVVM. I have implemented the code and using an event handler for serial data received, I am receiving the ...
0
votes
1
answer
51
views
show object details of the selected object to another windows Usercontrol use mwwm
I have a person list filled from the database, two fields (id, name) from the person object are databinded with a radiobutton, now when I click on the radiobutton I'm opening a new UserControl and ...
0
votes
2
answers
41
views
Measuring WPF TextBox gives zero size
I'm trying to calculate the height of an WPF textbox.
The code below does work for TextBlock, but returns a empty size for TextBox.
public partial class MainWindow : Window
{
public MainWindow()
...
0
votes
1
answer
36
views
Can't load subordinated List
I want to create a subordinate list for each school in my list, that shows the school subjects.
I define the data structure of the school and the subjects with these models:
public class SchoolModel
...
0
votes
1
answer
25
views
How to move focus between wpf images
enter image description here
hello.
There are several images, and one image is in focus and has a red border.
I want the border to move to the next image when the right or left side is selected with ...
-2
votes
1
answer
55
views
Can't resolve System.Windows.Control.Image from being created instead of System.Drawing.Image
I'm working on moving a C# program into a WPF application and in order to export files from records I need to use the following code:
// Construct _imgfiles from the records
string _imgfile = ...
0
votes
0
answers
24
views
How to change the context menu of xaml designer in visual studio when developing a vs extension?
I need to develop a vs extension to edit the properties of WPF controls for some special need.
The first option that comes to my mind is to extend the context menu of xaml designer, and add a custom ...
0
votes
0
answers
36
views
Muti Tree View Select and Binding on WPF
I am currently working on a project that involves a multi-tree view selection in a MVVM,WPF application using C#. The tree view supports functionalities such as Cut, Copy, Move, and Paste between ...
0
votes
0
answers
53
views
How to display NotifyIcon on the windows tray when utilising Windows Service?
I have some experience with creating Windows services and WPF/Forms. However, what I am trying to do is to utilise either [hardcodet.notifyicon.wpf (for WPF)] or [System.Windows.Forms in Windows Form] ...
0
votes
1
answer
25
views
How do i change x Axis Label in Livecharts wpf c# [closed]
I am trying to change the x axis on a combobox event in Livecharts.
Im using c# wpf.
Everything works fine with the y axis but i havent found a way to swap out the x axis as well.
Ive been searching ...
0
votes
0
answers
36
views
Is there a way to use NotifyIcon without Windows Form with WPF? [duplicate]
I looked in the questions about NotifyIcon and could not find anything that would work (like if I tried to add as a reference)
But I found this question (Can't use System.Windows.Forms) where one of ...
0
votes
0
answers
32
views
Binding data inside a DataGrid inside a DataGrid.RowDetailsTemplate / C# WPF
I'm learning C# and WPF for a personal project that I'll use for my job.
I'm trying to create a DataGrid inside another DataGrid. Specifically, I want my first SQL query to display some data, and when ...
-1
votes
0
answers
47
views
Stack Overflow Exception in InitializeComponent [closed]
I am making a WPF Application for Listing Schools, but if i load the schools from my mariaDB Table i get a Stackoverflow Exception.
My Schools_View class where i bind the collection to the list and ...
0
votes
0
answers
19
views
How to control layout of both TabControl.ItemTemplate and TabControl.ContentTemplate with ReactiveUI View Location?
I have a TabControl which I'm trying to hook up to a collection of ViewModels with ReactiveUI. The ViewModels are various subclasses of a particular base class, and there are different Views defined ...