Skip to content

Commit 2c1f01b

Browse files
authored
fix/remove sample links for controltemplate (#7639)
1 parent d58f72b commit 2c1f01b

File tree

6 files changed

+21
-35
lines changed

6 files changed

+21
-35
lines changed

xml/System.Windows.Controls.Primitives/TabPanel.xml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,13 @@
2424
<format type="text/markdown"><![CDATA[
2525
2626
## Remarks
27-
The <xref:System.Windows.Controls.Primitives.TabPanel> serves as an item host for the tab items in a <xref:System.Windows.Controls.TabControl>. It determines the correct sizing and positioning for tab items and handles the logic for multiple rows of <xref:System.Windows.Controls.TabItem> objects.
27+
The <xref:System.Windows.Controls.Primitives.TabPanel> serves as an item host for the tab items in a <xref:System.Windows.Controls.TabControl>. It determines the correct sizing and positioning for tab items and handles the logic for multiple rows of <xref:System.Windows.Controls.TabItem> objects.
2828
29-
30-
31-
## Examples
32-
The following example uses the <xref:System.Windows.Controls.Primitives.TabPanel> in a <xref:System.Windows.Controls.ControlTemplate> for a <xref:System.Windows.Controls.TabControl>.
33-
34-
:::code language="xaml" source="~/snippets/csharp/System.Windows/TemplateBindingExtension/Overview/tabcontrol.xaml" id="Snippet13":::
35-
36-
For the complete sample, see [Styling with ControlTemplates Sample](https://go.microsoft.com/fwlink/?LinkID=160041).
29+
## Examples
30+
31+
The following example uses the <xref:System.Windows.Controls.Primitives.TabPanel> in a <xref:System.Windows.Controls.ControlTemplate> for a <xref:System.Windows.Controls.TabControl>.
32+
33+
:::code language="xaml" source="~/snippets/csharp/System.Windows/TemplateBindingExtension/Overview/tabcontrol.xaml" id="Snippet13":::
3734
3835
]]></format>
3936
</remarks>

xml/System.Windows.Controls.Primitives/Track.xml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,7 @@
7474
7575
The viewportSize parameter is the value of the <xref:System.Windows.Controls.Primitives.Track.ViewportSize%2A> property. The maximum and minimum parameters correspond to the <xref:System.Windows.Controls.Primitives.Track.Maximum%2A> and <xref:System.Windows.Controls.Primitives.Track.Minimum%2A> property values. The value of the expression maximum-minimum+viewportSize is the size of the scrollable content. Note that the value of the <xref:System.Windows.Controls.Primitives.Track.Maximum%2A> property represents the <xref:System.Windows.Controls.Primitives.Track.Value%2A> of the <xref:System.Windows.Controls.Primitives.Track> when the content is scrolled to the bottom. This <xref:System.Windows.Controls.Primitives.Track.Maximum%2A> value is not the same as the length or extent of the content. For a more detailed explanation, see <xref:System.Windows.Controls.Primitives.Track.Maximum%2A?displayProperty=nameWithType>.
7676
77-
The <xref:System.Windows.Controls.Primitives.Track.Value%2A> of a <xref:System.Windows.Controls.Primitives.Track> in a <xref:System.Windows.Controls.Primitives.ScrollBar> increases from top to bottom or from left to right depending on the orientation of the <xref:System.Windows.Controls.Primitives.ScrollBar>. Similarly, the <xref:System.Windows.Controls.Primitives.Track.Value%2A> of a <xref:System.Windows.Controls.Primitives.Track> in a <xref:System.Windows.Controls.Slider> increases from bottom to top or from left to right depending on the orientation of the <xref:System.Windows.Controls.Slider>. To change the direction of increasing value, set the <xref:System.Windows.Controls.Primitives.Track.IsDirectionReversed%2A> property of the <xref:System.Windows.Controls.Primitives.Track> to `true`.
78-
79-
77+
The <xref:System.Windows.Controls.Primitives.Track.Value%2A> of a <xref:System.Windows.Controls.Primitives.Track> in a <xref:System.Windows.Controls.Primitives.ScrollBar> increases from top to bottom or from left to right depending on the orientation of the <xref:System.Windows.Controls.Primitives.ScrollBar>. Similarly, the <xref:System.Windows.Controls.Primitives.Track.Value%2A> of a <xref:System.Windows.Controls.Primitives.Track> in a <xref:System.Windows.Controls.Slider> increases from bottom to top or from left to right depending on the orientation of the <xref:System.Windows.Controls.Slider>. To change the direction of increasing value, set the <xref:System.Windows.Controls.Primitives.Track.IsDirectionReversed%2A> property of the <xref:System.Windows.Controls.Primitives.Track> to `true`.
8078
8179
## Examples
8280
The following example shows how to define a <xref:System.Windows.Controls.Primitives.Track> control in a <xref:System.Windows.Controls.Primitives.ScrollBar> <xref:System.Windows.Controls.ControlTemplate>.
@@ -89,7 +87,6 @@
8987
<altmember cref="T:System.Windows.Controls.Slider" />
9088
<altmember cref="T:System.Windows.Controls.Primitives.RangeBase" />
9189
<altmember cref="T:System.Windows.Controls.Primitives.ScrollBar" />
92-
<related type="ExternalDocumentation" href="https://go.microsoft.com/fwlink/?LinkID=160041">Styling with ControlTemplates Sample</related>
9390
</Docs>
9491
<Members>
9592
<Member MemberName=".ctor">
@@ -681,9 +678,7 @@
681678
682679
- If the size of the content is less than a <xref:System.Windows.Controls.Primitives.Track.ViewportSize%2A>, the <xref:System.Windows.Controls.Primitives.Track.Thumb%2A> does not appear and the <xref:System.Windows.UIElement.Visibility%2A> property of <xref:System.Windows.Controls.Primitives.Track.Thumb%2A> is set to `false`.
683680
684-
The minimum sizes for a <xref:System.Windows.Controls.Primitives.Track.Thumb%2A> control are determined by two system parameters, <xref:System.Windows.SystemParameters.VerticalScrollBarButtonHeight%2A> and <xref:System.Windows.SystemParameters.HorizontalScrollBarThumbWidth%2A>. The minimum size for a <xref:System.Windows.Controls.Primitives.Track.Thumb%2A> control in a vertical <xref:System.Windows.Controls.Primitives.Track> is 1/2 * <xref:System.Windows.SystemParameters.VerticalScrollBarButtonHeight%2A> and the minimum size for a <xref:System.Windows.Controls.Primitives.Track.Thumb%2A> control in a horizontal <xref:System.Windows.Controls.Primitives.Track> is 1/2 * <xref:System.Windows.SystemParameters.HorizontalScrollBarThumbWidth%2A>.
685-
686-
681+
The minimum sizes for a <xref:System.Windows.Controls.Primitives.Track.Thumb%2A> control are determined by two system parameters, <xref:System.Windows.SystemParameters.VerticalScrollBarButtonHeight%2A> and <xref:System.Windows.SystemParameters.HorizontalScrollBarThumbWidth%2A>. The minimum size for a <xref:System.Windows.Controls.Primitives.Track.Thumb%2A> control in a vertical <xref:System.Windows.Controls.Primitives.Track> is 1/2 * <xref:System.Windows.SystemParameters.VerticalScrollBarButtonHeight%2A> and the minimum size for a <xref:System.Windows.Controls.Primitives.Track.Thumb%2A> control in a horizontal <xref:System.Windows.Controls.Primitives.Track> is 1/2 * <xref:System.Windows.SystemParameters.HorizontalScrollBarThumbWidth%2A>.
687682
688683
## Examples
689684
The following example shows how the <xref:System.Windows.Controls.Primitives.Track.Thumb%2A> style is defined inside the <xref:System.Windows.Controls.Primitives.ScrollBar><xref:System.Windows.Controls.ControlTemplate> when the <xref:System.Windows.Controls.Primitives.Track.Orientation%2A> property is <xref:System.Windows.Controls.Orientation.Vertical>.
@@ -693,7 +688,6 @@
693688
]]></format>
694689
</remarks>
695690
<altmember cref="T:System.Windows.Controls.Primitives.Thumb" />
696-
<related type="ExternalDocumentation" href="https://go.microsoft.com/fwlink/?LinkID=160041">Styling with ControlTemplates Sample</related>
697691
</Docs>
698692
</Member>
699693
<Member MemberName="Value">

xml/System.Windows.Controls/ComboBox.xml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1082,7 +1082,9 @@
10821082
10831083
10841084
## Examples
1085-
The following example binds the <xref:System.Windows.Controls.ContentPresenter.Content%2A> property of a <xref:System.Windows.Controls.ContentPresenter> to the <xref:System.Windows.Controls.ComboBox.SelectionBoxItem%2A> property. The <xref:System.Windows.Controls.ContentPresenter> is part of the <xref:System.Windows.Controls.ControlTemplate> for the <xref:System.Windows.Controls.ComboBox>. For the complete sample, see [Styling with ControlTemplates Sample](https://go.microsoft.com/fwlink/?LinkID=160041).
1085+
The following example binds the <xref:System.Windows.Controls.ContentPresenter.Content%2A> property of a <xref:System.Windows.Controls.ContentPresenter> to the <xref:System.Windows.Controls.ComboBox.SelectionBoxItem%2A> property. The <xref:System.Windows.Controls.ContentPresenter> is part of the <xref:System.Windows.Controls.ControlTemplate> for the <xref:System.Windows.Controls.ComboBox>.
1086+
1087+
For a complete sample, see [Styling with ControlTemplates Sample](https://github.com/dotnet/docs-desktop/tree/main/dotnet-desktop-guide/samples/snippets/csharp/VS_Snippets_Wpf/ControlTemplateExamples/CS).
10861088
10871089
:::code language="xaml" source="~/snippets/csharp/System.Windows/TemplateBindingExtension/Overview/combobox.xaml" id="Snippetcomboboxselectionbox":::
10881090
@@ -1204,11 +1206,11 @@
12041206
|-|-|
12051207
|Identifier field|<xref:System.Windows.Controls.ComboBox.SelectionBoxItemTemplateProperty>|
12061208
|Metadata properties set to `true`|None|
1207-
1208-
1209-
1209+
12101210
## Examples
1211-
The following example binds the <xref:System.Windows.Controls.ContentPresenter.Content%2A> property of a <xref:System.Windows.Controls.ContentPresenter> to the <xref:System.Windows.Controls.ComboBox.SelectionBoxItemTemplate%2A> property. The <xref:System.Windows.Controls.ContentPresenter> is part of the <xref:System.Windows.Controls.ControlTemplate> for the <xref:System.Windows.Controls.ComboBox>. For the complete sample, see [Styling with ControlTemplates Sample](https://go.microsoft.com/fwlink/?LinkID=160041).
1211+
The following example binds the <xref:System.Windows.Controls.ContentPresenter.Content%2A> property of a <xref:System.Windows.Controls.ContentPresenter> to the <xref:System.Windows.Controls.ComboBox.SelectionBoxItemTemplate%2A> property. The <xref:System.Windows.Controls.ContentPresenter> is part of the <xref:System.Windows.Controls.ControlTemplate> for the <xref:System.Windows.Controls.ComboBox>.
1212+
1213+
For a complete sample, see [Styling with ControlTemplates Sample](https://github.com/dotnet/docs-desktop/tree/main/dotnet-desktop-guide/samples/snippets/csharp/VS_Snippets_Wpf/ControlTemplateExamples/CS).
12121214
12131215
:::code language="xaml" source="~/snippets/csharp/System.Windows/TemplateBindingExtension/Overview/combobox.xaml" id="Snippetcomboboxselectionbox":::
12141216

xml/System.Windows.Controls/ItemsPanelTemplate.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ Alternatively, you can do the following to achieve the same results. In this cas
4646
4747
]]></format>
4848
</remarks>
49-
<related type="ExternalDocumentation" href="https://go.microsoft.com/fwlink/?LinkID=160041">Styling with ControlTemplates Sample</related>
50-
<related type="ExternalDocumentation" href="https://go.microsoft.com/fwlink/?LinkID=160010">Introduction to Styling and Templating Sample</related>
5149
</Docs>
5250
<Members>
5351
<MemberGroup MemberName=".ctor">

xml/System.Windows.Controls/MenuScrollingVisibilityConverter.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@
2929
## Remarks
3030
The <xref:System.Windows.Controls.MenuScrollingVisibilityConverter> determines whether a menu should display the repeat buttons when a menu has too many items to fit on the screen at once. Use the converter with a <xref:System.Windows.Data.MultiBinding> that has four bindings. The four bindings should be to properties of the parent <xref:System.Windows.Controls.ScrollViewer>: If the menu items are organized vertically (which is the default for menus), bind to <xref:System.Windows.Controls.ScrollViewer.ComputedVerticalScrollBarVisibility%2A>, <xref:System.Windows.Controls.ScrollViewer.VerticalOffset%2A>, <xref:System.Windows.Controls.ScrollViewer.ExtentHeight%2A>, and <xref:System.Windows.Controls.ScrollViewer.ViewportHeight%2A>. If the menu items are organized horizontally, bind to <xref:System.Windows.Controls.ScrollViewer.ComputedHorizontalScrollBarVisibility%2A>, <xref:System.Windows.Controls.ScrollViewer.HorizontalOffset%2A>, <xref:System.Windows.Controls.ScrollViewer.ExtentWidth%2A>, and <xref:System.Windows.Controls.ScrollViewer.ViewportWidth%2A>.
3131
32-
Set <xref:System.Windows.Data.MultiBinding.ConverterParameter%2A?displayProperty=nameWithType> to 0 or 100. The value is treated as a percentage and determines whether a button is hidden when the <xref:System.Windows.Controls.ScrollViewer> is at the given location. When the <xref:System.Windows.Controls.ScrollViewer> is at the top, the position of the <xref:System.Windows.Controls.ScrollViewer> is 0% and the top button is hidden. When the <xref:System.Windows.Controls.ScrollViewer> is at the bottom, the position of the <xref:System.Windows.Controls.ScrollViewer> is 100% and the bottom button is hidden.
33-
34-
32+
Set <xref:System.Windows.Data.MultiBinding.ConverterParameter%2A?displayProperty=nameWithType> to 0 or 100. The value is treated as a percentage and determines whether a button is hidden when the <xref:System.Windows.Controls.ScrollViewer> is at the given location. When the <xref:System.Windows.Controls.ScrollViewer> is at the top, the position of the <xref:System.Windows.Controls.ScrollViewer> is 0% and the top button is hidden. When the <xref:System.Windows.Controls.ScrollViewer> is at the bottom, the position of the <xref:System.Windows.Controls.ScrollViewer> is 100% and the bottom button is hidden.
3533
3634
## Examples
37-
The following example uses the <xref:System.Windows.Controls.MenuScrollingVisibilityConverter> in the <xref:System.Windows.Controls.ControlTemplate> of a <xref:System.Windows.Controls.ScrollViewer> for a menu. For the complete example, see [Styling with ControlTemplates Sample](https://go.microsoft.com/fwlink/?LinkID=160041).
35+
The following example uses the <xref:System.Windows.Controls.MenuScrollingVisibilityConverter> in the <xref:System.Windows.Controls.ControlTemplate> of a <xref:System.Windows.Controls.ScrollViewer> for a menu.
36+
37+
For a complete sample, see [Styling with ControlTemplates Sample](https://github.com/dotnet/docs-desktop/tree/main/dotnet-desktop-guide/samples/snippets/csharp/VS_Snippets_Wpf/ControlTemplateExamples/CS).
3838
3939
:::code language="xaml" source="~/snippets/csharp/System.Windows/TemplateBindingExtension/Overview/menu.xaml" id="Snippetmenuscrollviewer":::
4040

xml/System.Windows.Controls/TabControl.xml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@
648648
## XAML Attribute Usage
649649
650650
```
651-
<object property="{TemplateBinding SelectedContent}"/>
651+
<object property="{TemplateBinding SelectedContent}"/>
652652
```
653653
654654
<a name="dependencyPropertyInfo_SelectedContent"></a>
@@ -657,9 +657,7 @@
657657
|||
658658
|-|-|
659659
|Identifier field|<xref:System.Windows.Controls.TabControl.SelectedContentProperty>|
660-
|Metadata properties set to `true`|None|
661-
662-
660+
|Metadata properties set to `true`|None|
663661
664662
## Examples
665663
The following example uses the <xref:System.Windows.Controls.TabControl.SelectedContent%2A> property to get the `Person` in the currently selected <xref:System.Windows.Controls.TabItem>.
@@ -677,7 +675,6 @@
677675
678676
]]></format>
679677
</remarks>
680-
<related type="ExternalDocumentation" href="https://go.microsoft.com/fwlink/?LinkID=160041">Styling with ControlTemplates Sample</related>
681678
</Docs>
682679
</Member>
683680
<Member MemberName="SelectedContentProperty">
@@ -817,7 +814,6 @@
817814
818815
]]></format>
819816
</remarks>
820-
<related type="ExternalDocumentation" href="https://go.microsoft.com/fwlink/?LinkID=160041">Styling with ControlTemplates Sample</related>
821817
</Docs>
822818
</Member>
823819
<Member MemberName="SelectedContentTemplateProperty">
@@ -908,7 +904,6 @@
908904
909905
]]></format>
910906
</remarks>
911-
<related type="ExternalDocumentation" href="https://go.microsoft.com/fwlink/?LinkID=160041">Styling with ControlTemplates Sample</related>
912907
</Docs>
913908
</Member>
914909
<Member MemberName="SelectedContentTemplateSelectorProperty">

0 commit comments

Comments
 (0)