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 ArticleDate 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 ArticleGet data from RotateTransform3D in C#
hi, in my code i set that RotateTransform3D as a children inside a Transform3DGroup with...
View ArticleMaking '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 ArticleTouch 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 ArticleImage 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 ArticleWPF 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 ArticleHow 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 ArticleBad 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 ArticleWPF: 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 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 ArticleScrollviewer 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 ArticleWPF 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 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 ArticleEvent 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 ArticleGet 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 ArticleDrag/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 ArticlePersisting 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