Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion xml/System.AddIn.Pipeline/FrameworkElementAdapters.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Windows Presentation Foundation (WPF) extends the .NET Framework add-in model to

Once the <xref:System.AddIn.Contract.INativeHandleContract> is passed across the isolation boundary, it must be converted to a type that can be displayed by the host application or the add-in. In this case, the static <xref:System.AddIn.Pipeline.FrameworkElementAdapters.ContractToViewAdapter*> method is called to convert an <xref:System.AddIn.Contract.INativeHandleContract> to a <xref:System.Windows.FrameworkElement>.

For more detailed exposition of WPF add-ins, see [WPF Add-Ins Overview](/dotnet/framework/wpf/app-development/wpf-add-ins-overview).
For more detailed exposition of WPF add-ins, see [WPF Add-Ins Overview](/dotnet/desktop/wpf/app-development/wpf-add-ins-overview).

]]></format>
</remarks>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@
## Remarks
You can enumerate over any collection that implements the <xref:System.Collections.IEnumerable> interface. However, to set up dynamic bindings so that insertions or deletions in the collection update the UI automatically, the collection must implement the <xref:System.Collections.Specialized.INotifyCollectionChanged> interface. This interface exposes the <xref:System.Collections.Specialized.INotifyCollectionChanged.CollectionChanged> event that must be raised whenever the underlying collection changes.

WPF provides the <xref:System.Collections.ObjectModel.ObservableCollection`1> class, which is a built-in implementation of a data collection that exposes the <xref:System.Collections.Specialized.INotifyCollectionChanged> interface. For an example, see [How to: Create and Bind to an ObservableCollection](/dotnet/framework/wpf/data/how-to-create-and-bind-to-an-observablecollection).
WPF provides the <xref:System.Collections.ObjectModel.ObservableCollection`1> class, which is a built-in implementation of a data collection that exposes the <xref:System.Collections.Specialized.INotifyCollectionChanged> interface. For an example, see [How to: Create and Bind to an ObservableCollection](/dotnet/desktop/wpf/data/how-to-create-and-bind-to-an-observablecollection).

The individual data objects within the collection must satisfy the requirements described in the [Binding Sources Overview](/dotnet/framework/wpf/data/binding-sources-overview).
The individual data objects within the collection must satisfy the requirements described in the [Binding Sources Overview](/dotnet/desktop/wpf/data/binding-sources-overview).

Before implementing your own collection, consider using <xref:System.Collections.ObjectModel.ObservableCollection`1> or one of the existing collection classes, such as <xref:System.Collections.Generic.List`1>, <xref:System.Collections.ObjectModel.Collection`1>, and <xref:System.ComponentModel.BindingList`1>, among many others.

Expand Down
2 changes: 1 addition & 1 deletion xml/System.ComponentModel.Design/DesignSurface.xml
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,7 @@
<value>
<see langword="true" /> if the **Design-time Error List** is loading; otherwise, <see langword="false" />.</value>
<remarks>To be added.</remarks>
<related type="Article" href="/dotnet/framework/winforms/controls/design-time-errors-in-the-windows-forms-designer">Design-Time Errors in the Windows Forms Designer</related>
<related type="Article" href="/dotnet/desktop/winforms/controls-design/designer-errors">Design-Time Errors in the Windows Forms Designer</related>
</Docs>
</Member>
<Member MemberName="Flush">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public class DemoComponent : Component
}
```

The following code example demonstrates using the <xref:System.ComponentModel.Design.HelpKeywordAttribute> class to specify a context keyword. For a complete explanation of this code example, see [How to: Apply Attributes in Windows Forms Controls](/dotnet/framework/winforms/controls/how-to-apply-attributes-in-windows-forms-controls).
The following code example demonstrates using the <xref:System.ComponentModel.Design.HelpKeywordAttribute> class to specify a context keyword. For a complete explanation of this code example, see [How to: Apply Attributes in Windows Forms Controls](/dotnet/desktop/winforms/controls/how-to-apply-attributes-in-windows-forms-controls).

:::code language="csharp" source="~/snippets/csharp/System.ComponentModel/AmbientValueAttribute/Overview/attributesdemocontrol.cs" id="Snippet20":::
:::code language="vb" source="~/snippets/visualbasic/System.ComponentModel/AmbientValueAttribute/Overview/attributesdemocontrol.vb" id="Snippet20":::
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@
<param name="treeView">The tree view control to modify.</param>
<summary>Modify a Windows Forms <see cref="T:System.Windows.Forms.TreeView" /> control to use the new Explorer style theme.</summary>
<remarks>To be added.</remarks>
<related type="Article" href="/dotnet/framework/winforms/controls/creating-an-explorer-style-interface-with-the-listview-and-treeview">Walkthrough: Create an Explorer Style Interface with the ListView and TreeView Controls</related>
<related type="Article" href="/dotnet/desktop/winforms/controls/creating-an-explorer-style-interface-with-the-listview-and-treeview">Walkthrough: Create an Explorer Style Interface with the ListView and TreeView Controls</related>
</Docs>
</Member>
<Member MemberName="currValue">
Expand Down
4 changes: 2 additions & 2 deletions xml/System.ComponentModel/AddingNewEventArgs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
## Examples
The following code example demonstrates how to use the <xref:System.ComponentModel.AddingNewEventArgs> class to handle the <xref:System.Windows.Forms.BindingSource.AddingNew?displayProperty=nameWithType> event. This code example is part of a larger example provided in [How to: Customize Item Addition with the Windows Forms BindingSource](/dotnet/framework/winforms/controls/how-to-customize-item-addition-with-the-windows-forms-bindingsource).
The following code example demonstrates how to use the <xref:System.ComponentModel.AddingNewEventArgs> class to handle the <xref:System.Windows.Forms.BindingSource.AddingNew?displayProperty=nameWithType> event. This code example is part of a larger example provided in [How to: Customize Item Addition with the Windows Forms BindingSource](/dotnet/desktop/winforms/controls/how-to-customize-item-addition-with-the-windows-forms-bindingsource).
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/System.Windows.Forms.DataConnector.AddingNew/CPP/form1.cpp" id="Snippet8":::
:::code language="csharp" source="~/snippets/csharp/System.ComponentModel/AddingNewEventArgs/Overview/form1.cs" id="Snippet8":::
Expand Down Expand Up @@ -255,7 +255,7 @@
## Examples
The following code example demonstrates how to use the <xref:System.ComponentModel.AddingNewEventArgs> class to handle the <xref:System.Windows.Forms.BindingSource.AddingNew?displayProperty=nameWithType> event. This code example is part of a larger example provided in [How to: Customize Item Addition with the Windows Forms BindingSource](/dotnet/framework/winforms/controls/how-to-customize-item-addition-with-the-windows-forms-bindingsource).
The following code example demonstrates how to use the <xref:System.ComponentModel.AddingNewEventArgs> class to handle the <xref:System.Windows.Forms.BindingSource.AddingNew?displayProperty=nameWithType> event. This code example is part of a larger example provided in [How to: Customize Item Addition with the Windows Forms BindingSource](/dotnet/desktop/winforms/controls/how-to-customize-item-addition-with-the-windows-forms-bindingsource).
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/System.Windows.Forms.DataConnector.AddingNew/CPP/form1.cpp" id="Snippet8":::
:::code language="csharp" source="~/snippets/csharp/System.ComponentModel/AddingNewEventArgs/Overview/form1.cs" id="Snippet8":::
Expand Down
2 changes: 1 addition & 1 deletion xml/System.ComponentModel/AddingNewEventHandler.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@


## Examples
The following code example demonstrates how to use the <xref:System.ComponentModel.AddingNewEventHandler> delegate to handle the <xref:System.Windows.Forms.BindingSource.AddingNew?displayProperty=nameWithType> event. This code example is part of a larger example provided in [How to: Customize Item Addition with the Windows Forms BindingSource](/dotnet/framework/winforms/controls/how-to-customize-item-addition-with-the-windows-forms-bindingsource).
The following code example demonstrates how to use the <xref:System.ComponentModel.AddingNewEventHandler> delegate to handle the <xref:System.Windows.Forms.BindingSource.AddingNew?displayProperty=nameWithType> event. This code example is part of a larger example provided in [How to: Customize Item Addition with the Windows Forms BindingSource](/dotnet/desktop/winforms/controls/how-to-customize-item-addition-with-the-windows-forms-bindingsource).

:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/System.Windows.Forms.DataConnector.AddingNew/CPP/form1.cpp" id="Snippet8":::
:::code language="csharp" source="~/snippets/csharp/System.ComponentModel/AddingNewEventArgs/Overview/form1.cs" id="Snippet8":::
Expand Down
4 changes: 2 additions & 2 deletions xml/System.ComponentModel/AmbientValueAttribute.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@


## Examples
The following code example demonstrates using <xref:System.ComponentModel.AmbientValueAttribute> to enforce ambient behavior for a property called `AlertForeColor`. For a full code listing, see [How to: Apply Attributes in Windows Forms Controls](/dotnet/framework/winforms/controls/how-to-apply-attributes-in-windows-forms-controls).
The following code example demonstrates using <xref:System.ComponentModel.AmbientValueAttribute> to enforce ambient behavior for a property called `AlertForeColor`. For a full code listing, see [How to: Apply Attributes in Windows Forms Controls](/dotnet/desktop/winforms/controls/how-to-apply-attributes-in-windows-forms-controls).

:::code language="csharp" source="~/snippets/csharp/System.ComponentModel/AmbientValueAttribute/Overview/attributesdemocontrol.cs" id="Snippet23":::
:::code language="vb" source="~/snippets/visualbasic/System.ComponentModel/AmbientValueAttribute/Overview/attributesdemocontrol.vb" id="Snippet23":::
Expand Down Expand Up @@ -581,7 +581,7 @@
<format type="text/markdown"><![CDATA[

## Examples
The following code example demonstrates using <xref:System.ComponentModel.AmbientValueAttribute> to enforce ambient behavior for a property called `AlertForeColor`. For a full code listing, see [How to: Apply Attributes in Windows Forms Controls](/dotnet/framework/winforms/controls/how-to-apply-attributes-in-windows-forms-controls).
The following code example demonstrates using <xref:System.ComponentModel.AmbientValueAttribute> to enforce ambient behavior for a property called `AlertForeColor`. For a full code listing, see [How to: Apply Attributes in Windows Forms Controls](/dotnet/desktop/winforms/controls/how-to-apply-attributes-in-windows-forms-controls).

:::code language="csharp" source="~/snippets/csharp/System.ComponentModel/AmbientValueAttribute/Overview/attributesdemocontrol.cs" id="Snippet23":::
:::code language="vb" source="~/snippets/visualbasic/System.ComponentModel/AmbientValueAttribute/Overview/attributesdemocontrol.vb" id="Snippet23":::
Expand Down
4 changes: 2 additions & 2 deletions xml/System.ComponentModel/AttributeProviderAttribute.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@


## Examples
The following code example demonstrates using <xref:System.ComponentModel.AttributeProviderAttribute> to mark a `DataSource` property with a specific type of <xref:System.ComponentModel.IListSource>. For a full code listing, see [How to: Apply Attributes in Windows Forms Controls](/dotnet/framework/winforms/controls/how-to-apply-attributes-in-windows-forms-controls).
The following code example demonstrates using <xref:System.ComponentModel.AttributeProviderAttribute> to mark a `DataSource` property with a specific type of <xref:System.ComponentModel.IListSource>. For a full code listing, see [How to: Apply Attributes in Windows Forms Controls](/dotnet/desktop/winforms/controls/how-to-apply-attributes-in-windows-forms-controls).

:::code language="csharp" source="~/snippets/csharp/System.ComponentModel/AmbientValueAttribute/Overview/attributesdemocontrol.cs" id="Snippet25":::
:::code language="vb" source="~/snippets/visualbasic/System.ComponentModel/AmbientValueAttribute/Overview/attributesdemocontrol.vb" id="Snippet25":::
Expand Down Expand Up @@ -197,7 +197,7 @@
<format type="text/markdown"><![CDATA[

## Examples
The following code example demonstrates using <xref:System.ComponentModel.AttributeProviderAttribute> to mark a `DataSource` property with a specific type of <xref:System.ComponentModel.IListSource>. For a full code listing, see [How to: Apply Attributes in Windows Forms Controls](/dotnet/framework/winforms/controls/how-to-apply-attributes-in-windows-forms-controls).
The following code example demonstrates using <xref:System.ComponentModel.AttributeProviderAttribute> to mark a `DataSource` property with a specific type of <xref:System.ComponentModel.IListSource>. For a full code listing, see [How to: Apply Attributes in Windows Forms Controls](/dotnet/desktop/winforms/controls/how-to-apply-attributes-in-windows-forms-controls).

:::code language="csharp" source="~/snippets/csharp/System.ComponentModel/AmbientValueAttribute/Overview/attributesdemocontrol.cs" id="Snippet25":::
:::code language="vb" source="~/snippets/visualbasic/System.ComponentModel/AmbientValueAttribute/Overview/attributesdemocontrol.vb" id="Snippet25":::
Expand Down
Loading
Loading