XMLParseException on startup from COM class
I have a wpf Net v4.0 program that integrates with QuickBooks using the Interop.QBFC12 library.I use the built-in publisher in VS2012 to create an install program for clients.Everything runs fine when...
View ArticleSetting ScrollViewer Thumb Color dynamically by Template Binding
I got a lot of working examples to create my own ScrollViewer, but no one explains, How can I dynamically change Thumb Color.I want to set Thumb color from where I will be using it.Can anyone help me...
View ArticleCan't Load All Images into listview. Please help
Hi there, I am trying to loop through all my user controls and add a thumbnail image of them to a list view....Here is a quick example of what i am trying to acheive...For each userControl in...
View ArticleHow to use the Click event in a GridViewColumn on a WPF TreeView/ListView?
Hi,I have a list view with 4 columns 2 with data and 2 with image representing EDIT and DELETE.This is what i did.<Window.Resources><ResourceDictionary><DataTemplate...
View ArticleVisual Studio Just-in-Time Debugger Exception
I'm getting a just-in-time debugger exception when opening Excel. The window says:Visual Studio Just-In-Time DebuggerAn unhandled Microsoft .NET Framework exception occurred in Test1.exe...
View ArticleUnchangeable Dependency Property That Supports Binding
Hi guys,I need to have an dependency property on my control which holds an action and that dependency property may not be changed but I may set binding on it, no matter if onewaytosource or twoway, the...
View ArticleHow to Open modal window/dialog in XBAP Application?
Hi,In WPF, if i want to open a modal/response window then i write code likeWindow1 _windowObj1 = new Window1(); _windowObj1.Owner = mainWindowObject; _window1Obj.ShowDialog();How to do the same in...
View ArticleShow a WPF window as a modal dialog in XBAP application
Hi there, I am developing an XBAP based application (Full trust) in which I need to show a modal dialog. For this, I created a window in xaml and designed my own MessageBox. I expose few APIs like...
View ArticleWPF Toolkit Chart Bound to XMLDataProvider
I am trying to chart some data which is in an XML file. I have downloaded and installed the 2010 WPF Toolkit. Here is a snippet of the XML file.<Profiles xmlns="" ActiveProfile="3"><Profile...
View ArticleHow to add a Chart in Flow document.
hi,i need to add a wpf Chart to a flow document for generating XPS report. but in flow-document we can add only Block type controls like(Table,Paragraph) and the chart is a visual type object so how...
View ArticleClass System.Printing.PrintCapabilities not found
Hi!I use the Framework 4.0And now i Need the funktion System.Printing.PrintCapabilities capabilities = printDlg.PrintQueue.GetPrintCapabilities(printDlg.PrintTicket); Now VS 2010 say that he not can...
View ArticleHow to use navigation inside a tab control
Hello,I'm working on a simple communications program that uses a tabbed document interface. Each tab represents a connection to the outside world. Inside the tab, there is a view for the configuration...
View ArticleDataGrid height in WPF Grid Row with star height
I have searched the net like crazy to try and find a solution to this issue, but nothing I have tried works.Here's my XAML (I am using the MVVM Light framework):<UserControl...
View ArticleHow to get object bound to DataGridRow in Xaml?
Hi,There is DataGrid with ItemsSource as ObservableCollection. ParticipantViewModel having property named ExpenseType, Currency etc. For some specific expense types participant can change currency and...
View Article.net WPF App has visually different style than WinFORMS on Windows 8
Hey Everyone, Developing a WPF application using VS2012, on Windows 8. This is a standard desktop app. I'm using WPF because it has the Ribbon as a standard control, where as WinForms does not....
View ArticleGet index position of listbox item on mouse over. Please Help!
Hi there. i have listbox with 5 items in it. when the mouse hovers over each item i need to pass the index of the mouse position through an event.any help would be greatly appreciated!Regardsjames
View ArticleC# using wpf
I want to write a C# WPF application using visual studio 2010. I want to be able to allow the user to do the following:1. enter some data,2. select a file from a directory path,3. error message will be...
View Articlewpf calling windows api
I am writing a windows WPF application in C# 2010 that will be calling a windows api. The user will enter some information, hit the submit button, and the windows api will be called.My question is...
View Article