Windows forms propertygrid
Is the PropertyGrid useful in general Windows Forms programming? The PropertyGrid will always be technically-focused. It will display what it finds in the object through reflection.
Therefore PropertyGrid is unsuitable for commonly-used interfaces or user-facing interfaces. But It could be useful for developing a settings window where advanced users can adjust certain settings in the program. Not polished. The PropertyGrid will never have a highly polished and streamlined interface.
Show ; win. Refresh ; propertyGrid1. Example File: ServiceImpl. SelectedObject; ; this. Query, input. Field ; grid.
Search input ; grid. File: EditSettings. File: PropertyGridHelper. File: PropertyInspector. AddRange new System. File: CategoryGridEntry. Assert childGridEntries[n]! SetFlag GridEntry. File: PropertyGridExtension. NonPublic BindingFlags. Instance ; return methodInfo. File: ConfigurationEditor.
AnchorStyles System. Top System. Bottom System. Left System. Right ; this. Halo1: case HaloVersionEnum. HaloCE: map. OpenMap MapTypes. TagIndex, map ; test. Header; map. CloseMap ; break; case HaloVersionEnum. Halo2: case HaloVersionEnum. Halo2Vista: MessageBox. Add open. PropertyValueChangedEventHandler this. File: DashboardGroupNameDialog. File: ElementProperties.
Splitter ; this. TextBox ; this. Control; this. Right; this. Point , 0 ; this. Categorized; this. White; this. Size 3, ; this. Vertical; this. File: FormMain. GetProperty "Controls" ; Control. ControlCollection propertyInfo. GetProperty "Lines" ; propertyInfo. GetField "userSized", BindingFlags.
Instance BindingFlags. Categorized PropertySort. Alphabetical ; this. WriteLine ex. OnTransactionOpened ; designerHost. Document , true ; this. OnTransactionOpened ; value. Count ]; value. The background color is determined by the LineColor property. Visible ; hotcommands. Categorized or PropertySort.
IsEnumValid value , int value , int PropertySort. NoSort , int PropertySort. Empty ; this. But this is not a selectable item. If no objects are selected, null is returned. PropertyGridSetNull, count. ToString CultureInfo. CurrentCulture , value. PropertyGridRemotedObject, value [ count ]. Emtpy, assume the classes are different. Set it to null to avoid leaks. Component ; EnableTabs ; if tabType! Count ]; BrowsableAttributes.
GetType ; if eventTypes! ContainsKey designerKey. Make sure it's selected. Width image. Assert viewTabs [ i ]! Fail "Bad Tab. We're not going to show it. Compare tab. TabName , viewTabs [ i ]. TabName , false , CultureInfo. Copy viewTabs , 0, newTabs , 0, tabIndex ; Array. Assert viewTabs! Fail "Bad tab. We're going to remove it. Component or PropertyTabScope. Assert tab! PropertyGridNoBitmap, tab.
Size ; if size. PropertyGridTabName, tab. Image; button. Image ; button. SizeToFit ; if AccessibilityImprovements. Site ; if site! Count ]; mcs. Go straight to the component's designer. GetDesigner component ; if designer! Count ]; designer. Assert designerEventService! Bounds ; rectangle. Height ; if Math.
Min rectTarget. RectangleToScreen rcFrame ; if rc. DrawReversibleLine new Point rc. Y , new Point rc. Height , ctlDrawTo. Width , rc. GetEditor obj , typeof ComponentEditor! Assert viewTabs. Length , "Uh oh, tab arrays aren't all the same length! Disable for now. Add new Bitmap Bitmap images [ i ], largeButtonSize. Width , largeButtonSize. Dispose ; this. GetValue "PbrsAlpha" , "0" ; if val! GetValue "PbrsShowDesc" , "1" ; this. GetValue "PbrsShowCommands" , "0" ; this.
Parse string val , CultureInfo. Button , me. Clicks , newPt. X , newPt. GetAttributes e. TabClasses [ i ], e. Component , PropertyTabScope. Length - 1]; Array. ClearProps ; this. OnTypeDescriptorRefreshed ; if currentObjects! OnTypeDescriptorRefreshed ; base.
0コメント