line_color = SystemColors.ScrollBar;
category_fore_color = line_color;
+ commands_visible = false;
commands_visible_if_available = false;
property_sort = PropertySort.CategorizedAlphabetical;
property_grid_view = new PropertyGridView(this);
propertypages_toolbarbutton = new PropertyToolBarButton ();
separator_toolbarbutton = new PropertyToolBarSeparator ();
ContextMenu context_menu = new ContextMenu();
+ context_menu_default_location = Point.Empty;
categorized_image = new Bitmap (typeof (PropertyGrid), "propertygrid-categorized.png");
alphabetical_image = new Bitmap (typeof (PropertyGrid), "propertygrid-alphabetical.png");
{
#if NET_2_0
- bool flat;
+ ToolBarAppearance appearance;
#endif
public PropertyToolBar ()
{
SetStyle (ControlStyles.ResizeRedraw, true);
#if NET_2_0
GripStyle = ToolStripGripStyle.Hidden;
+ appearance = ToolBarAppearance.Normal;
#endif
}
}
public ToolBarAppearance Appearance {
- get { return flat ? ToolBarAppearance.Flat : ToolBarAppearance.Normal; }
+ get { return appearance; }
set {
if (value == Appearance)
return;
switch (value) {
case ToolBarAppearance.Flat:
Renderer = new ToolStripSystemRenderer ();
+ appearance = ToolBarAppearance.Flat;
break;
case ToolBarAppearance.Normal:
ProfessionalColorTable table = new ProfessionalColorTable ();
table.UseSystemColors = true;
Renderer = new ToolStripProfessionalRenderer (table);
+ appearance = ToolBarAppearance.Normal;
break;
}
}