collection binding to combobox in datagrid (different collection for each...
Hi,I am trying to bind a collection to datagrid combobox and this collection is different for each row in the data grid.pls have a look at the below code , I could not able to bind the Artist...
View ArticleWPF DESIGN SAMPLE AND CODE
Dear All,Can anyone provide website links having WPF Design samples and code.Thanks in AdvanceThanks and Regards,Harish Pandey
View ArticleUserControl with command
Hi there again. i have a custom user control which is dynamically added in my main view. inside my usercontrol there's a button, i want that button to execute a method located in my mainVM, before...
View Articleset Foreground color of Selected Row in DataGrid
I wanted to set Background and Foreground of data grid rows based on triggers.but for Selected DataGridRow it was not working. now after This link I am able to set background color. but Foreground...
View ArticleIs it possible to test Repository layer?
Hi,I am using EF + MSSQL. This is straight forward so that no reason to add more description.Best,Weera
View ArticleHow to compare buttons created in XAML and those in C#?
I got this grid where I put a bunch of buttons in. In one (empty) "special column", I create buttons in C# with following method:public void GetGameButtons() { for (int i = 1; i < 2; i++) { Button...
View ArticleWPF Combobox: Populating a Combobox with Numbers 1-8
I have a combox box in WPF. I want the combobox values to be the numbers 1-8. I want the selected value at startup to be 2. The code below gives me a blank combobox, with the following error:"Cannot...
View ArticleRecycling VirtualizationMode is not working as expected
We have a desktop application, in which we have a ListView which have KPage inside ListView.ItemTemplateAlthough we set VirtualizingStackPanel.IsVirtualizing="True" and...
View ArticleHow to set color of DataGridRow if it has same specific values in some of...
HelloDataGrid has columns from DataTable: myDataGrid.ItemsSource = dataTable.AsDataView(); I want have color row in DataRow if 5 of 7 columns on load dataTable has specific value. And every...
View ArticleButton on WinForm popup from WPF app is completedly different than in WinForm...
Hello,We are converting a .Net 4.0 WinForm application to WPF. This is a piecemeal effort so not everything will get converted at once. My situation is the following...... In our WinForm...
View ArticleException :An ItemsControl is inconsistent with its items source
Hi all,I am using the datatable as itemsource for WPF datagrid , this datatable updated by the multiple background worker thread (using lock(datatable) while updating the datatable), the following...
View Article.NET official images of new Technologies
Can any body tell me the official site of Microsoft for .net architecture images i just want to go throw the Microsoft images for better understanding of the Microsoft technologies ex:.NET framework...
View Articlereplace " in a string
Hi!I have a string wuth a Value:"c:\"but i needc:\The preplace will not be working:ValueA = ValueA.Replace(@""", "");Have any one an idea?Best regardsBernd
View ArticleText box with intelisense of data table values.
Hi AllI have a textbox for that I need show intelisense after entered text into the text box.The intelisense values should come from database.Please help me :)Thanks in advance.
View ArticleNullReferenceException thrown after adding a button handler in a GridView's...
I am trying use a combination of ListBox and ListView to display my data. My data basically consists of Session class, UERecord class and UEDialog class. Their relationships are:1 Session <---> N...
View ArticleWorking with Controls in MVVM
From the tutorials I've read on MVVM, I have learned that I can use a Command as a replacement for the click event that is commonly used with code-behind and also used with WinForms. In my application,...
View ArticleHow to calculate totals of wpf datagrid column with dataset which is created...
I am trying to figure out what is the best way to calculate a total value of DataGrid column in wpf, I´m using dataset to display data from SQL server in my Resources(DataTemplate) & bind it to...
View ArticleWPF datagrid - Scrollbar performance issue
I have entity class which is having nearly 50 Properties. My data grid has 35 columns ( The columns 25/35 template columns and rest of the columns are cell template).Some of the scenarios we will get...
View ArticleRunning a independent WPF App within a WPF App.
I am looking to do something similar to what Google has done with Chrome. I would like to have a main or shell application with tabs, and within each tab, have it run another WPF application...
View ArticlePrevent scripts from running inside the WPF WebBrowser control
Hi,is there any possibility to suppress the execution of JavaScripts (or any other type of script) inside the WPF WebBrowser control? I am not asking about suppressing JavaScripts error messages; I...
View Article