49 } |
50 } |
50 |
51 |
51 public System.Windows.Controls.Menu CreateMenu(IntPtr uiobj) |
52 public System.Windows.Controls.Menu CreateMenu(IntPtr uiobj) |
52 { |
53 { |
53 System.Windows.Controls.Menu menu = new System.Windows.Controls.Menu(); |
54 System.Windows.Controls.Menu menu = new System.Windows.Controls.Menu(); |
|
55 menu.Background = new SolidColorBrush(Color.FromRgb(255, 255, 255)); |
54 foreach (Menu m in Menus) |
56 foreach (Menu m in Menus) |
55 { |
57 { |
56 System.Windows.Controls.MenuItem i = new System.Windows.Controls.MenuItem(); |
58 System.Windows.Controls.MenuItem i = new System.Windows.Controls.MenuItem(); |
57 i.Header = m.Label; |
59 i.Header = m.Label; |
58 m.AddItems(i, uiobj); |
60 m.AddItems(i, uiobj); |