1 write to IsDefault
System.Windows.Forms (1)
System\Windows\Forms\Controls\Buttons\Button.cs (1)
195IsDefault = value;
32 references to IsDefault
System.Windows.Forms (32)
System\Windows\Forms\Controls\Buttons\Button.cs (2)
125if (IsDefault) 193if (IsDefault != value)
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (2)
278if (IsDefault) 323if (value == IsDefault)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (2)
123&& (Control.Focused || Control.MouseIsOver || (Control.IsDefault && Control.Enabled)); 687IsDefault = Control.IsDefault,
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonFlatAdapter.cs (9)
69if (Control.IsDefault) 82if (!(Control.IsDefault && Control.Focused && (Control.FlatAppearance.BorderSize == 0))) 84DrawDefaultBorder(e, r, colors.WindowFrame, Control.IsDefault); 157if (Control.IsDefault) 170if (!(Control.IsDefault && Control.Focused && (Control.FlatAppearance.BorderSize == 0))) 172DrawDefaultBorder(e, r, colors.WindowFrame, Control.IsDefault); 238if (Control.IsDefault) 259if (!(Control.IsDefault && Control.Focused && (Control.FlatAppearance.BorderSize == 0))) 261DrawDefaultBorder(e, r, colors.WindowFrame, Control.IsDefault);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonPopupAdapter.cs (6)
30if (Control.IsDefault) 47DrawDefaultBorder(e, r, borderColor, Control.IsDefault); 76if (Control.IsDefault) 84DrawDefaultBorder(e, r, colors.Options.HighContrast ? colors.WindowText : colors.ButtonShadow, Control.IsDefault); 124if (Control.IsDefault) 135DrawDefaultBorder(e, r, colors.Options.HighContrast ? colors.WindowText : colors.WindowFrame, Control.IsDefault);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonStandardAdapter.cs (3)
32else if (Control.Focused || Control.IsDefault) 188if (Control.IsDefault) 193DrawDefaultBorder(e, r, colors.WindowFrame, Control.IsDefault);
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\ButtonDarkModeAdapter.cs (4)
78textColor = ButtonDarkModeRenderer.GetTextColor(state, Control.IsDefault, backColor); 92Control.IsDefault, 104Control.IsDefault, 143Control.IsDefault,
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\ModernButtonColorMath.cs (1)
97return renderer.GetBackgroundColor(PushButtonState.Normal, owner.IsDefault);
System\Windows\Forms\Rendering\Button\AnimatedPopupButtonRenderer.cs (3)
126&& (button.Focused || button.MouseIsOver || button.IsDefault); 146: _baseColorRenderer.GetTextColor(state, button.IsDefault, faceColor); 168IsDefault = button.IsDefault,