I'm in the middle of producing a new WPF app to replace an old Clipper application for one of my clients. So I'm trying to develop a window framework for basic business objects. I'm trying to build a generic user control which can facilitate the typical <First> <Prev> <Next> <Last> record navigation within a TabControl. The first tabs are my RadGridViews which allow for sorting and searching capability. The second tab is a details tab, which is where I would like to have this record navigation so the end user doesn't have to go back and forth between the tabs if they're just trying to move through the list.
I have the navigation working just fine but I would like to add a couple textboxes to the user control which would display the current record # and the total # of records. I don't want to tightly couple the user control to the specific grid or page. My user control is "bound" to the grid during the constructor method of the window. I can easily get the current record during the click event of each of the 4 buttons but would prefer if the user control would update on any movement on the grid. Also, I would like to have a user control property bound to the population of the grid data so the user control would know whenever a new search if performed within the grid and appropriately reset the two text boxes. I'm just not quite sure how to do this and what event or property of the RadGridView I'd tie it to. I'm new to WPF and C# so my guess would be some type of CommandBinding or DependencyProperty?
Any help would be greatly appreciated.
Thanks,
-Sid Meyers.
I have the navigation working just fine but I would like to add a couple textboxes to the user control which would display the current record # and the total # of records. I don't want to tightly couple the user control to the specific grid or page. My user control is "bound" to the grid during the constructor method of the window. I can easily get the current record during the click event of each of the 4 buttons but would prefer if the user control would update on any movement on the grid. Also, I would like to have a user control property bound to the population of the grid data so the user control would know whenever a new search if performed within the grid and appropriately reset the two text boxes. I'm just not quite sure how to do this and what event or property of the RadGridView I'd tie it to. I'm new to WPF and C# so my guess would be some type of CommandBinding or DependencyProperty?
Any help would be greatly appreciated.
Thanks,
-Sid Meyers.