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

KeyGesture bound to RoutedUICommand not working with Key.Left but working...

I have just started adding keyboard support for my application. It already had multiple commands implemented but they are all bound to controls, like menu items. Most UI elements in my application are...

View Article


Date Time

Hi, please how do i get the date alone from the datepicker of WPF C#. i get this after choosing the date 23/03/2013 12:00AM i only want 23/03/2013. i Have not seen any method of extracting this from...

View Article


Get data from RotateTransform3D in C#

hi, in my code i set that RotateTransform3D as a children inside a Transform3DGroup with...

View Article

Making 'IsMouseOver' open submenu items consistently

I am trying to define a style for menu items so when the mouse is over the main menu item, the next level of sub menu items will automatically open. So I created a style for MenuItem and made a trigger...

View Article

Touch Event responsiveness/performance/delay

When I manipulating a framework element with MouseEvents everything works fine andit responds instantly without any delay. But when I manipulate this element with my finger (TouchEvents) the...

View Article


Image shows during design time but not during runtime

I am pretty new to wpf and had to look up exactly how to use resources. I am trying to display our company's logo on a window which correctly shows in xaml/design time but does not show on runtime no...

View Article

WPF Datagrid Binding Problem

I have write simple form with new/edit/delete function. but I add new item and edit the existing item, that is no problems. when i delete item in the grid, the error message is appear on the screen....

View Article

How to set VIEW object to VIEWMODEL entity data

I have a ViewModel that exposes multiple entities within it to a single View, with multiple datagrids on it.One of the things on the VIEW is a calendar object that I want to create new appointments....

View Article


Image may be NSFW.
Clik here to view.

Bad rendering of PathGeometry?

Hello all. I'm using an Adorner class to draw paths on top of an image displayed in an Image control. I have a series of Point objects that define the path. I'm getting strange rendering in some cases...

View Article


WPF: Derive from the ListView or expose Dependency Properties in the base...

Hi,I have a custom ListView control with 5 columns. Now, I want exactly the same ListView elsewhere with 2 columns (subset of above) and a different datasource (of course).Everything else remains 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

Scrollviewer Manipulation events blocking button click events

Hi,I am creating an application which works in desktop and tablet.I created a user control with 10 Buttons.In MainWindow, I created a ScrollViewer which has StackPanel as a child. I have created 5...

View Article

WPF datagrid remove the extra space and extra last column

Hi,we have a wpf datagrid where dynamically columns are generated,we are facing an issue while removing the extra space and extra last column in wpf datagrid column.we also tried setting 'Auto' for all...

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


Event Handling of text boxes using MVVM

private void txtUsername_LostFocus(object sender, RoutedEventArgs e) { string usergrouptxt = txtUsername.Text; try { if (string.IsNullOrEmpty(usergrouptxt)) { txtUsername.BorderBrush = new...

View Article

Get DataTable row number on CellEditEnding event.

HiI have DataGrid which ItemsSource is DataView of DataTable. When CellEditEnding happens on DataGrid I got DataGrid row number.Row number which is not DataTable row number. So I must use values from...

View Article


Drag/drop operations on treeview which is bound to class object in wpf

HI,Can any one explain how to implement drag and drop operations on tree view whose itemsource is bound to a class object.

View Article

Image may be NSFW.
Clik here to view.

How can i scroll the Listbox using the up and down arrow button in wpf...

View Article

Persisting state when using Tab Control

 I have a page with a tabControl consisting of two TabItems : TabItem-1 and TabItem-2. In my TabItem-1 I have a TextBox control (MyTextBox), the content of which I'm TwoWay binding to a business...

View Article
Browsing all 18858 articles
Browse latest View live


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