How to bind Pie Chart to a Datasource
Hello all, My goal is to display my database table values ( I have two columns as Total and Used) on a pie chart. I used the WPFToolkit for the chart control and created a pie chart structure.but I...
View ArticleWPF application throws null reference exception when application is minimized
We have a very large windows application running on Windows XP SP 3 created from VS2010 Premium 10.0.30319.1 and .NET 4.0.30319. The application uses WPF code to specify how the UI looks. There is a...
View ArticleCheckbox in Datagrid to set background color of row.
I'm trying to change the background color of a grid depending on which of two check boxes are checked. Once I've selected rows in the grid I want to use the data to make an insert to a different table...
View ArticlePrint Preview like control which handler Column Overflow using WPF DataGrid
Hi,I have 100 records of student and each contains 50 properties(Attributes) ex (Name,Roll No, Address, Mob No. etc).Now I want to show these records in the table format as:I am considering Paper Size...
View ArticleRefresh Datagrid when Datasource is updated
I have a data grid that displays a Table which is bound to a DataSourcewhich keeps changing on a time constraint. How to refresh the data grid's content when my DataSource values are updated. P.S :...
View ArticleCleaning up WindowsFormsHost in a WPF dialog
Hi, I have a windows forms project, where I use a number WPF dialogs (ie a window which I call ShowDialog()). One in particular has a WindowsFormsHost control (to host a windows forms control)I am...
View ArticleXamlParseException when loading ResourceDictionary
I have a WPF assembly including a window. When opening the window in an WPF application, it works fine.But when I use the assembly as a part of a plugin for a third-party-software, and I' trying to...
View ArticleCustom Color in WPF?
Is it possible to display the color of the code that is entered into a textbox by a user? ex. User enters #FF0000 and it would display like this -> #FF0000
View ArticleSetting WPF UI Permissions in code-behind
I am looking to see if I can do the following in WPF: A user opens the WPF application and using the users AD name I will check the users role(s) in a custom DB. This will be something similar to...
View ArticleGetting the position of a TreeViewItem when BringInToView has been invoked
Hello there.I have a TreeView with a fair amount of TreeViewItems.I want to draw a line from a point to a specific item (regardless of its depth in the TreeView).Therefor, I find the Item in question,...
View ArticleHyperlink control? Getting that blue text with the hovering hand that you...
So, this is probably mindless, but, I still don't know how to do it.I need to place a blue text hyperlink with the hovering hand that when you click on it it opens a browser with a specific address.Is...
View ArticleBinding combo box in user control does not work but regular combobox works
I have user control that contains a textblock and a combo box as shown below:<UserControl .......
View ArticleCan we Add one more property in TextBox
Hi,I have textbox and spread every where in my Application,but would like to add one more property which set for numeric textbox and i can avoid to enter character.or can you suggest me to make less...
View ArticleCancel Datagrid AddRow
The DataGrid is tied to a DataView of a DataSet. If the user starts to add a row and then exits the window they can leave behind a row with a duplicate key or null key. This leaves a transaction in...
View ArticleApplication.Shutdown() confirmation window
I have a wpf project which has couple of windows, whne i navigate from one window to other i just hide one window and create instance of other if not created alreadyin all windows there is window...
View ArticleChanging icons in a ClickOnce update
When I launch my ClickOnce apps, during the stage of Launching Application, ClickOnce checks to see if I posted updates:The icon that is displayed in the Task Bar is really ugly and conveys no...
View ArticleHow to implement a Menu/Page style application?
Excuse me if I'll not be very clear ;-)this is my very first project with WPFI'd like to implement an application with a menu on the left side (a list of buttons)Left Menu- NEW- UPDATE- DELETE-...
View Article.exe VS2012 issue
Hi,Can anybody follow-up on the below mentioned post?http://social.msdn.microsoft.com/Forums/en-US/netfxsetup/thread/439e6c4d-a7fc-4318-914e-597622762bcb/#85ca8cde-6407-4d81-9a61-77662feb0614Thanks...
View ArticleBinding Datagrid to a database using Observable collection ( MVVM pattern &...
I am trying to bind a datagrid from a Database table using Observablecollection. when I came across a similar post- link on this forum , I tried to implement it on my project. but still, I am...
View ArticleCellStyle BasedOn default CellStyle
I made a custom control called CustomDataGrid that inherits from DataGrid, and I put it in a DLL. Overriding the metadata I set for this control a new default style, different from the standard...
View Article