Composite pattern in the .NET Framework
To create complex UI screens, the .NET Framework leverages composite patterns extensively. The WPF, ASP.NET Web Forms, and Winforms are some of the key examples in this regard. In a UI scenario, one can have a frame class, which acts as a container for all the child controls. Typically, developers place panels to divide the physical screen to some kind of logical grouping and child controls are placed inside these panels. The controls like list, grid can embed other controls. Thus, these are wonderful examples of the composite pattern.