Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
710
how to know if there is a panel
posted

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