All Questions
134
questions
-1
votes
1
answer
46
views
C# WPF Change Text Event From TextBox
i have a problem. I made a new class called "LetterBox" this class inherits from TextBox everything is working for now. But here comes the problem: I need the Event or Function that "...
0
votes
1
answer
84
views
How does ObservableCollection/INotifyPropertyChange work when object is changed
I have a situation where in one view model some properties on an object are updated. In another view model, I subscribe to a message and then update a collection with this new object, e.g.:
...
0
votes
1
answer
62
views
C# WPF dependent value is not updating
I'm working on a C# .NET 6.0 project with WPF, and I have the following scenario:
I have two textboxes in my WPF application:
<StackPanel>
<Label>Fee Percentage:</Label>
<...
0
votes
0
answers
17
views
Create a New Workbook With LineChart,then I opened it with office Excel,but office excel will repair it ,then my LineChart will disappear
Describe the bug
Create a New Workbook With LineChart,then I opened it with office Excel,but office excel will repair it ,then my LineChart will disappear
Here's the image
enter image description here
...
0
votes
0
answers
73
views
Visual Studio 2022 - Currently file not found in WPF project
I've an old and a new clean WPF project, .NET6, C# with Visual Studio 2022 17.9.2
And for both I get the error, that the App.xaml and MainWindow.xaml could not be opened.
Is this a bug of the current ...
1
vote
1
answer
97
views
OxyPlot - This PlotModel is already in use by some other PlotView control
I am using WPF, and .NET 6.0. My application is basically Josh Smith's MVVM Demo with the business logic replaced. The plot code is in a .NET 6.0 project separate from the application. The application ...
0
votes
0
answers
36
views
Why both TreeView.SelectedValue and SelectedItem are the model instance instead of SelectedItem being a TreeViewItem? [duplicate]
In the TreeView that I work with, I need to determine the parent node of the currently selected node. It is bound to an ObservableCollection<SomeModel> in the viewmodel. When I inspect the ...
2
votes
1
answer
602
views
Why does changing a .Net 8.0 application Target-OS-version from 7 to 10 multiply the output size by 100?
I have a simple WPF application on .Net 8.0. (But I think the following is true for 6.0 as well.)
When leaving the Target-OS-version* at 7.0, the size of the output folder is less than 200 kb.
When ...
0
votes
0
answers
105
views
References in XAML don't work after migration to .NET 6
I am migrating a WPF application from .NET framework 4.8 to .NET 6 using a migrating tool provided by the template. The app has one main project and several supporting projects. As the solution is ...
0
votes
0
answers
87
views
C# WPF Visual Studio 2022 + SQL Server 2019 database. How to create SetupWizard properly?
My C# WPF (Bike Store) database interface application works with the SQL Server LocalDB database (target framework is .NET 6.0). The idea is that when installing the application on users computers, ...
0
votes
1
answer
668
views
.NET upgrade assistant error when converting .csproj file to SDK style for WPF project (.NET framework 4.8 -> .NET 6.0)
I was trying to update a WPF project from .NET 4.8 to .NET 6.0 using the .NET Upgrade Assistant. When I tried to do side by side upgrade for the WPF project, this error occurs when upgrade assistant ...
2
votes
1
answer
161
views
How to print tickets using .NET 6 WPF?
I'm trying to create a program for printing tickets using .NET 6 WPF. After running the program, the document appears in the print queue, but it only prints a blank page. I've also tried using a ...
0
votes
0
answers
89
views
Updating a image source on WPF .NET 6.0 [duplicate]
I want to build an application and part of the functionality is to display a picture that is generated in the code. I can generate the picture and create the new source, I've read how to replace it ...
0
votes
1
answer
50
views
How to correctly register service for .NET 6 WPF application for single-file publish?
I have the following piece of code in a .NET 6 WPF application:
public static IServiceCollection AddDrugVerificationModule(this IServiceCollection services)
{
services.AddTransient<...
0
votes
0
answers
188
views
.NET 6 WPF Application published as single file does not work
I have a .NET 6 WPF application. Currently there is no dotnet publish going on, only dotnet build. In the output there are many .dll files. I'm trying to minimize file list.
I'm trying to publish via ...