I am having an issue , the textbov does allow space when pressing space bar
<TextBox x:Name="txtLocationName" Grid.Column="3" Grid.Row="5" Height="22" VerticalAlignment="Center" TabIndex="17" …
On remote desktop machine (Windows 11), the DataGrid (WPF C# application .Net Framework 4.7.2) event is throwing System.Reflection.TargetInvocationException.
The DataGrid event is giving the exception"System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: Added item does not appear at given index '4'. " while…
How Can I track the Last DPI which is sent by WM_DPICHANGED in WPF?
I want to scale my WPF application according to available screen DPI. I know there Per Monitor DPI aware available but that are completely different what I want to achieve. I want to disable scaling for my WPF application even if windows has some scale…
I am having a problem with WPF text box , its not allowing record space when pressing space bar on key board
When adding some text on text box in a wpf application its not arecording the space. it's only allowing it if i type the text as one string and use the back keys to go back to to where i want to record the space. Not sure what is the cause and solution…
WPF: Could not load file or assembly error in the designer but application runs with no problems
To try to solve another issue with the designer I've deleted bin and obj directories. Since then I'm facing this error while being in the designer: "The error message "Could not load file or assembly 'DesktopClient, Version=1.0.0.0,…
C# - How not make WPF UI Freeze while elaborating
I have a button that after I click it send a lot of data in a remote database with a loop, but during this operation whole wpf UI is freezing. My goal is to make the loader work while it is processing everything with the database. My button code: …
How to make UWP MediaElement to be loop mode when casting to a TV?
I find that when using UWP MediaElement (component name: video), it works well to be in loop mode when set as below: video.IsLooping = true; // method 1 video.MediaEnded -= Video_MediaEnded; video.MediaEnded += Video_MediaEnded; // method 2 private…
How to draw 3D scatter graph and Heat map using input CSV/Excel data in WPF app?
I have a WPF app and need to have scatter graph in 3D. By taking the input either CSV or Excel file and plot a graph and Heat map. Unable to figure out any alternative for this. With the help of "Oxyplot" package scatter map is done but not…
![](https://techprofile.blob.core.windows.net/images/bpqI_wINOUGg4BYYipkUVA.png?8D827C)
Solution Parser not working in .Net8
Hi, I'm in the process of migrating my WPF application from .NET Framework 4.8 to .NET 8. In my previous application, I utilized the Solution Parser functionality from Microsoft.Build for certain tasks. However, after migrating to .NET 8, this…
Data is not populating in WPF Form
I am working on a VSTO Excel Addin and on a button click I am opening a WPF form. case 1: I am working on a Citrix environment and Citrix opened on a single screen now I open excel and click on my ribbon button and my WPF form is working fine. But when I…
COM Interop of WPF Custom Control - Access denied about the registry key HKEY_CLASSES_ROOT\...
Hi, I have a problem building a project. My purpose is to build a WPF Custom Control in order to use it in MFC. But the build cannot be done. The following informations are what I am through right now: Project Type: WPF Custom Control…
How to Protect a WPF Application from Reverse Engineering and Secure
I have built a WPF application and have recently deployed it into production. My primary concerns are ensuring the security of the application and protecting my source code from reverse engineering. I would like to understand the best practices and tools…
How to refresh the database connection in WPF application.
I have a Oracle19c database is connected to 4 machines having WPF applications with MVVM pattern and follows entity frame work. So from this following query SELECT MACHINE FROM v$session WHERE USERNAME = 'C##SAN' AND STATUS = 'ACTIVE'; and also using…
How to reference global resources in user controls in wpf class library projects
I created a WPF class library, and then added a UserControl "Card.xaml", and a resource dictionary "GlobalRes.xaml", I hope to use the style resources in GlobalRes in the Card control. As shown…
How to add alphabet access key to a Button with Chinese content?
I read from MSDN that I can use the following XAML code to add access key to a Button. <Button Click="edit_Click"> <AccessText>_Edit</AccessText> </Button> <Button…
How to refresh the database connection in WPF with Entity framework having Oracle database in MVVM?
I have a WPF with Entity framework having Oracle database also follows MVVM pattern. So I need to create a link such a way that if on click the link that refresh the database connection means need to reconnect to the database. Please help me for this.
Cannot install .net framework 4.8 (KB4486153) on windows 10 LTSC 2019(1809)
CBS logs: 2023-02-19 00:07:01, Error CSI 0000035c@2023/2/18:16:07:01.974 (F) onecore\base\wcp\componentstore\csd_winners.cpp(1756): Error 80092004 [Warning,Facility=FACILITY_NTSSPI,Code=8196 (0x2004)] originated in function…
Can Desktop Applications Be Used in Azure/ISV Environment?
This is a very basic and generic question, but no answers were found in searching the internet. Can a desktop application (WPF/WCF) run in Azure/ISV environment? I know that an Azure VM can host a desktop/client-server application, but that's not what…
How to disconnect a BLE device after successful connection
I have successfully connected to BLE device by using BluetoothLEDevice.FromIdAsync(deviceInfo.Id) and bluetoothLeDevice.GetGattServicesAsync(BluetoothCacheMode.Cached) API's in unpaired mode over Windows 10 with .NET Framework 4.7.2 but I was…
How to get free data hosting for C# desktop application?
Hello I want to design an application with multiple users in my C# wpf project. In short, with the application, users will be able to send and receive some non-large-scale data. Since I don't have the budget, I want to do this for free. I thought of…