Keeping track of focus
I have a control with multiple input controls. I want to keep track of the keyboard focus such that the display in the control changes depending on whether any of the contained controls has the...
View ArticleShow the selected items in a multi select combobox in a wpf datagrid
I have a WPF datagrid, with a multiselect combobox. <DataGridTemplateColumn Header="TestItems" Width="140"> <DataGridTemplateColumn.CellTemplate>...
View ArticleDisplay spinning circle for waiting in process
Hello,I need to display a small spinning circle (the same blue circle of windows 7) as displayed below after i do the load and save process in wpf.Please suggest how can i implement the same?Thanks,Abdi
View ArticleWhy Collection Type Dependency Property Changed is not Notfiy in XAML?
Hello, I have created CollectionType Depedency property. When I add item to that collection, I am not getting the notification in XAML. public Dictionary<string, string> employeeDetails {...
View ArticleReset Position after Panning
HI,1. How to get the original position after having certain panning to the canvas.?2. How to keep the limit or Bound to the mouse pointer for MouseMove event in the panning...?Can anyone help me...
View ArticleHow to add some control to Grid that exists in DataTemplate
I hava the xml code: <DataTemplate x:Key="MyDataTemplate1" x:Name="dataTemplate1" > <Grid x:Name="myGrid" Background="#FFE9F4F8" Margin="0,4" ShowGridLines="False">...
View ArticleWhy Does Drag Drop event of DataGridColumnHeader is calling twice?
Hello, I have attached drag and drop with DataGridColumnHeader. When I drag DataGridColumnHeader from one column to another column, drag and drop event is calling twice.Thanks.
View ArticleTrouble with MediaElement (setting source, play, stop, etc...)
Hello. I am working on a project involving MediaElements. The MediaElements used to work just fine but they suddenly stopped working. To troubleshoot this, I created a test project to make sure my code...
View ArticleRestrict Panning in border
HI, I need help to bound the path or canvas in a boundary. What I want is, when I click the mouse-left-button, holding it and move for panning. It should not move when mouse pointer reach some boundary...
View ArticleMicro soft C# sample project books
Hi Team , I would like improve my skill on C# technology for tht I want some C# book which contains sample projects. I want books list which contains sample project on bellow technologiesMVC , WPF,...
View Articlehow to work a integrated camera on my computer in wpf(c#)?
Hi all,I have need to open/access integrated camera on my computer through pragmatically using .Net classes. and give raw data to manipulation it.Same work done in windows phone by usingPhotoCamera...
View ArticleCloning a WPF UI
HelloI'm looking to clone a WPF UI. The idea is to divide a UI in half and create two sides that look the same. I am getting the elements from the LogicalTree, but I can't seem to get the properties on...
View ArticleWPF: Editable DataGrid
Hey guys, I am trying to create an app that will enable the user to enter a number of people's names according to a number of groups. I am using a DataGrid, but I can't display blank cells for the...
View ArticleHow to wire up a DeleteCommand in this simple MVVM project?
I have piece mealed together a simple MVVM project from various code snippets -- using VS2012 (with no toolkits like MVVMLight, Prism, ...). The project contains a listbox with two entries that get...
View ArticlePathGeometry and CombinedGeometry Issue
1. Given 2 PathGeometries (pathGeo1, pathGeo2) which represent 2 disjoint single line segments and are returned from a call to GetWidenedPathGeometry; 2. I create a combined geometry, e.g....
View ArticleCustomize tab navigation in WPF form
I have a form on which there are around 15 WPF texbox's and other WPF controls like combobox, checkbox and button. There are some textbox's which are mandatory. So whenever tab is entered from these...
View ArticleHighlighting string matches from an incrementally loaded text file
For an API that does natural language processing and/or regular expression string matching, say I want to highlight the word or string matches onscreen as the user scrolls through the text document...
View ArticleCollectionViewSource filtered DataGrid stops functioning after a few clicks
i read some articles about having DataGrid filtered automatically, usingCollectionViewSource, so then i used it, but i found it will stop working after a few clicks. i would be nice if somebody could...
View ArticleDataGrid filtering
Suppose I have a collection of regions (ObservableCollection<Regions> AllRegions) where a region is defined as either a rectangle or a circle. A ComboBox holds a list of the different region...
View ArticleHow to pass an Action Parameter with a Type to the ICommand class?
There are probably simpler ways to accomplish something - in my case passing parameters to my FooCommand : ICommand class. My question here is how to pass parameters to my FooCommand : ICommand class...
View Article