wpf image cannot be accessed after bitmapencoder.save();
Additional information: The process cannot access the file 'C:\Users\a\Desktop\test.bmpk.bmp' because it is being used by another process.before this, there's BmpBitmapEncoder.Save(stream); is called....
View ArticleSort a datagridTextColumn with an associated multivalueBinding
Hello there Fellows, I have a wpf DataGrid representing a ListCollectionView of "Person". In some column named "Total Income" there is a MultiBinding value converter that uses two properties of...
View ArticleSaving Image In DataBase
I Want to know how to Save/Retrieve Image in SqlServer DataBase Using WPF(C# and Image Control).
View ArticleInsert image into Image Box
How Can One Insert Image Into Image Control In WPF As Source Does'nt Show Any Pop Up To Select File.
View ArticleGeneric button generation for WPF control that hands over control identifier
Hi,I am displaying a versioning tree of documents, using WPF. I display missing and available documents and would like the user to be able to open the existing documents. Each missing and existing...
View ArticleWhat event would I use that's analogous to the old VB6 Activate event?
We've got a new WPF application recently released. We've got to refresh some data on 2 user controls whenever those controls come back into focus.Right now we have the user controls placed onto a...
View ArticleVS2012 WPF Designer: d:DataContext - number of generic arguments provided...
When using a class as a d:DesignInstance that exposes aKeyedCollection<TKey, TItem>, the XAML designer complains with the following warning:The number of generic arguments provided doesn't equal...
View ArticleStarting multiple WPF windows from a ribbon addin in Word - error
Hi,I am running an addin in Word that allows the user to call a WPF window and close it. The user should be able to open another window by clicking the same button again. The following code snippet...
View ArticleCall to data grid with button
HI ,I have data grid in user control . Below the data grid there is a button which when I press on it it should open different data grid in new pop up.my question is how to do that? Do I need to use...
View ArticleUpdate multiple rows combobox selected item
I have datagrid with multiple rows and I am working in WPF.Each row has a combobox. I have selected a few rows and I want to update the combobox selected item data to all the other row's combobox after...
View ArticleCannot serialize a non-public type...
Getting this runtime error when I am doing Serialization to copy the dragged UserControl onto canvas:"Cannot serialize a non-public type...
View ArticleUser control inside a datagrid cell is resetting
Hi, My scenario is i have a usercontrol inside a content presenter in a datagrid cell. The user control is such that it is curved at the edges. That means i can select the background of cell. When i...
View Articleevents between applications
Hallo to all.I have two separate wpf projects A and B. Each one of these is a complete project with Windows and different threads. Now i want to start B from project A with a buttonclick. So far so...
View ArticleCombobox item is not selected after load window
Hi,I have a very simple combobox with items and select in the _load the first item.When running the item is not selected, after the window is resized or the mouse hovers over the combobx, the text...
View ArticleRounded tabs in WPF
Hi people! How can I get a visual (rounded tabs in tab control) in WPF like the picture below? Any example? http://books.zkoss.org/images/3/39/EclipseZkFoodToGo.png Thanks Alexandre
View Article.Net WPF MVVM TabControl "Setting Focus" to a tab?
I'm developing an MVVM WPF application and have run across another small stumbling block. In my main application window, I'm using a tabbed control as my MDI. This tab control is bound to a...
View ArticlePopup, Popup.StaysOpen, ToggleButton and Data Binding -- Helpful Tip
On a recent WPF project we had need of a Popup that would display when a ToggleButton was Checked, not display when Unchecked, and also disappear whenever the user clicked anywhere in the view. The...
View Articled:DesignData isn't recognized in VS2012 WPF project
I have a fairly simple WPF project that I just started in VS 2012. I wanted some design-time data, so I tried adding The following code snippet to both my window and the base grid elements in my...
View ArticleData Grid change order of selected item
HI ,I use the following code for data grid and I need put button on the side of the data gridwhich you can select line on the data grid and if you press the button this line is going up in the order...
View ArticleRestarting Tasks
I have a ListBox with 100 custom TextBlocks. I need each to execute long function on a different thread but to restart that function if listbox is resized. Final function will to something more useful...
View Article