DataGrid RowStyle trigger bind with dynamic list
Hi, I have a datagrid that is loaded with data first (data1), then I want to set rows to Red foreground color where columns C2 matches a given list of strings. case: 1. Load with Data1 -> provide...
View ArticleBind to Image Tag inside Xceed Datagrid?
I want to bind 'Id' field to tag of image which inside column of xceed datagrid. <xcdg:Column FieldName="D" Title="Delete" Width="50" CellHorizontalContentAlignment="Center"...
View ArticleDIFFERENCE BETWEEN WPF AND WPF BROWSER APPLICATION
PLEASE EXPLAIN ME THE DIFFERENCE BETWEEN WPF AND WPF BROWSER APPLICATIONS
View ArticleError while assigning observer collection to list box
Im having list box and I want to add to it items and when I tried with the following code I got errorObject reference not set to an instance of an object."the error is when I do item source = _userList...
View ArticleDrag and drop selected item as list box return null
Im using the following code for drag and drop and the following statementreturn null when I checked it in the debug,what is wrong here?var mySelectedItem = listbox1.SelectedItem as ListBoxItem; public...
View Articlefind control inside a wpf user control
Actually I'm looking for a way to find the control regardless of it's typeI mean isn't there a way like windows forms .FindControl(name, true)the control that I will be looking for is either on a grid...
View ArticleCalculate Path Data for Circle, Ellipse, Curve
Hi: I am trying to code path data for a curve, circle, ellipse. Blend is giving me the following:<!-- Curve --><Label Content="Curve" HorizontalAlignment="Left" Height="24" Margin="81,0,0,114"...
View ArticleHow to use ItemContainerGenerator to select an item in a ListBox
In a MVVM application, I have a Listbox with a designated SelectedValuePath = "ownerID". After adding a new record to the source data table, I want to regenerate the ListBox for its ItemSource and...
View ArticleAvoid drag multi item to the same text box
Im using the following code to drag from list box to text box , when I have one text box and I use the following code it prevent to drag item to text box that already filled with Itemprivatevoid...
View ArticleDispatcher Hang
Hi. I have a strange situation where WPF dispatcher hangs. The hang occurs on screen size change and main UI thread never continues execution. Here is the stack trace of main UI thread.[Managed to...
View ArticleVirtual keyboard hides when focus gets to PasswordBox :Tablet : WPF
When I go to Passwordbox virtual keyboard gets hides on tablet.
View ArticleIs it possible to add a custom event handler in code-behind? Or is it limited...
I tried adding a custom event handler to a collection of textboxes on my WPF app as follows (similar to how I did in winform) -- but error'd out. So I added this custom event handler in the xaml, and...
View ArticleGrow animation to take up visibile scroll view area and then shirk back down...
Dear All, I have a wpf aplication in which i am trying to grow a red stackpanel item on a canvas to fit the available space on the scrollviewer.i have included a picture of what i am wanting to...
View ArticleMouse down handling not working as expected using ComboBoxItem
I have a "thing" with the Mouse down not handling as expected using a ComboBoxItem: the selected item event is not triggering. Using snoop I can see that the mouse event is sometimes triggering...
View ArticleWPF RichText Editor that returns HTML
Hello Friends, which is the best Richtext Editor for WPF that also returns equivalent HTML? I have seen some from internet but I want something good from your experience.- Regards, Bhagyesh Joshi, India.
View ArticleSaving Image into EF database using MVVM
I am creating an application which will ultimately enable a user to save an employee's image into a SQL database using Entity Framework. I'm creating an application using WPF, MVVM and a Repository; so...
View ArticleConvert CollectionView.CurrentItem to a DataRow?
I'm trying to convert MSDN's video on "How Do I: Create a Simple Data Entry Form in WPF?" in VB to C#. I'm stuck at 20:11. I started by creating a Typed DataSet and a CollectionView:private...
View ArticleTurning random Points to PathFigure.Segment
Hello all,I have a problem about drawing custom shape with a mouse and then turn those lines to one PathFigure. That is, turn every one of those lines into PathFigure.Segment.Please look at this video...
View ArticleUsing image and and controls in front
HI, I want to use image and control in front I.e. taking existent image as background and put on it button ,list view etc. I'm having blend 2012 and I try with adding grid and on it put image control...
View ArticleHaving problems with WPF validation
I'm attempting to validate a textbox for numeric entry, using this and this as guides. Unfortunately I cannot get the validation to work...
View Article