public DesignerTopMenu() { AddDecorator( new StackContent( StackContent.StackMode.Horizontal, StackContent.OverflowMode.Flow ) ); m_menuOptions = new Dictionary<Button, MenuOption>(); foreach( string key in OPTIONS.Keys ) { Button button = new Button( key ); button.SetHeight( 95.0f, MetricsUnits.Percentage ); button.Clicked += HandleOptionSelected; m_menuOptions.Add( button, OPTIONS[ key ] ); AddChild( button ); } }