how to structure a linq query based on different checkbox and conditions
Hi, I have search functionality that displays the result in the datagrid. As you can see the below, I have 3 conditions, two of them comes with "contains, start with, exact with", and each section is...
View ArticleNeed a way of making one window aware of a change on a child window
We're working with VS 2015 and using MVVM Light. This is the first time we've really used MVVM Light, so I kind of doubt we're going strictly by the book. I say that up front so that you'll know this...
View ArticleDataGrid loses styling upon click of a button
First, I would like to say thanks to everyone in this forum who has helped me with my trek in learning WPF. I will be eternally grateful! My application consists of 3 DataGrids, some dynamic...
View ArticleAnimation Frame Rendered Event
Hi AllI am making an wpf application that creates animations, records the animation and saves it to video. When I play the animation its smooth as silk. When I record the animation using Expression...
View ArticleWho will be crowned the First WPF Guru of 2017!!
Time for a fresh start![The Guru is the means of realisation. "There is no knowledge without a teacher."] We're looking for the first Gurus of 2017!!All you have to do is add an article to TechNet Wiki...
View ArticleHow can create setup.exe of WPF Windows C# application which includes MySQL...
Hello everyone, I have create a windows application in WPF with MySQL database. After, now I do not know how create a setup.exe file that also contain MySQL dump db.I did connect the MySQL database by...
View ArticleCombobox items populate from dataset in datagrid columtemplate
Hi I have added 2 dataset to datasource with tables tblEmployee and tblEmployeeName. I have created datagrid from tblEmployee table and I have in datagrid combobox where I would like to show employee...
View ArticleCombobox items from another database table
I'm just starting with WPF and have a small problem with combobox in datagrid. Datagrid has a DataGridComboBoxColumn and i want to bind selected value to tblIssuedForms salesman column in database...
View ArticleMulti-client MVVM/WPF with abstract data service - best practice?
Hi,I have looked at plenty of examples of harnessing entity framework using MVVM pattern, with a single client. In a typical approach I have seen, EF entities are used as the model layer for the MVVM...
View ArticleDatagrid value date.
HI AllI would like to set today date in datagrid column every time when other column on the same row has change value.What is the easiest way to do it.Thank youLuke
View ArticleHow to use short date format from control panel in WPF datagrid
I try to format data grid rows to the short date format defined in the control panel. I found a lot of articles in the web which used something like either<DataGrid ItemsSource="{Binding...
View ArticleUpdating properties from derived class
My derived class: public class ProcessData: MyCalculatorViewModel { public ProcessData() { } public void Process() { string connectStr = "C:\\....\\ABC.xlsx"; ExcelReader reader = new...
View ArticleBest way to align labels and boxes
Hi, I'm new to WPF and I'm having a bit of difficulty lining up labels and textboxes using stackpanels. What is the easiest way to this in WPF? I've put together this simple HTML to better explain...
View ArticleCharting Control
Hi, I am using Charting control in my wpf application with stack column series-System.Windows.Controls.DataVisualization.Toolkit version 4.0.0.0 I have attached a snap and want some customization for...
View ArticleSlow/quirky LocalDB reconnection on a WPF project after subsequent runs
I have made a very simple database setup for a WPF project. A localDB Database1.mdf is the base for a Dataset1.xsd which was created by drag and dropping the Table I need from the Server Explorer of...
View ArticleNo imaging component suitable to complete this operation was found.
Hi, in one of my wpf form i am showing an image on a control, and on click of save i am converting that image in byte stream and saving it in the sql database in image field. but while reteriving and...
View ArticlePassing Sender and EventArguments with DelegateCommand
Hello,I have a method OnClose which gets called on press of ShortCut key and i want the same method to get called on Close of Window from the Window X button. Below has been done for implementing...
View ArticleWays to fix TargetParameterCountException
Hi,We have one WPF application which auto reports crashes to us whenever user faces any crash.Internally we have never seen this exception, but have been reported many a times from user's...
View ArticleHow to display WM player fullscreen in second monitor using WPF and WMPLib?
I make a media player app using WMPLib and WPF. But I have a probelm to display fullscreen in second monitor. The main idea is when user play music from list, then a fullscreen window is showing to the...
View Articlehow to insert the selected rows in a datagrid into database
Hi, I am new to WPF, how to insert the selected rows in a datagrid into database? any samples?Thanks
View Article