How to create a datagrid dynamic column in wpf mvvm pattern ?.
Im developing a product in wpf (mvvm pattern). I have a scenario in which i have spent more than a week for no good result. Pls help me if you can... Here is the scenario, according to the user's...
View ArticleDuplicated UserControl TabIndex
Hello everyone,I have one usercontrol, but I use it 4 times in the same form.How can i make tabindex in this case?Regards, ADAE. EDIT: And I use this usercontrol in others forms too.
View ArticleWPF Datagrid Validation while importing data
HI, I have data grid and I want to implement data grid validation while importing data. Functionality needs to be like this : If any cell of data grid has a more than 4 character of text then data...
View ArticleWPF Datagrid style issue with Row validation
HI,I have data grid and style like this below: Issue is: If I apply style to daatgrid then my RowValidationErrorTemplate does not work. i don't see that error icon and If I remove style then it...
View ArticleHow to avoid setting Focus / Tab on Grid ?
Hi,I have a ListBox inside a normal WPF <Grid/>. When I move around with Arrow keys or Tab, I get the Grid selection (see dotted border around the listbox in the attached image). I tried setting...
View ArticleHow Can I show collection of collection bind to DataGrid?
HelloI want to group some objects in Data Grid. It works fine. But I want to class properties works as group headers and for rows I want use their List<AntoherClass> variable.Is that possible?If...
View ArticleDataTable problems...
I know y'all are probably going to start fussin' that this question doesn't belong here, but I'm not exactly sure where to put it.... Not sure exactly what I'm asking to be quite honest. :)I have a wpf...
View ArticleWPF Native Report Viewer
Basically, I need a WPF ReportViewer. I´ve tried WindowsFormHost with the WinForms ReportViewer but it doesnt work properly... Sometimes it hangs the app when .RefreshReport(). Thank you in advance.
View ArticleWindows Forms Grid View in WPF
I have used Windows Forms DataGrid Control in WPF and i am binding some data to it.Now i want to read the data row wise form that grid view.How it can be done ?
View ArticleBinding DataGrid to DataSet's DataTable
Im working on WPF using MVVM, and I need to bind a DataSet' tables to some DataGrids, but it is not working. My dataSet has 2 tables called "table01" and "table02".In my XAML I have written the...
View ArticleCan changes be made to a an animation at runtime after it has been added to...
Can changes be made to a an animation at runtime after it has been added to the storyboard.Example i have a line which moves along path from point A to point B in 5 seconds . i theen add it to a...
View ArticleNull reference exception when calling one class from another
I have 2 classes .First class contains all the ui elements and the second one has a slider control to increse the lenght and the width of the first ui ( a canvas )public partial class MainWindow :...
View ArticleMaster Form in WPF
HIi, I am very new to WPF. I want to do master forms coding in that. Can anyone send me sample ideal master form coding in WPF so that i can get an example how to do coding in WPF. Thanks in...
View ArticleMVVM Entity Data Model. How to change EDM DB connection parameters at runtime
hi,I created a MVVM project with a EntityDataModel (MyDataModel.edmx) and a related DataContext (MyDataContext), bound to a given DB schema. The resulting connection string in App.config is the...
View ArticleMarkup extensions at design time not working
public class DPIAdjustedDouble: global::System.Windows.Markup.MarkupExtension { public double value { get; set; } private static double _factor = 0; public DPIAdjustedDouble() { _factor = 1; } public...
View ArticleStyle set in Application level affect the host [ActiveX client written in WPF]
Hi,My application A is written in WPF, I have some global styles that I set in the Application level [App.xaml]. Example below:<Style TargetType="{x:Type ComboBox}">[change background...
View ArticleASCII codes in XAML
How can I get ASCII codes of a string I'm taking as an input from user(via textBox1)?string abc= textBox1.Text; block1.Text=abc ; foreach (byte b in...
View Articleintroducir una ventana dentro de otra ventana
bueno, acabo de pasar de windows forms con c# a WPF. hasta ahora no he tenido problemas, actualmente estoy haciendo una aplicacion del tipo Windows el cual funciona bien, pero quisiera saber como...
View ArticleHow to know child control visibility change at parent control level.
HiI Have a Grid in my WPF client application and have so many(approx 100) child controls in it. My child controls visibility is binded to properties in Viewmodel. the visibility of controls can be...
View Articlehow to know when a drop cursor is on top of an element ?
Dear all,I have a first list box which contains images (Blue square below). Then I have at the botton a set of pictures within there own canvas ( orange box). What I need to do it to drag an image from...
View Article