65 types derived from CancelEventArgs
PresentationFramework (6)
src\Framework\System\Windows\Ink\Events.cs (3)
135
public class InkCanvasSelectionChangingEventArgs :
CancelEventArgs
251
public class InkCanvasSelectionEditingEventArgs :
CancelEventArgs
290
public class InkCanvasStrokeErasingEventArgs :
CancelEventArgs
src\Framework\System\Windows\Navigation\NavigatingCancelEventArgs.cs (1)
31
public class NavigatingCancelEventArgs :
CancelEventArgs
src\Framework\System\Windows\Navigation\NavigationService.cs (1)
4531
internal class BPReadyEventArgs :
CancelEventArgs
src\Framework\System\Windows\SessionEndingCancelEventArgs.cs (1)
30
public class SessionEndingCancelEventArgs :
CancelEventArgs
System (2)
compmod\system\componentmodel\DoWorkEventArgs.cs (1)
12
public class DoWorkEventArgs :
CancelEventArgs
sys\system\configuration\ApplicationSettingsBase.cs (1)
764
public class SettingChangingEventArgs :
CancelEventArgs
{
System.Drawing (1)
commonui\System\Drawing\Printing\PrintEvent.cs (1)
20
public class PrintEventArgs :
CancelEventArgs
{
System.Web (26)
ModelBinding\ModelValidatingEventArgs.cs (1)
5
public sealed class ModelValidatingEventArgs :
CancelEventArgs
{
UI\WebControls\DetailsViewDeleteEventArgs.cs (1)
17
public class DetailsViewDeleteEventArgs :
CancelEventArgs
{
UI\WebControls\DetailsViewInsertEventArgs.cs (1)
17
public class DetailsViewInsertEventArgs :
CancelEventArgs
{
UI\WebControls\DetailsViewModeEventArgs.cs (1)
15
public class DetailsViewModeEventArgs :
CancelEventArgs
{
UI\WebControls\DetailsViewPageEventArgs.cs (1)
17
public class DetailsViewPageEventArgs :
CancelEventArgs
{
UI\WebControls\DetailsViewUpdateEventArgs.cs (1)
17
public class DetailsViewUpdateEventArgs :
CancelEventArgs
{
UI\WebControls\FormViewDeleteEventArgs.cs (1)
17
public class FormViewDeleteEventArgs :
CancelEventArgs
{
UI\WebControls\FormViewInsertEventArgs.cs (1)
17
public class FormViewInsertEventArgs :
CancelEventArgs
{
UI\WebControls\FormViewModeEventArgs.cs (1)
15
public class FormViewModeEventArgs :
CancelEventArgs
{
UI\WebControls\FormViewPageEventArgs.cs (1)
17
public class FormViewPageEventArgs :
CancelEventArgs
{
UI\WebControls\FormViewUpdateEventArgs.cs (1)
17
public class FormViewUpdateEventArgs :
CancelEventArgs
{
UI\WebControls\GridViewCancelEditEventArgs.cs (1)
18
public class GridViewCancelEditEventArgs :
CancelEventArgs
{
UI\WebControls\GridViewDeleteEventArgs.cs (1)
20
public class GridViewDeleteEventArgs :
CancelEventArgs
{
UI\WebControls\GridViewEditEventArgs.cs (1)
18
public class GridViewEditEventArgs :
CancelEventArgs
{
UI\WebControls\GridViewPageEventArgs.cs (1)
20
public class GridViewPageEventArgs :
CancelEventArgs
{
UI\WebControls\GridViewSelectEventArgs.cs (1)
20
public class GridViewSelectEventArgs :
CancelEventArgs
{
UI\WebControls\GridViewSortEventArgs.cs (1)
19
public class GridViewSortEventArgs :
CancelEventArgs
{
UI\WebControls\GridViewUpdateEventArgs.cs (1)
20
public class GridViewUpdateEventArgs :
CancelEventArgs
{
UI\WebControls\ObjectDataSourceDisposingEventArgs.cs (1)
16
public class ObjectDataSourceDisposingEventArgs :
CancelEventArgs
{
UI\WebControls\ObjectDataSourceFilteringEventArgs.cs (1)
16
public class ObjectDataSourceFilteringEventArgs :
CancelEventArgs
{
UI\WebControls\ObjectDataSourceMethodEventArgs.cs (1)
16
public class ObjectDataSourceMethodEventArgs :
CancelEventArgs
{
UI\WebControls\SqlDataSourceCommandEventArgs.cs (1)
14
public class SqlDataSourceCommandEventArgs :
CancelEventArgs
{
UI\WebControls\SqlDataSourceFilteringEventArgs.cs (1)
16
public class SqlDataSourceFilteringEventArgs :
CancelEventArgs
{
UI\WebParts\WebPartCancelEventArgs.cs (1)
12
public class WebPartCancelEventArgs :
CancelEventArgs
{
UI\WebParts\WebPartConnectionsCancelEventArgs.cs (1)
12
public class WebPartConnectionsCancelEventArgs :
CancelEventArgs
{
UI\WebParts\WebPartDisplayModeCancelEventArgs.cs (1)
12
public class WebPartDisplayModeCancelEventArgs :
CancelEventArgs
{
System.Web.Entity (3)
System\Data\WebControls\EntityDataSourceChangingEventArgs.cs (1)
18
public class EntityDataSourceChangingEventArgs : System.ComponentModel.
CancelEventArgs
System\Data\WebControls\EntityDataSourceContextDisposingEventArgs.cs (1)
18
public class EntityDataSourceContextDisposingEventArgs :
CancelEventArgs
System\Data\WebControls\EntityDataSourceSelectingEventArgs.cs (1)
21
public class EntityDataSourceSelectingEventArgs : System.ComponentModel.
CancelEventArgs
System.Web.Extensions (12)
UI\WebControls\LinqDataSourceDeleteEventArgs.cs (1)
12
public class LinqDataSourceDeleteEventArgs :
CancelEventArgs
{
UI\WebControls\LinqDataSourceDisposeEventArgs.cs (1)
12
public class LinqDataSourceDisposeEventArgs :
CancelEventArgs
{
UI\WebControls\LinqDataSourceInsertEventArgs.cs (1)
12
public class LinqDataSourceInsertEventArgs :
CancelEventArgs
{
UI\WebControls\LinqDataSourceSelectEventArgs.cs (1)
14
public class LinqDataSourceSelectEventArgs :
CancelEventArgs
{
UI\WebControls\LinqDataSourceUpdateEventArgs.cs (1)
12
public class LinqDataSourceUpdateEventArgs :
CancelEventArgs
{
UI\WebControls\ListViewCancelEventArgs.cs (1)
13
public class ListViewCancelEventArgs :
CancelEventArgs
{
UI\WebControls\ListViewDeleteEventArgs.cs (1)
13
public class ListViewDeleteEventArgs :
CancelEventArgs
{
UI\WebControls\ListViewEditEventArgs.cs (1)
13
public class ListViewEditEventArgs :
CancelEventArgs
{
UI\WebControls\ListViewInsertEventArgs.cs (1)
13
public class ListViewInsertEventArgs :
CancelEventArgs
{
UI\WebControls\ListViewSelectEventArgs.cs (1)
13
public class ListViewSelectEventArgs :
CancelEventArgs
{
UI\WebControls\ListViewSortEventArgs.cs (1)
13
public class ListViewSortEventArgs :
CancelEventArgs
{
UI\WebControls\ListViewUpdateEventArgs.cs (1)
13
public class ListViewUpdateEventArgs :
CancelEventArgs
{
System.Windows.Forms (15)
winforms\Managed\System\WinForms\BindingCompleteEventArgs.cs (1)
16
public class BindingCompleteEventArgs :
CancelEventArgs
{
winforms\Managed\System\WinForms\ColumnReorderedEventArgs.cs (1)
6
public class ColumnReorderedEventArgs :
CancelEventArgs
{
winforms\Managed\System\WinForms\ColumnWidthChangingEvent.cs (1)
12
public class ColumnWidthChangingEventArgs :
CancelEventArgs
{
winforms\Managed\System\WinForms\DataGridViewCellCancelEventArgs.cs (1)
14
public class DataGridViewCellCancelEventArgs :
CancelEventArgs
winforms\Managed\System\WinForms\DataGridViewCellValidatingEventArgs.cs (1)
16
public class DataGridViewCellValidatingEventArgs :
CancelEventArgs
winforms\Managed\System\WinForms\DataGridViewRowCancelEventArgs.cs (1)
17
public class DataGridViewRowCancelEventArgs :
CancelEventArgs
winforms\Managed\System\WinForms\FormClosingEvent.cs (1)
25
public class FormClosingEventArgs :
CancelEventArgs
{
winforms\Managed\System\WinForms\InputLangChangeRequestEvent.cs (1)
26
public class InputLanguageChangingEventArgs :
CancelEventArgs
{
winforms\Managed\System\WinForms\PopupEventArgs.cs (1)
20
public class PopupEventArgs :
CancelEventArgs
winforms\Managed\System\WinForms\SplitterCancelEvent.cs (1)
24
public class SplitterCancelEventArgs :
CancelEventArgs
{
winforms\Managed\System\WinForms\TabControlCancelEvent.cs (1)
29
public class TabControlCancelEventArgs :
CancelEventArgs
{
winforms\Managed\System\WinForms\ToolStripDropDownClosingEventArgs.cs (1)
16
public class ToolStripDropDownClosingEventArgs :
CancelEventArgs
{
winforms\Managed\System\WinForms\ToolStripLocationCancelEventArgs.cs (1)
20
internal class ToolStripLocationCancelEventArgs :
CancelEventArgs
{
winforms\Managed\System\WinForms\TreeViewCancelEvent.cs (1)
30
public class TreeViewCancelEventArgs :
CancelEventArgs
{
winforms\Managed\System\WinForms\WebBrowserNavigatingEventHandler.cs (1)
27
public class WebBrowserNavigatingEventArgs :
CancelEventArgs
{
15 instantiations of CancelEventArgs
PresentationFramework (4)
src\Framework\Microsoft\Win32\FileDialog.cs (2)
1388
CancelEventArgs ceevent = new
CancelEventArgs
();
2149
var cancelArgs = new
CancelEventArgs
();
src\Framework\System\Windows\Window.cs (2)
2274
CancelEventArgs e = new
CancelEventArgs
(false);
4527
CancelEventArgs e = new
CancelEventArgs
(false);
System (1)
sys\system\configuration\ApplicationSettingsBase.cs (1)
347
CancelEventArgs e= new
CancelEventArgs
(false);
System.AddIn (2)
System\Addin\Hosting\AddInProcess.cs (1)
270
CancelEventArgs args = new
CancelEventArgs
();
System\Addin\Hosting\AddInServer.cs (1)
204
CancelEventArgs args = new
CancelEventArgs
();
System.Windows.Forms (7)
winforms\Managed\System\WinForms\ContainerControl.cs (1)
1832
CancelEventArgs ev = new
CancelEventArgs
();
winforms\Managed\System\WinForms\Control.cs (1)
7924
CancelEventArgs ev = new
CancelEventArgs
();
winforms\Managed\System\WinForms\FileDialog.cs (1)
646
CancelEventArgs ceevent = new
CancelEventArgs
();
winforms\Managed\System\WinForms\FileDialog_Vista.cs (1)
172
CancelEventArgs ceevent = new
CancelEventArgs
();
winforms\Managed\System\WinForms\Form.cs (1)
7432
CancelEventArgs e = new
CancelEventArgs
(false);
winforms\Managed\System\WinForms\ToolStripDropDown.cs (1)
1814
CancelEventArgs openEventArgs = new
CancelEventArgs
(/*cancel=*/(DisplayedItems.Count == 0));
winforms\Managed\System\WinForms\WebBrowser.cs (1)
1993
CancelEventArgs e = new
CancelEventArgs
();
System.WorkflowServices (1)
System\Workflow\Activities\Design\OperationPickerDialog.cs (1)
235
CancelEventArgs cancelEventArgs = new
CancelEventArgs
();
72 references to CancelEventArgs
PresentationCore (1)
Core\CSharp\System\Windows\Ink\Stroke.cs (1)
1118
private void StylusPoints_CountGoingToZero(object sender,
CancelEventArgs
e)
PresentationFramework (7)
src\Framework\Microsoft\Win32\FileDialog.cs (3)
927
protected void OnFileOk(
CancelEventArgs
e)
1388
CancelEventArgs
ceevent = new CancelEventArgs();
2149
var
cancelArgs = new CancelEventArgs();
src\Framework\MS\Internal\AppModel\RootBrowserWindow.cs (1)
141
protected override void OnClosing(
CancelEventArgs
e)
src\Framework\System\Windows\Window.cs (3)
2104
protected virtual void OnClosing(
CancelEventArgs
e)
2274
CancelEventArgs
e = new CancelEventArgs(false);
4527
CancelEventArgs
e = new CancelEventArgs(false);
System (7)
compmod\system\componentmodel\CancelEventArgs.cs (3)
16
/// Provides data for the <see cref='System.ComponentModel.
CancelEventArgs
.Cancel'/>
31
/// Initializes a new instance of the <see cref='System.ComponentModel.
CancelEventArgs
'/> class with
40
/// Initializes a new instance of the <see cref='System.ComponentModel.
CancelEventArgs
'/> class with
compmod\system\componentmodel\CancelEventHandler.cs (1)
18
public delegate void CancelEventHandler(object sender,
CancelEventArgs
e);
sys\system\configuration\ApplicationSettingsBase.cs (3)
305
protected virtual void OnSettingsSaving(object sender,
CancelEventArgs
e) {
347
CancelEventArgs
e= new CancelEventArgs(false);
754
public delegate void SettingsSavingEventHandler(object sender,
CancelEventArgs
e);
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\DialogWindow.cs (1)
74
void OnWindowClosing(object sender,
CancelEventArgs
e)
System.AddIn (5)
System\Addin\Hosting\AddInProcess.cs (4)
184
public event EventHandler<System.ComponentModel.
CancelEventArgs
> ShuttingDown;
187
internal void SendShuttingDown(
CancelEventArgs
args)
199
private void ShutDownUnlessCancelled(
CancelEventArgs
args)
270
CancelEventArgs
args = new CancelEventArgs();
System\Addin\Hosting\AddInServer.cs (1)
204
CancelEventArgs
args = new CancelEventArgs();
System.Data (1)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\DialogWindow.cs (1)
74
void OnWindowClosing(object sender,
CancelEventArgs
e)
System.Windows.Forms (25)
winforms\Managed\System\WinForms\Application.cs (1)
1097
public static void Exit(
CancelEventArgs
e) {
winforms\Managed\System\WinForms\Binding.cs (1)
1141
private void Target_Validate(Object sender,
CancelEventArgs
e) {
winforms\Managed\System\WinForms\ComboBox.cs (1)
2882
protected override void OnValidating(
CancelEventArgs
e) {
winforms\Managed\System\WinForms\ContainerControl.cs (1)
1832
CancelEventArgs
ev = new CancelEventArgs();
winforms\Managed\System\WinForms\Control.cs (3)
1914
internal virtual void NotifyValidationResult(object sender,
CancelEventArgs
ev) {
7924
CancelEventArgs
ev = new CancelEventArgs();
9555
protected virtual void OnValidating(
CancelEventArgs
e) {
winforms\Managed\System\WinForms\DataGridViewMethods.cs (1)
19605
protected override void OnValidating(
CancelEventArgs
e)
winforms\Managed\System\WinForms\FileDialog.cs (2)
646
CancelEventArgs
ceevent = new CancelEventArgs();
857
protected void OnFileOk(
CancelEventArgs
e) {
winforms\Managed\System\WinForms\FileDialog_Vista.cs (1)
172
CancelEventArgs
ceevent = new CancelEventArgs();
winforms\Managed\System\WinForms\Form.cs (3)
4644
protected virtual void OnClosing(
CancelEventArgs
e) {
4796
protected virtual void OnHelpButtonClicked(
CancelEventArgs
e) {
7432
CancelEventArgs
e = new CancelEventArgs(false);
winforms\Managed\System\WinForms\MaskedTextBox.cs (2)
2349
protected override void OnValidating(
CancelEventArgs
e)
2537
private object PerformTypeValidation(
CancelEventArgs
e)
winforms\Managed\System\WinForms\Printing\PrintPreviewDialog.cs (1)
1589
protected override void OnClosing(
CancelEventArgs
e) {
winforms\Managed\System\WinForms\ToolStripControlHost.cs (2)
741
private void HandleValidating(object sender,
CancelEventArgs
e) {
963
protected virtual void OnValidating(
CancelEventArgs
e) {
winforms\Managed\System\WinForms\ToolStripDropDown.cs (2)
1387
protected virtual void OnOpening(
CancelEventArgs
e){
1814
CancelEventArgs
openEventArgs = new CancelEventArgs(/*cancel=*/(DisplayedItems.Count == 0));
winforms\Managed\System\WinForms\ToolStripItem.cs (1)
3466
internal void RaiseCancelEvent(object key,
CancelEventArgs
e) {
winforms\Managed\System\WinForms\ToolStripPanel.cs (1)
884
protected override void OnOpening(
CancelEventArgs
e) {
winforms\Managed\System\WinForms\WebBrowser.cs (2)
1453
protected virtual void OnNewWindow(
CancelEventArgs
e)
1993
CancelEventArgs
e = new CancelEventArgs();
System.Workflow.Activities (9)
Rules\Design\Dialogs\BasicBrowserDialog.cs (1)
105
private void OnHelpClicked(object sender,
CancelEventArgs
e)
Rules\Design\Dialogs\RuleConditionDialog.cs (2)
126
private void conditionTextBox_Validating(object sender,
CancelEventArgs
e)
145
private void OnHelpClicked(object sender,
CancelEventArgs
e)
Rules\Design\Dialogs\RuleSetDialog.cs (6)
224
private void conditionTextBox_Validating(object sender,
CancelEventArgs
e)
247
private void thenTextBox_Validating(object sender,
CancelEventArgs
e)
271
private void elseTextBox_Validating(object sender,
CancelEventArgs
e)
335
private void nameTextBox_Validating(object sender,
CancelEventArgs
e)
367
private void priorityTextBox_Validating(object sender,
CancelEventArgs
e)
548
private void OnHelpClicked(object sender,
CancelEventArgs
e)
System.Workflow.ComponentModel (10)
AuthoringOM\Design\DesignerWidgets.cs (1)
1103
protected override void OnClosing(
CancelEventArgs
e)
AuthoringOM\Design\Dialogs\ActivityBindForm.cs (1)
429
private void ActivityBindForm_HelpButtonClicked(object sender,
CancelEventArgs
e)
AuthoringOM\Design\Dialogs\ThemeConfigurationDialog.cs (2)
333
protected override void OnClosing(
CancelEventArgs
e)
526
private void OnHelpClicked(object sender,
CancelEventArgs
e)
AuthoringOM\Design\Dialogs\TypeBrowserDialog.cs (2)
492
protected override void OnClosing(
CancelEventArgs
e)
622
private void TypeBrowserDialog_HelpButtonClicked(object sender,
CancelEventArgs
e)
AuthoringOM\Design\Dialogs\WorkflowPageSetupDialog.cs (4)
1063
private void Margins_Validating(object sender, System.ComponentModel.
CancelEventArgs
e)
1124
private void headerMarginInput_Validating(object sender, System.ComponentModel.
CancelEventArgs
e)
1127
private void footerMarginInput_Validating(object sender, System.ComponentModel.
CancelEventArgs
e)
1241
private void WorkflowPageSetupDialog_HelpButtonClicked(object sender, System.ComponentModel.
CancelEventArgs
e)
System.WorkflowServices (6)
System\Workflow\Activities\Design\OperationPickerDialog.cs (4)
119
protected override void OnHelpButtonClicked(
CancelEventArgs
e)
235
CancelEventArgs
cancelEventArgs = new CancelEventArgs();
400
void ServiceContractValidating(object sender,
CancelEventArgs
e)
448
void ServiceOperationValidating(object sender,
CancelEventArgs
e)
System\Workflow\Activities\Design\ServiceContractDetailViewControl.cs (1)
51
void contractNameTextBox_Validating(object sender,
CancelEventArgs
e)
System\Workflow\Activities\Design\ServiceOperationDetailViewControl.cs (1)
343
void operationNameTextBox_Validating(object sender,
CancelEventArgs
e)