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)
Are there namespaces and XAML components unique to Silverlight?
I have inherited a legacy application and need to know if it is using Silverlight. Apart from uninstalling Silverlight, is there any way to look at the code and determine if it is a Silverlight application? If it is a Silverlight application, I need…
![](https://techprofile.blob.core.windows.net/images/NhkrylFCqEiUzgd3au5ONw.png?8D7FAD)
WPF: rotate a Model3D about the Viewport3D center
I have a WPF app where different Model3Ds are arranged in a Model3DGroup and displayed in a Viewport3D. I may pan, zoom in / out the displayed models. Everything is handled programmatically in the .Net app. The only Xaml code is to define a UserControl…
![](https://techprofile.blob.core.windows.net/images/NhkrylFCqEiUzgd3au5ONw.png?8D7FAD)
How can I access resources from external assembly?
I don't seem to be able to access remote resources from an external assembly. The following line in MainWindow.xaml isn't working, no background color is getting displayed: <StackPanel Grid.Row="0" Background="{DynamicResource…
![](https://techprofile.blob.core.windows.net/images/NhkrylFCqEiUzgd3au5ONw.png?8D7FAD)
Question about performance in Wpf
Hi, I have a general question about the right way to bind a class to a listview or list box or any other control in wpf. Lets say that I have a textbox which the width is binded with the property of my class "my width" <Textbox…
WPF Listview
Hi, I have a WPF ListView, the objects of which are bound to a view model and I use a CollectionViewSource to group them based on their properties - the CollectionViewSource dynamically creates expanders and groups the items in the ListView - this…
WPF ListView change arrow icon
Hi, I've created an app in Visual Studio in C# using a WPF page - all works fine. The app displays a list view which has several sub lists (looks very similar to an Expander), I don't like the large arrow in circle icon and would like to change it to…
How to store and retrieve image using MVVM pattern in WPF C#
Please I am looking for a solid means to save and retrieve image to/fro SQL server database. I am using MVVM pattern in WPF. I have gone through everything I saw on Google concerning this issue, all I'm seeing is Image control being tied directly to code…
![](https://techprofile.blob.core.windows.net/images/NhkrylFCqEiUzgd3au5ONw.png?8D7FAD)
INotifyDataErrorInfo implementation for several values, check that there are no errors in Dictionary (WPF MVVM)
I have been trying to implement INotifyDataErrorInfo and everything seems to be working except SaveSettings() and especially bool HasErrors. Can somebody please tell me why and how to fix it? I mean that SaveSettings is always triggered, even if there…
How can I bind text and have it format itself on the UI?
Hi. How can I bind text and have it format itself on the UI? For example, suppose the string in the ViewModel is this: myDependencyProperty = @"<b>Title: </b>My title\n<b>Description: </b>This is my…
Azure work well with the new ghostly app?
Does the new ghostly app work well with Azure? And if so what's the best platform to integration with?
![](https://techprofile.blob.core.windows.net/images/4iwLikdxE06opH2ekHy4xg.png?8DB77E)