Hi, i have a windows with ribbon control for a menu, in the same window i have a DockManager, in the load of the windows i add a panel with this code
try { ScrollViewer scrollV = new ScrollViewer(); ClientesUC control = new ClientesUC(); scrollV.Content = control; ContentPane newContentPane = this.LayoutRoot.AddDocument("Clientes", scrollV); } catch (Exception ex) { MessageBox.Show(ex.Message, "CLientes", MessageBoxButton.OK, MessageBoxImage.Error); }
In the user control i have a XamDataGrid, with a customer list of my database
Now in the ribbon buttom i have a edit customer buttom, i need know if exist the panel "Clientes", and if is selected a record from the XamDataGrid, for enable editing customer data,
How i can do this?? how i can access for a data in my user control?
Tanks
Hello,
Thank you for your post. I have been looking into it and I created a sample project following your scenario and I added the needed checks in the ButtonTool’s Click event. Basically I used the Infragistics Utilities class in order to get the ContentPane and the XamDataGrid. Please let me know if this helps you or you have further questions on this matter.
Looking forward for your reply.
thanks this works