InnerTube Skeleton
This is the skeleton of the WPF controls contained in the application (see Figure 4-11):
At the highest level inside
MainWindow, we have aDockPanelcontrol that we use to set theMenuandToolBarcontrols so they dock to the top of our window.For the three-column layout, we use a
Gridcontrol with three column definitions and specify the column width with a wildcard (*), which, as with web applications, means the column size can grow when resized.The first column (remember columns are zero-based) is a
ListBoxcontrol that will hold the list ofInnerTubeFeedobjects for our application.The second column is also a
ListBoxcontrol, and will list the videos for a particular feed.The third column contains a canvas control with multiple controls: a user control for the media player,
TextBlockcontrols for fields such as the video title, and so on.

Figure 4-11. The primary controls in MainWindow.xaml
Note
InnerTube uses the file to define the appearance of buttons, C4fStyle.xamlListBox controls, and more. To see what's included in the C4fStyle, see the Appendix.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access