I've looked at many of Sacha Barber's articles on WPF, and Josh Smith's, too. Those are great, but I am a total beginner at WPF and those articles are a bit overhead, anyone know of any total beginner tutorials on WPF?
Go to the article search, if you haven't already done so, and check off WPF under technology and Skill level as Beginner, and many good stuff pop up. It may take sometime to digest it all, but I am sure you'll find it helpful along with the book Pete suggested. I've seen the book at Barnes and Noble and it is a very good looking book. The price on Amazon is good, too.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
another thing: if you are using non-English keyboard, you may face some problems with Silverlight..
I think your on the right track, the VisualTreeHelper should do the job for you:
private void grid_MouseRightButtonUp(object sender, System.Windows.Input.MouseButtonEventArgs e)
MatrixElement elem = GetDependencyObjectFromVisualTree((DependencyObject)sender, typeof(MatrixElement)) as MatrixElement;
private static DependencyObject GetDependencyObjectFromVisualTree(DependencyObject startObject, Type type)
// Iterate the visual tree to get the parent of this control
DependencyObject parent = startObject;
while (parent != null)
parent = VisualTreeHelper.GetParent(parent);
I have a textbox in which user can enter some text and then i am populating a list view from database what ever matche with the user input in the textbox.
I am getting the dataset and able to bind it to the list view. But i want to bold the particular field that exactly matches withe the input. is there any way to bold or highlight the particular field in a list view..
Now let us have a XAML file, where there is a listview where Employee data such as FirstName,LastName & EmployeeNumber is being populated. I assume you are retrieving data from you database when a specify condition is beieng satisfied such as when FirstName matches the condition. In this case you want to heighlight those cells.
OK now your problem is mine as I am stuck at this point. I am also trying to bind a collection to this ListView at runtime & to highlight the search. End point is that in "EditBox_Loaded" method we can highlight it. You try how to bind the data collection at run time, as well as I am trying on my end.
Last Visit: 31-Dec-99 18:00 Last Update: 29-Jul-21 5:30