public PropertyPad() { frame = new InvisibleFrame(); #if MAC isNative = true; if (isNative) { nativeGrid = new MacPropertyGrid(); propertyGrid = nativeGrid; nativeGrid.PropertyGridChanged += Grid_Changed; gtkWidget = new GtkNSViewHost(nativeGrid); frame.Add(gtkWidget); } else { #endif grid = new pg.PropertyGrid(); propertyGrid = grid; grid.Changed += Grid_Changed; frame.Add(grid); #if MAC } #endif frame.ShowAll(); }
public PropertyPad() { frame = new InvisibleFrame(); #if MAC isNative = FeatureSwitchService.IsFeatureEnabled("NativePropertyPanel") ?? false; if (isNative) { nativeGrid = new MacPropertyGrid(); propertyGrid = nativeGrid; gtkWidget = Components.Mac.GtkMacInterop.NSViewToGtkWidget(nativeGrid); gtkWidget.CanFocus = true; gtkWidget.Sensitive = true; gtkWidget.Focused += Widget_Focused; nativeGrid.Focused += PropertyGrid_Focused; frame.Add(gtkWidget); } else { #endif grid = new pg.PropertyGrid(); propertyGrid = grid; grid.Changed += Grid_Changed; frame.Add(grid); #if MAC } #endif frame.ShowAll(); }
public ExecutionResultViewModel(bool isTestRun) { Result = new ObservableCollection <JobOutput>(); _isTestRun = isTestRun; // Display the property info tool if not visible yet var shell = IoC.Get <IShell>(); var propertyTool = shell.Tools.FirstOrDefault(t => t is IPropertyGrid); if (propertyTool == null || (propertyTool != null && !propertyTool.IsVisible)) { if (propertyTool == null) { propertyTool = IoC.Get <IPropertyGrid>(); } _shouldClosePropertyGridOnDeactivate = true; shell.ShowTool(propertyTool); } _inspectorTool = (IPropertyGrid)propertyTool; _output = IoC.Get <IOutput>(); }
public ExplorerView() { InitializeComponent(); _propertyGrid = IoC.Get <IPropertyGrid>(); }
public PropertyGridView(IPropertyGrid pg) { PropertyGrid = pg ?? new PropertyGrid(); DataContext = PropertyGrid; }
public PropertyGridView(IPropertyGrid pg) { PropertyGrid = pg??new PropertyGrid(); DataContext = PropertyGrid; }
public EditorViewModel(IPropertyGrid propertyGrid, IExtendedShell extendedShell) { _extendedShell = extendedShell; _propertyGrid = propertyGrid; }
public EditorProvider(IPropertyGrid propertyGrid, IExtendedShell extendedShell) { _propertyGrid = propertyGrid; _extendedShell = extendedShell; }