Borderless Window Issues - Maximize and TrackSize and System Menu
I am working on a borderless window base class. There are several issues that come with this: 1. Maximize to the actual client area does not work as expected. Solved by adding a WndProc hook and...
View ArticleSet customized cursor on WPF trasparent window.
Hi , I'm trying to set customized cursor on WPF transparent window, the system show the regular cursor ( window cursor ) instead of the customized cursor. is there any way to set a customized cursor on...
View ArticleC# WPF Strange Animation Duplication
Hey everyone, I have an animation problem on the following code...TranslateTransform testTrans = new TranslateTransform(); thecontrol.RenderTransform = testTrans; Point relativePoint =...
View ArticleLoading user controls dynamically in Mainwindow when value in dropdown changes
'm working on a C# WPF application.I've a list of user controls UC1,UC2 and UC3.And all internally refer to another common user control called UCB. And my App.xaml refers to MainWindow.xml UCB has a...
View ArticleDBNull error in C#
I am finishing an app to create, store, and retrieve records from an accdb.My environment is Visual Studio 2015, using WPF and C#.The number of database fields is great enough(>100) that I split the...
View ArticleInkcanvas select element by square
Hello,I have an c# wpf inkcanvas in editing mode select. Is there any possibility how to do sqare selection instad of selection by stroke?Thank you
View Articleusing components of a WPF in c# code
I am working on a project for school and need to have a MainWindow.xaml.cs file and a Courses.cs file. I have a WPF with several different components, but the two that I am trying to work with are a...
View ArticleRepaint Issue when mixing WPF and WinForms on some PCs
Hello,I have a strange problem with WPF and WinForms interop when I use scrolling (seems to be another airspace problem):<Here should be a picture. Since I am new in the forum I cannot post...
View ArticleWPF Ribbon Window: The border is getting cut in Aero Theme
The WPF 4.5 Ribbon implementation comes with some visual issues. These issues were not seen with the “Microsoft Ribbon for WPF October 2010”...
View ArticleMouseMove event in WPF
Hi,Is there any way to implement Holding event in WPF? I have checked the reference http://stackoverflow.com/questions/25134677/do-wpf-have-touch-and-hold-gesture and the issue while using that is, I...
View Article[WPF] How to pass class as parameter and access its DependencyProperty inside...
I tried Type and Activator.Create, but they provide Type and Class instance, but those don't provide fields like DependencyProperty.The next code doesn't work (Ellipse is a control): public partial...
View ArticleUsing WebBrowser 2 instead of just the WPF WebBrowser
I needed to get access to some of the extra commands for the WPF WebBrowser. After doing some reasearch I have come up with: private void menuFilePageSetup_Click(object sender, RoutedEventArgs e) {...
View ArticleHow to print pdf file from the given path in wpf
I have pdf file in the c drive and I am passing path of pdf file like as string path="C:\file1.pdf" I want to open print dialog window for choose the printer and want to print content of this pdf....
View ArticleHow to Drag List view Item or ticket between the more than one listview in wpf
I want to drag entire list view item or ticket and when we drop on the other ticket then ticket will be shift right and make a room for this ticket. I have more than one list view.Basically i want to...
View ArticleCombobox SelectionChanged problem with IsEditable
Selection Changed event firing when we type on the textbox of the combo box. How to prevent this? I want to allow filtering by type. How to possible in wpf?<ComboBox IsEditable="True"...
View ArticleError with drawing sharp aliased dashed lines in WPF
I am trying to draw in WPF Canvas sharp dashed lines without anti-aliasing, but after zooming the XY-graphic, lines are drawn with huge visualization artifacts. If draw same lines as solid lines and...
View ArticlePrintTicket provider failed to convert PrintTicket to DEVMODE. Win32 error:...
Can someone please let me know what's wrong with the code below. I am always getting this error:"PrintTicket provider failed to convert PrintTicket to DEVMODE. Win32 error: -2147467259" in the lines...
View ArticleHow to bind ItemsControl to a property in a 3rd level nested class.?
Hi,Its a novice question... but I am stuck.I have a following classes public class Main: IList<S>, INotifyCollectionChanged { private List<S> _s= new List<S>(); } public...
View Articlecan I bind a datagrid to a ring buffer?
I have a Table of length 50 (for example) (it is an Observable Collection), and the entries are objects containing strings Index and Entry. The Index field contains strings holding integers from 0 to...
View ArticleWPF change datagrid cell text based on it's value
i have i datagrid that filled from mysql database and there is that column that it's cells values between 0-4 i want to change the numbers to some thing else but my code doesn't seem to work i think...
View Article