Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Browsing all 18858 articles
Browse latest View live

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 Article


Duplicated 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 Article


Image may be NSFW.
Clik here to view.

WPF 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 Article

WPF 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 Article

Image may be NSFW.
Clik here to view.

How 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 Article


How 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 Article

DataTable 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 Article

WPF 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 Article


Windows 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 Article


Binding 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 Article

Can 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 Article

Null 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 Article

Master 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 Article


MVVM 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 Article

Markup 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 Article


Style 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 Article

ASCII 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 Article


introducir 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 Article

How 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 Article

Image may be NSFW.
Clik here to view.

how 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
Browsing all 18858 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>