Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
52 views

I have two CheckBoxes in XAML. When the first one is unchecked, I want the second one to be unchecked. But when the first one is checked, I don't want anything to happen with the second one. I also ...
Craig W's user avatar
  • 4,570
-1 votes
1 answer
138 views

In my WPF application, I want to build a graph where I sum up a "measured" current and display this for every graph element. I tried using the MVVM Toolkit for this and set up 2 classes: ...
Freakwave's user avatar
  • 152
0 votes
1 answer
39 views

I have a treeview with various controls in a treeviewItem, Textblocks, textboxes, checkboxes, and radio buttons. The problem is strictly cosmetic and only applies to when the treeview node is selected....
Steve S's user avatar
  • 89
-1 votes
1 answer
166 views

I have a MainWindow with some buttons for navigation. These buttons opens up a Page in a Frame and of course this page gets added to the Frame's navigation history. Now let's say I have 6 open pages ...
Danie Spreeth's user avatar
0 votes
0 answers
53 views

I have an application built with WPF using .Net framework 4.8 and windows APIs which runs as a windows application and opens an excel app (separate excel process) and from the excel app opens up a ...
Ganpat Gutte's user avatar
0 votes
0 answers
40 views

I'm trying to customise the DevExpress ButtonEdit control in WPF. What I have so far is: <ControlTemplate x:Key="ButtonEditControlTemplate" TargetType="{x:Type dxe:ButtonEdit}"&...
komodosp's user avatar
  • 3,686
1 vote
1 answer
77 views

I'm new to WPF and I'm converting a WinForms application that I wrote years ago to WPF. This application is an addon to another application and I have to create it as a dll. I started this as an ...
DanW's user avatar
  • 11
0 votes
1 answer
197 views

I'm using a WPF WebView2CompositionControl to display an instance of Monaco Editor, but the content is blurry. At first I used the WebView2 control but this control has the issue that it is always ...
Michael Trapp's user avatar
3 votes
1 answer
117 views

Before I illustrate my question with words please imagine a 2D square on a screen. In the center of that square is an archer with a bow. In every corner of the square is a target. When a point on a ...
TEDSON's user avatar
  • 332
0 votes
1 answer
72 views

I have nested collections of items which I represent as ItemsControls nested in each others' ItemTemplates. Here are the simplified DataTemplates: <DataTemplate x:Key="PTemplate"> &...
Hürol Aslan's user avatar
-1 votes
1 answer
76 views

I have a method with switch condition to perform different operations under while loop with Cancellation Token as mentioned here. private Task MessagesAsync(CancellationToken cancelToken) => ...
SuryaKavitha's user avatar
3 votes
1 answer
198 views

I am currently working on extending my WPF app with a Blazor web interface to allow users to configure some settings through their browser. To achieve this, I launch a Blazor server app from within my ...
dani_s's user avatar
  • 31
0 votes
2 answers
282 views

Beginner here in C#. I wanted to make a project in C# with the help of WPF. It is my first time doing this. All worked fine, apart from that FolderBrowserDialog and System.Windows.Forms.DialogResult....
bd55's user avatar
  • 111
1 vote
0 answers
91 views

I have a WPF app that displaying in full screen and using extend display mode to show 2 screen: the 1st screen is the main app, and the 2nd screen is always show an image as a waiting screen. I want ...
Minh Huynh's user avatar
0 votes
2 answers
83 views

I am using EF Core v9.0.3 with WPF. How can I get the entity to detect when its data has been loaded from the database? I want to populate an un-mapped proxy List<> on the entity from a string ...
Lance's user avatar
  • 403
0 votes
1 answer
103 views

In my app, I want to capture touch pad double click and perform an action for accessibility (read something aloud). However, this action is different from mouse right click. I used different codes but ...
Mahfuz's user avatar
  • 43
-1 votes
1 answer
73 views

I want to have a textbox with the following logic: Meaning, some text and the dots until reaching a predetermined width and a number. I am aware that since I am not using a monospaced character the ...
Patrick's user avatar
  • 2,623
0 votes
1 answer
62 views

I'm trying to customize the RadioButton button, but nothing changes in it. Why? And how to customize RadioButton to make it look like this: this is how it should look like Also, can you tell me how to ...
primed's user avatar
  • 1
0 votes
1 answer
110 views

I want to create a custom control that will act as a draggable control (drag and drop), and use it in a window. my problem is that I cant get the binding to work. Data context is being set in window....
bamec's user avatar
  • 53
-1 votes
2 answers
95 views

In my MainWindow.xaml, I have: <StackPanel Orientation="Horizontal" Margin="0,5"> <TextBlock Text="Split Size (MB):" FontSize="18" FontWeight="...
Sharper's user avatar
  • 69
0 votes
1 answer
66 views

I'm writing a style for buttons that will change color when hovering and clicking. Yes, when I click on the Foreground button, the color changes, but as soon as I move the cursor away from the button ...
primed's user avatar
  • 1
0 votes
0 answers
57 views

So I found this button animation trick on StackOverflow: <Button.Styles> <Style Selector="Button"> <Setter Property="FontSize" Value="14" /> ...
Ali-Muhammad Zakaryaev's user avatar
0 votes
1 answer
81 views

I have an application on production with a TreeView control but when the client want to expand or collapse the tree, he finds it very annoying to click on the toggle button because the button is too ...
Yaya0306's user avatar
0 votes
0 answers
35 views

I am building this table on WPF .NET 8 <DataGrid x:Name="dataGrid" Width="640" ClipToBounds="True" AutoGenerateColumns="False" ...
fkitsantas's user avatar
0 votes
1 answer
119 views

I am creating a C# WPF application that will only run on Windows and that will end up being presented with two different brandings. The application is identical, it is just the branding that needs to ...
Jim Walton's user avatar
0 votes
1 answer
42 views

I have a WPF DataGrid. The user enters some data and clicks a button to process the data. If a cell is still being edited, all of the row values are null. Is there a way to force the editing to be ...
serialhobbyist's user avatar
0 votes
1 answer
70 views

I have developed a WPF application consisting of a main window and two user controls. The first user control contains a button, and the second user control has a textbox. The main window includes a ...
S.Nieshant's user avatar
0 votes
0 answers
40 views

I'm trying to create a WPF application following the MVVM pattern that tracks Event models, which have some typical data for an event (title, date, time, etc.). My app is set up with two views inside ...
bccode's user avatar
  • 9
0 votes
1 answer
131 views

I need to implement a spreadsheet like control in my WPF app, and all my attempts at using the WPF DataGrid have resulted in very poor scrolling (it is worse in horizontal than vertical). I have tried:...
J. Manzanero's user avatar
0 votes
0 answers
29 views

I have currently the Problem, that my dragged Visual offset is depending on the Current adornerlayer, I tried it with a adorner decorater but it doesn't seem to work. I want to achieve that the drag ...
user30155782's user avatar
0 votes
1 answer
77 views

I have a singleton model class (Project) shared application-wide through dependency injection. Works great in the application. I have another model class (Analysis) that accesses this singleton that I ...
R Rommel's user avatar
0 votes
0 answers
140 views

A customer currently running an older version of an app experienced an error after successfully upgrading the software: Could not load file or assembly Microsoft.Xaml.Behaviors. However, this assembly ...
MukundKS's user avatar
  • 134
0 votes
1 answer
80 views

I have some code to display a list of object type waiters and inside that object is a list of customers objects assigned to that waiter. Each customer can be checked in the list. I have a context menu ...
user306190's user avatar
-1 votes
1 answer
92 views

Binding a ContentControl to the selected item of a treeview I can't get DataTemplate to show something according to DataType: <ContentControl Grid.Column="1" Grid.RowSpan="3" ...
ericg67's user avatar
2 votes
1 answer
88 views

I have a WPF application project that includes two separate windows (in addition to the main application window), each defined in separate projects that are not included in the solution, using the <...
Loggie's user avatar
  • 23
0 votes
1 answer
105 views

If you look at the lower line of 3LvSub in the image above, it should be cut off at 4LvSub It's going to Lv5 How do I fix it? Below is the style I used. <Style x:Key="TreeView.Lv3" ...
hong_ar's user avatar
0 votes
1 answer
138 views

I am trying to create a button that has two triangles. One in the top right corner and one on the bottom left corner as shown below. And each would be displayed based on a boolean value (for example, ...
John Grove's user avatar
0 votes
0 answers
76 views

This question has been asked in some form in some old threads, but having scoured them for hours and not found any satisfactory answers, I thought I would resurrect the question and see if I can get a ...
Stephen Chipman's user avatar
2 votes
1 answer
108 views

I am working on a PowerShell (Core, 7) module that shall have a WPF GUI. I want to organize the code in a better way, splitting up the XAML, e.g. Styles.xaml, Colors.xaml and Templates.xaml. The code ...
Matthias Fleschütz's user avatar
0 votes
1 answer
93 views

I have a very simple application, where I want populate the ListView when the user presses a button. I am using CollectionViewSource to update the ListView when the button is pressed, but I cannot ...
nikhil's user avatar
  • 1,764
0 votes
1 answer
70 views

When developing a single file self-contained WPF application using .NET 8 that uses the WebView2 component, a folder is created under %temp%\.net while the application is running. What is the purpose ...
Caveman74's user avatar
  • 142
1 vote
0 answers
49 views

I'm developing a WPF application that needs to send print jobs to a USB-connected printer using custom paper sizes. The printer and its driver support this (verified using 3rd party software), but I ...
Tom's user avatar
  • 11
0 votes
1 answer
64 views

In the code behind I cannot seem to access the Image (or any child) control of a Tooltip of an Image. Setup: I have a UserControl with an image that on hover displays a tooltip with a larger version ...
SimonJohnson's user avatar
0 votes
1 answer
155 views

I'm new to the toolkit and have made a couple of simple applications to test various scenarios. This time I've hooked up Entity Framework to start building a bigger application. Unfortunately I've ...
Richard Harrison's user avatar
0 votes
0 answers
30 views

I'm working on a C# application that extracts and converts embedded BAML resources from a .DLL into XAML using ILSpy and Mono.Cecil. The current implementation successfully retrieves and prints the ...
programmerconsociatio's user avatar
0 votes
0 answers
38 views

I have a read only DataGrid in MainWindow populated with a list of a custom type. I want to edit each row separately in another window that uses TextBoxes. I get to bind everything correctly, but I ...
Garflik's user avatar
  • 13
0 votes
0 answers
26 views

I am creating an app for monitoring earbuds that are paired with my PC. The app is made using WPF and .Net 8.0. When the app is kept open without interaction (idle), it has a low CPU usage. However, ...
Mahfuz's user avatar
  • 43
0 votes
1 answer
120 views

I get error The underlying connection was closed: An unexpected error occurred on a send on connecting via https on Windows XP in my C# app. How to make the https connection working on Windows XP? ...
Давид Асадян's user avatar
-1 votes
1 answer
104 views

Hey all I am trying to figure out why my output is not looking like I am wanting. Currently my layout looks like this: <Window x:Class="howto_wpf_number_icons.Window1" xmlns="...
StealthRT's user avatar
  • 10.6k
0 votes
1 answer
96 views

I have a problem, I can't seem to find the solution to automatically save the window layout in Visual Studio. I wanted to always make the document be split vertically in all instances. Meaning, if I ...
Keane Ledesma's user avatar

1
3 4
5
6 7
3401