I
I
Ivan Vyrov2018-10-03 14:29:55
WPF
Ivan Vyrov, 2018-10-03 14:29:55

How to bypass all the same type of controls in WPF?

Good afternoon!
Tell me how to bypass all the controls in the window?
on WinForms did the following:

public static class Access
{
public static void FindAll(Control control)
  {
    foreach (Control c in control.Controls)
    {
      foreach (svc.Level2 lev in listLevel2)
      {
        ...
      }
    }
  }
}

The call was made as follows (from an arbitrary form): What is it for: modules are loaded in the main program window, it is necessary to show or hide them depending on the user's access level.
Access.FindAll(this);

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question