How to clear points plotted in WPF chart
I everyone. I have drawn scatter chart in WPF vb.net Application. How to clear point drawn on that chart if I do series.clear it clears point but after that when I try to plot points in chart it is not...
View ArticleHow to come out of blocked WinPcap API i.e pcap_next_ex()?
Hi,In some application i am using WinPcap library to capture packets. I am developing application using WPF. Here i am calling pcap_next_ex() API in while loop with backgroundworker. here the...
View ArticleDrawingContext, Text, CultureInvariant, Printing, Windows10
I have encountered a problem when testing printing from application on Windows 10 (Pro Insider preview EN_US 10130). I found out that my code that prints document is failing and problem lies in...
View ArticleUsing StringFormat in xaml for SSN
Hello,I have a property which gives me SSN in format of like 123-45-6789. Now I want to bind it to another element in xaml and apply StringFormat and give the format of *****6789.How can i achieve it...
View ArticleWPF error handling
I have a WPF application. In my window I have text boxes. The textbox text property has a data binding to a property in the data layer. Invalid values are expected in the data layer. What is the best...
View ArticleBinding DataTable Column to Offset value of LinearGradientBrush with WPF...
Hello everyone,I am trying to draw a scatter Chart using WPF Chart toolkit.My datasource is DataTable.My Goal is to fill the datapoints dynamically(I have changed the shape of scatter datapoint to...
View ArticleKeyboard shortcuts screen manager
Hello, guys. How are you? I have a really tough problem here. I'm trying to build a screen where I will list all my possible keyboard shortcuts commands. At the moment I have a code in xaml like...
View ArticleHow to go to next line in c# program if program strucked at one line?
i am working on WPF application. In some method i am calling API of dll. That API is not returning anything for large amount of time, because of this my application is getting strucked. I need to wait...
View Articlewpftoolkit charts printing problem
Hi, I am using system.windows.controls.datavisualization.toolkit in a WPF/C# project to create Charts. I can create the chart without problems and display on screen, but when i try to print it in a...
View ArticleRichtextbox Spell Checking ignore case and alphanumeric possible?
Is it possible to ignore case on some words or is it even possible to capture the event that fires before a word is checked by the spellchecker? That way I can even do a regular expression on the word...
View ArticleCopy and paste WPF datagrid values into Excel
My WPF datagrid values are displayed correctly based on the design but when I select multiple rows to copy and paste data into excel, nothing happens. Any suggestion is highly appreciated.Thanks!!
View Articlecan put a simple button just above a datagrid
I'm very new to xaml. I have struggled and struggled and I can't get a button to sit just above a datagrid. When I put one there, it actually ends up underneath and not seen. I have tried everything...
View ArticleWPF DataGrid resize with Window Resize
Hi All, We have a use case where a resizable window hosts a DataGrid. By default with window resize DataGrid also gets resized so that it occupies the window accordingly. Now there are few...
View ArticleHow to debug DataTransferManager? It works inside debugger and fails outside...
I am adding a Share feature to a WPF app on Windows 10 based on the MSDN blog post here (Sharing Content from your Win32, WinForms or WPF App -- Nice post, Arun. Thanks!) I downloaded the sample and...
View ArticleChange Back Ground color when control is disabled
Hi All,I have a user control for multi select combo box. I would like to give custom background color of that control when it is disabled.I tried by setting triigers and Grid resources but couldn't get...
View ArticleC# - ContextMenu Opening Event Not Firing
Currently, I'm Hosting a WPF TextBox Control using ElementHost in my Windows Forms project however I've encountered an error regarding the ContextMenu for the WPF TextBox. Basically Regardless of what...
View ArticleHow to assign image source value of usercontrol.xaml from forms
Hi,I am developing a wpf application my app contains usercontrol.xaml which is in windows form.In some case I need to assign image source value to an image which is in usercontrol.xaml from windows...
View ArticleHow to make listbox thinner than its largest item ?
Hi, I'm facing a problem that looks simple but I can't figure out how to solve it, maybe you could help me.I want to display a vertical list of items. I use a listbox, in a sizeable area (a grid...
View ArticleCustom Control with two images
Hello!I need to create a custom control which would represent a tooth. The control consists of 2 parts: crown and root. I need to put 2 Image controls together and make a distance between their centres...
View ArticleWPF Web Prowser template
Hi! I'm an owner of the VS2012 Professional, but I also cannot see the WPF Web Prowser template in the projects list
View Article