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

Parents
No Data
Reply
  • 138253
    Offline posted

    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.

    WpfApplication1.zip
Children