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

Command binding - CanExecuteChanged seemingly not firing (using...

I have a need to have a button that executes two commands in series from the ViewModel.  To do this, I found this great article from Josh Smith.http://www.codeproject.com/KB/WPF/commandgroup.aspxI...

View Article


WPF, MVVM, Commands from buttons within a Listbox ItemTemplate? (code included)

I want to capture button clicks from within a list item row. Below I have tried to boil the problem down as much as I can.First, here is the xaml<Window...

View Article


DataGrid (ItemsSource = Database Table) - additional column: How to keep...

Hey guys, got a tricky question here: I have a DataGrid that's being filled (DataGrid.ItemsSource) by an Access Table. What's best practice to show additional columns for the user and keep changes in...

View Article

Asynchrously display a list in WPF

I have a WPF application in .net 4.5. This app initiates long running tasks. Each task creates a list of items that needs to be displayed asynchrously. The list of item needs to be dsiplayed in a...

View Article

Getting an "Items collection must be empty before using ItemsSource" with EF

We're using entity framework to retrieve our data. We're trying to bind a collection view source to a combo box to display the data. Here's the definition for the...

View Article


Datagrid delete key not deleting row

I will like for the user to press the DELETE key and the row should be deleted, unfortunately, although the row dissapears, after I close and re-open the program, the row is still there!!Here is my...

View Article

Switching between DataTemplates

Windows Explorer enables user to choose between different ways of listing files (Details, List, Icons...).I defined a few datatemplates <DataTemplate DataType="{x:Type local:FileData}"> //List of...

View Article

Image may be NSFW.
Clik here to view.

WPF Expander MouseOver Issue

Hi,I have Expander control which shows list of items when you expand it. If i do mouse hover over on header, it will expand it. Like this below :I need following things which needs to be implemented...

View Article


DataGrid: Are the features "Right-Justified" and "Sortable Rows" mutually...

I have looked hard and long all over the Internet for a way to right-justify my numerical columns. The ONLY one that has worked for me is to stay away from this way of coding (which is simple, nice and...

View Article


Image may be NSFW.
Clik here to view.

Did window frame change from .Net 4.0 to .Net 4.5?

We have a WPF application that's been around for several years.  We've noticed that the window frame seems to have changed between .Net 4.0 and .Net 4.5.  For example, for one particular <Window>...

View Article

Image may be NSFW.
Clik here to view.

Setting a listbox selected value when adding a new datagrid row

Hello,I have a list box and a data grid. When I click on an item in the list box, the datagrid data shows according to the list box selected value.Here is what I have:Here is my code: public partial...

View Article

Printing on A5 paper problem

I'm trying to print a fixedDocument on a A5 paper but I've a problem.Some portion of the left side of the fixedDocument ommites and doesn't print.I set the PageMediaSize of the PrintTicket to ISOA5 but...

View Article

Updating a Bar Chart

I have been struggling with this for days. Since I have been teaching myself Visual Studios [VS2012 C# Desktop] , I am still in the very newbie category. I am creating a Test Application for a USB...

View Article


taborder in datagridrow

I updated the example so that the issue is easier to identify.  I would expect the following tab order...CompanyName FirstName LastName EmailAddress Phone SalesPersonHowever, I get the...

View Article

Refreshing an observable collection

I'm using an observable collection in my WPF based project.  All my data is bound using Linq to SQL.  I do all the deletes and appends via Stored Procedures.  This works great data wise.  I'm having...

View Article


How to Populate a DatagridComboBox Column from another column

Hi all,I have two tables named Table1 and Table2. I want to Populate the column Col1 of Table1  with Col2 of Table2. here Col2 is a source column and  all values of Col1 will be a subset of Col2. And I...

View Article

Can xaml files be loaded outside of the library to render the vector look og...

I was wondering if Xaml files can be loaded outside the library so that to render the vector graphic of a button?

View Article


CurrentView for a IList collection unexpectedly changed

Hello WPF Forum,I have a collection of documents in a Tabbed Document Interface, each document containing a list box with a list of connections. When I select various tabs, the items in the list box...

View Article

How to re-do an existing Windows Forms User Control to WPF control

I have the following code:using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Drawing.Drawing2D; using System.Data;...

View Article

ListBox uneven scroll problem

Imagine a ListBox where an item can have a Height 10 or 50. Virtualization is ON (because of bunch of elements with IValueConvertes and Images).When a user scrolls the ListBox the scroll is uneven and...

View Article
Browsing all 18858 articles
Browse latest View live


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