Skip to content

Commit 343dd5f

Browse files
authored
Fix broken links - Feb 2022 (#7732)
1 parent ddef885 commit 343dd5f

File tree

7 files changed

+25
-36
lines changed

7 files changed

+25
-36
lines changed

xml/System.Windows.Controls.Primitives/CustomPopupPlacementCallback.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@
4343
<altmember cref="P:System.Windows.Controls.Primitives.Popup.CustomPopupPlacementCallback" />
4444
<altmember cref="P:System.Windows.Controls.ToolTip.CustomPopupPlacementCallback" />
4545
<altmember cref="P:System.Windows.Controls.ContextMenu.CustomPopupPlacementCallback" />
46-
<related type="ExternalDocumentation" href="https://github.com/dotnet/dotnet-api-docs/tree/main/snippets/csharp/VS_Snippets_Wpf/PopupPositionSnippet/CS">Popup Placement Sample</related>
46+
<related type="ExternalDocumentation" href="https://github.com/dotnet/dotnet-api-docs/tree/main/snippets/csharp/System.Windows.Controls/ContextMenu/CustomPopupPlacementCallback">Popup Placement Sample</related>
4747
</Docs>
4848
</Type>

xml/System.Windows.Controls.Primitives/Popup.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1225,7 +1225,7 @@
12251225
<altmember cref="P:System.Windows.Controls.Primitives.Popup.Placement" />
12261226
<altmember cref="P:System.Windows.Controls.Primitives.Popup.VerticalOffset" />
12271227
<altmember cref="P:System.Windows.Controls.Primitives.Popup.HorizontalOffset" />
1228-
<related type="ExternalDocumentation" href="https://github.com/dotnet/dotnet-api-docs/tree/main/snippets/csharp/VS_Snippets_Wpf/PopupPositionSnippet/CS">Popup Placement Sample</related>
1228+
<related type="ExternalDocumentation" href="https://github.com/dotnet/dotnet-api-docs/tree/main/snippets/csharp/System.Windows.Controls/ContextMenu/CustomPopupPlacementCallback">Popup Placement Sample</related>
12291229
</Docs>
12301230
</Member>
12311231
<Member MemberName="PlacementRectangleProperty">

xml/System.Windows.Controls/ContextMenu.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@
208208
209209
The <xref:System.Windows.Controls.Primitives.CustomPopupPlacementCallback> delegate returns an array of possible points that are defined with respect to the <xref:System.Windows.Controls.ContextMenu.PlacementTarget%2A>. When the context menu is displayed, a point is chosen that maximizes the amount of the <xref:System.Windows.Controls.ToolTip> window that is visible.
210210
211-
The behavior is the same as it is for the popup. For more information, see [How to: Specify a Custom Popup Position](/dotnet/framework/wpf/controls/how-to-specify-a-custom-popup-position) and [Popup Placement Sample](https://github.com/dotnet/dotnet-api-docs/tree/main/snippets/csharp/VS_Snippets_Wpf/PopupPositionSnippet/CS).
211+
The behavior is the same as it is for the popup. For more information, see [How to: Specify a Custom Popup Position](/dotnet/framework/wpf/controls/how-to-specify-a-custom-popup-position) and [Popup Placement Sample](https://github.com/dotnet/dotnet-api-docs/tree/main/snippets/csharp/System.Windows.Controls/ContextMenu/CustomPopupPlacementCallback).
212212
213213
<a name="dependencyPropertyInfo_CustomPopupPlacementCallback"></a>
214214
## Dependency Property Information

xml/System.Windows.Controls/ToolTip.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@
228228
|Metadata properties set to `true`|None|
229229
230230
## Examples
231-
The following example shows how to set the <xref:System.Windows.Controls.ToolTip.CustomPopupPlacementCallback%2A> property and create the corresponding delegate. The same technique is used to by the <xref:System.Windows.Controls.Primitives.Popup>, which is demonstrated in the [Popup Placement Sample](https://github.com/dotnet/dotnet-api-docs/tree/main/snippets/csharp/VS_Snippets_Wpf/PopupPositionSnippet/CS).
231+
The following example shows how to set the <xref:System.Windows.Controls.ToolTip.CustomPopupPlacementCallback%2A> property and create the corresponding delegate. The same technique is used to by the <xref:System.Windows.Controls.Primitives.Popup>, which is demonstrated in the [Popup Placement Sample](https://github.com/dotnet/dotnet-api-docs/tree/main/snippets/csharp/System.Windows.Controls/ContextMenu/CustomPopupPlacementCallback).
232232
233233
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/ToolTip/CustomPopupPlacementCallback/Pane1.xaml.cs" id="Snippetcustompopupplacementcallback":::
234234
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/ToolTipCustom/visualbasic/pane1.xaml.vb" id="Snippetcustompopupplacementcallback":::

xml/System.Windows.Controls/UserControl.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
4949
]]></format>
5050
</remarks>
51-
<related type="ExternalDocumentation" href="https://go.microsoft.com/fwlink/?LinkID=160025">NumericUpDown Custom Control with Theme and UI Automation Support Sample</related>
5251
</Docs>
5352
<Members>
5453
<Member MemberName=".ctor">

xml/System.Windows.Data/RelativeSource.xml

Lines changed: 19 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,7 @@
4444
4545
The following example shows the <xref:System.Windows.Style> definition of a custom control called `NumericUpDown`. The <xref:System.Windows.Controls.TextBlock.Text%2A> property of the <xref:System.Windows.Controls.TextBlock> is bound to the `Value` of the object that is the `TemplatedParent`, which is the `NumericUpDown` control that this <xref:System.Windows.Style> is applied to in this case.
4646
47-
:::code language="xaml" source="~/snippets/csharp/System.Windows/FrameworkElement/DefaultStyleKey/themes/generic.xaml" id="Snippetrelativesource":::
48-
49-
For the complete sample, see [NumericUpDown Custom Control with Theme and UI Automation Support Sample](https://go.microsoft.com/fwlink/?LinkID=160025).
47+
:::code language="xaml" source="~/snippets/csharp/System.Windows/FrameworkElement/DefaultStyleKey/themes/generic.xaml" id="Snippetrelativesource":::
5048
5149
The following returns the second <xref:System.Windows.Controls.ItemsControl> encountered on the upward path starting at the target element of the binding.
5250
@@ -142,10 +140,9 @@
142140
<remarks>
143141
<format type="text/markdown"><![CDATA[
144142
145-
## Remarks
146-
`ancestorType` and `ancestorLevel` have no relevance if given as parameters for a `mode` other than <xref:System.Windows.Data.RelativeSourceMode.FindAncestor>. Do not use this signature for the other <xref:System.Windows.Data.RelativeSourceMode> values.
147-
148-
143+
## Remarks
144+
145+
`ancestorType` and `ancestorLevel` have no relevance if given as parameters for a `mode` other than <xref:System.Windows.Data.RelativeSourceMode.FindAncestor>. Do not use this signature for the other <xref:System.Windows.Data.RelativeSourceMode> values.
149146
150147
## Examples
151148
The following returns the second <xref:System.Windows.Controls.ItemsControl> encountered on the upward path starting at the target element of the binding.
@@ -188,14 +185,14 @@
188185
<remarks>
189186
<format type="text/markdown"><![CDATA[
190187
191-
## Remarks
192-
If the <xref:System.Windows.Data.RelativeSource.Mode%2A> property is not set explicitly, setting the <xref:System.Windows.Data.RelativeSource.AncestorType%2A> or the <xref:System.Windows.Data.RelativeSource.AncestorLevel%2A> property will implicitly lock the <xref:System.Windows.Data.RelativeSource.Mode%2A> property value to <xref:System.Windows.Data.RelativeSourceMode.FindAncestor>.
188+
## Remarks
189+
190+
If the <xref:System.Windows.Data.RelativeSource.Mode%2A> property is not set explicitly, setting the <xref:System.Windows.Data.RelativeSource.AncestorType%2A> or the <xref:System.Windows.Data.RelativeSource.AncestorLevel%2A> property will implicitly lock the <xref:System.Windows.Data.RelativeSource.Mode%2A> property value to <xref:System.Windows.Data.RelativeSourceMode.FindAncestor>.
193191
194192
<a name="xamlTextUsage_AncestorLevel"></a>
195-
## XAML Text Usage
196-
For XAML information, see [RelativeSource MarkupExtension](/dotnet/framework/wpf/advanced/relativesource-markupextension).
197-
198-
193+
## XAML Text Usage
194+
195+
For XAML information, see [RelativeSource MarkupExtension](/dotnet/framework/wpf/advanced/relativesource-markupextension).
199196
200197
## Examples
201198
The following returns the second <xref:System.Windows.Controls.ItemsControl> encountered on the upward path starting at the target element of the binding.
@@ -240,14 +237,14 @@
240237
<remarks>
241238
<format type="text/markdown"><![CDATA[
242239
243-
## Remarks
244-
If the <xref:System.Windows.Data.RelativeSource.Mode%2A> property is not set explicitly, setting the <xref:System.Windows.Data.RelativeSource.AncestorType%2A> or the <xref:System.Windows.Data.RelativeSource.AncestorLevel%2A> property will implicitly lock the <xref:System.Windows.Data.RelativeSource.Mode%2A> property value to <xref:System.Windows.Data.RelativeSourceMode.FindAncestor>.
240+
## Remarks
241+
242+
If the <xref:System.Windows.Data.RelativeSource.Mode%2A> property is not set explicitly, setting the <xref:System.Windows.Data.RelativeSource.AncestorType%2A> or the <xref:System.Windows.Data.RelativeSource.AncestorLevel%2A> property will implicitly lock the <xref:System.Windows.Data.RelativeSource.Mode%2A> property value to <xref:System.Windows.Data.RelativeSourceMode.FindAncestor>.
245243
246244
<a name="xamlTextUsage_AncestorType"></a>
247-
## XAML Text Usage
248-
For XAML information, see [RelativeSource MarkupExtension](/dotnet/framework/wpf/advanced/relativesource-markupextension).
249-
250-
245+
## XAML Text Usage
246+
247+
For XAML information, see [RelativeSource MarkupExtension](/dotnet/framework/wpf/advanced/relativesource-markupextension).
251248
252249
## Examples
253250
The following returns the second <xref:System.Windows.Controls.ItemsControl> encountered on the upward path starting at the target element of the binding.
@@ -417,9 +414,7 @@
417414
418415
<a name="xamlTextUsage_Self"></a>
419416
## XAML Text Usage
420-
For XAML information, see [RelativeSource MarkupExtension](/dotnet/framework/wpf/advanced/relativesource-markupextension).
421-
422-
417+
For XAML information, see [RelativeSource MarkupExtension](/dotnet/framework/wpf/advanced/relativesource-markupextension).
423418
424419
## Examples
425420
The following example shows a style trigger that creates a <xref:System.Windows.Controls.ToolTip> that reports a validation error message. The value of the setter binds to the error content of the current <xref:System.Windows.Controls.TextBox> (the <xref:System.Windows.Controls.TextBox> using the style) using the <xref:System.Windows.Data.Binding.RelativeSource%2A> property. See [How to: Implement Binding Validation](/dotnet/framework/wpf/data/how-to-implement-binding-validation) for more information on this example.
@@ -600,16 +595,12 @@
600595
601596
<a name="xamlTextUsage_TemplatedParent"></a>
602597
## XAML Text Usage
603-
For XAML information, see [RelativeSource MarkupExtension](/dotnet/framework/wpf/advanced/relativesource-markupextension).
604-
605-
598+
For XAML information, see [RelativeSource MarkupExtension](/dotnet/framework/wpf/advanced/relativesource-markupextension).
606599
607600
## Examples
608601
The following example shows the <xref:System.Windows.Style> definition of a custom control called `NumericUpDown`. The <xref:System.Windows.Controls.TextBlock.Text%2A> property of the <xref:System.Windows.Controls.TextBlock> is bound to the `Value` of the object that is the `TemplatedParent`, which is the `NumericUpDown` control that this <xref:System.Windows.Style> is applied to in this case.
609602
610-
:::code language="xaml" source="~/snippets/csharp/System.Windows/FrameworkElement/DefaultStyleKey/themes/generic.xaml" id="Snippetrelativesource":::
611-
612-
For the complete sample, see [NumericUpDown Custom Control with Theme and UI Automation Support Sample](https://go.microsoft.com/fwlink/?LinkID=160025).
603+
:::code language="xaml" source="~/snippets/csharp/System.Windows/FrameworkElement/DefaultStyleKey/themes/generic.xaml" id="Snippetrelativesource":::
613604
614605
]]></format>
615606
</remarks>

xml/System.Windows/FrameworkElement.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1383,17 +1383,16 @@
13831383
13841384
13851385
## Examples
1386-
The following example illustrates the dependency property metadata override usage discussed in Remarks. This code defines a custom control class `NumericUpDown` intended to be used from a dedicated control library assembly. The illustrated static constructor references some private initialization function, registers a class handler (another common control subclassing scenario; see [Marking Routed Events as Handled, and Class Handling](/dotnet/framework/wpf/advanced/marking-routed-events-as-handled-and-class-handling)) and finally overrides the <xref:System.Windows.FrameworkElement.DefaultStyleKey%2A> dependency property metadata on the `NumericUpDown` class. <xref:System.Windows.FrameworkElement.DefaultStyleKey%2A> always returns its own type as the intended key, which is the convention that the theme style system uses to look up the style for some arbitrary otherwise non-styled control. The complete sample also defines the actual control's theme style that is referenced by that key; see [NumericUpDown Custom Control with Theme and UI Automation Support Sample](https://go.microsoft.com/fwlink/?LinkID=160025).
1386+
The following example illustrates the dependency property metadata override usage discussed in Remarks. This code defines a custom control class `NumericUpDown` intended to be used from a dedicated control library assembly. The illustrated static constructor references some private initialization function, registers a class handler (another common control subclassing scenario; see [Marking Routed Events as Handled, and Class Handling](/dotnet/framework/wpf/advanced/marking-routed-events-as-handled-and-class-handling)) and finally overrides the <xref:System.Windows.FrameworkElement.DefaultStyleKey%2A> dependency property metadata on the `NumericUpDown` class. <xref:System.Windows.FrameworkElement.DefaultStyleKey%2A> always returns its own type as the intended key, which is the convention that the theme style system uses to look up the style for some arbitrary otherwise non-styled control.
13871387
13881388
:::code language="csharp" source="~/snippets/csharp/System.Windows/FrameworkElement/DefaultStyleKey/NumericUpDown2.cs":::
13891389
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/CustomControlNumericUpDown/visualbasic/customcontrollibrary/numericupdown2.vb":::
13901390
1391-
The complete source code for this example is available on GitHub for both [C#](https://github.com/dotnet/dotnet-api-docs/tree/main/snippets/csharp/VS_Snippets_Wpf/CustomControlNumericUpDown/CSharp/CustomControlLibrary) and [Visual Basic](https://github.com/dotnet/dotnet-api-docs/tree/main/snippets/visualbasic/VS_Snippets_Wpf/CustomControlNumericUpDown/visualbasic/customcontrollibrary).
1391+
The complete source code for this example is available for [Visual Basic](https://github.com/dotnet/dotnet-api-docs/tree/main/snippets/visualbasic/VS_Snippets_Wpf/CustomControlNumericUpDown/visualbasic/customcontrollibrary).
13921392
13931393
]]></format>
13941394
</remarks>
13951395
<altmember cref="P:System.Windows.FrameworkElement.OverridesDefaultStyle" />
1396-
<related type="ExternalDocumentation" href="https://go.microsoft.com/fwlink/?LinkID=160025">NumericUpDown Custom Control with Theme and UI Automation Support Sample</related>
13971396
</Docs>
13981397
</Member>
13991398
<Member MemberName="DefaultStyleKeyProperty">

0 commit comments

Comments
 (0)