WPF MediaElement throw System.Runtime.InteropServices.COMException (0xC00D1197): Exception from HRESULT: 0xC00D1197
When the test server went from rest to wake up, an error occurred when the client played the video file on the test server. the following exception: Cannot find the media file. ---> System.Runtime.InteropServices.COMException (0xC00D1197):…
![](https://techprofile.blob.core.windows.net/images/NhkrylFCqEiUzgd3au5ONw.png?8D7FAD)
I wonder why Xamarin.Froms does not support *.baml in terms of xaml loading like WPF.
Hello. As I know, Xamarin.Froms does not use a separated complied xaml file like *.baml. Instead, It just compile xaml to IL code and inject such IL codes into app's exe/dll. I wonder why Xamarin.Froms does not support such kinda of feature to load a…
![](https://techprofile.blob.core.windows.net/images/NhkrylFCqEiUzgd3au5ONw.png?8D7FAD)
what is exactly XAMLC ?
As far as I know, Xamarin.Froms support pre-compilation of xaml using xamlc. I've read xamc compile xaml to IL and merge it to App's DLL/EXE. In contrast, WPF, UWP support pre-compilation of xaml using BAML as a resource with App's DLL. Question…
How to Migrate a WPF XAML Application to .NET 5.0
I would like some help converting a WPF XAML application (Microsoft's sample app: ExpenseItIntro) to .NET 5.0. I have already run the Portability Analyzer, which says it is 100% compatible. I have already been able to convert Console and Windows Forms…
How to Scale WPF application according to screen resolution?
I make a WPF application in .Net Framework 4.7. I developed this application on my Laptop which has full HD resolution (1920*1080). My problem is when I run my application on a low resolution monitor (1366*768), my application don't scale up according to…
c# WPF Listbox databinding and getting the row's data item from a click event.
I have a WPF Listbox where the ItemTemplate is made up of a TextBlock and 2 custom hyperlink controls. When a user clicks on one of the hyperlink controls they fire a click event. In this even I need to get data item bound to that listbox row, but I…
Why is my DataGridComboBoxColumn not populated
Given the XAML block below, the ComboBox named "Populated" shows the items define in the ItemSource when expanded, whereas whilst the DataGridComboBoxColum named "NotPopulated" uses the same ItemSource shows nothing when expanded.…
How can i change this code for WPF Datagrid
Hi guys I made this code for win forms datatgridview. I want to use it in WPF Datagrid but in WPF Datagrid i can't use datagridview.Rows.Add. Can someone help please Private Sub fill_plan() EmployeeGridView.Rows.Clear() Try Dim i As…
When i change GroupBox style , GroupBox header property becomes hidden?
Hi to all First and foremost, I apologize for my grammatical errors; my first language is Persian (Iran). I want to change GroupBox style but when i do this i can't show GroupBox header and Groupbox header becomes hidden. I want a GroupBox…
More time delay occurs when getting attached properties using MarkupWriter
I have trying to get the attached properties of a custom class which contain 1000 plus properties using MarkUpWriter. But when using MarkUpWriter for retrieving attached properties it causes more time delay. Please find the sample and screenshot…
![](https://techprofile.blob.core.windows.net/images/NhkrylFCqEiUzgd3au5ONw.png?8D7FAD)
Web Cam Light is not closing
In my WPF c# application,there is a form using web camera for taking picture( forge.video).After closing the form it will not close the light. Below mentioned code is for stopping the webcam.Please help public void Window_Closing(object sender,…
![](https://techprofile.blob.core.windows.net/images/NhkrylFCqEiUzgd3au5ONw.png?8D7FAD)
Can XAML “deduce” inheritance from C#?
I wonder if XAML is somehow able to "deduce" the C# inheritance. Let me explain: I have these two C# classes: public class AStyleSelector: StyleSelector { public Style aStyle { get; set; } public override Style SelectStyle(object item,…
![](https://techprofile.blob.core.windows.net/images/NhkrylFCqEiUzgd3au5ONw.png?8D7FAD)
C# + AddDirectorySecurity(pathofprog, addeduser, FileSystemRights.FullControl, AccessControlType.Deny) - Still able to execute exe's within
Hi I have managed to get the code running and it is working fine, I see that the user is added into the acl and the permission is set to deny, however, I noticed that at times, for certain programs, I am still able to execute the exe's within the…
WPF C #, How to emit sounds when passing the mouse over a button and also when clicking on the button.
Hello and happy new year. I am a newbie to C # WPF programming. How can I make a button emit a sound when passing the mouse over the button and also when clicking on the button emit another sound. I will be very grateful for your help and I thank you in…
![](https://techprofile.blob.core.windows.net/images/AB_wgbHts0mO38n2pyQrUQ.png?8D861B)
![](https://techprofile.blob.core.windows.net/images/AB_wgbHts0mO38n2pyQrUQ.png?8D861B)
Invoking values from MFC dialog based application into WPF app.
Hi All, I am newbie in wpf, need to fetch values from MFC Dialog based application as abc.dll, and populate in Datagrid of WPF application(Myapp.exe), but I could not render the values through C++/CLI layer, could you let me know references/examples…
How to use Dispatcher for thread with WPF Window and a BlockingCollection<GraphicalData>(ConcurrentQueue<GraphicalData>)
Hi. Techs used are: C#, .Net Core 3.1, WPF, BlockingCollection<> and ConcurrentQueue<> I am trying to understand how to use the Dispatcher with a WPF Window. The Window will be updated with a ConcurrentQueue<GraphicalData>…
Adding image from source property of image control(WPF) at Access Database
Hi to all First and foremost, I apologize for my grammatical errors; my first language is Persian (Iran). This is tested solution
Why is there a performance difference when my application becomes activated?
I am working on a WPF application that displays a grid of many images with scrolling/expanding animations that display a video when the user hovers the image. When this application is run on an Intel CPU + NVidia GPU machine, the animations and video…
WPF - Change cell colour when operation is successfull
Hello! I have this datagrid: The last column has buttons ("+") that when pressed open the following window: In this window when the "Registar" button is pressed the app executes an operationa and returns to the…
How to start WPF in separate thread and still updating it continuously
Hi. C#, .Net 3.1, WPF I want to have a WPF window that takes data from a BlockingCollection<ColorAddress>(ConcurrentQueue<ColorAddress>) continuously. I have managed to start the window in it's own thread, but while doing this with the…
![](https://techprofile.blob.core.windows.net/images/319aafad7757470c87140361047582b7.png)