Skip to content

Conversation

@ryalanms
Copy link
Member

WPF/PresentationCore-Windows : Generate XML files from most recent GA WPF source and update docs with DocsPortingTool

The RC1 source for these assemblies has 'triple-slash' comments not in the documentation:

PresentationBuildTasks
PresentationCore-AutomationPeers (AutomationPeers, Ink, and Input)
PresentationCore-Interop (Interop, Markup, Media Animation, and Media Effects)
PresentationCore-Media (Imaging and Media3D)
PresentationCore-MediaOther1
PresentationCore-MediaOther2
PresentationCore-Windows (System.Windows)
ReachFramework
System.Windows.Controls.Ribbon
System.Windows.Presentation
UIAutomationClient
UIAutomationTypes
WindowsBase

There is one documentation update PR per assembly, except PresentationCore, which was spit into 6 areas.

(Hide whitespace changes when reviewing files.)

/cc @dotnet/wpf-developers @carlossanlop

@ghost
Copy link

ghost commented Sep 24, 2021

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

@opbld31
Copy link

opbld31 commented Sep 24, 2021

Docs Build status updates of commit 96dd1fa:

✅ Validation status: passed

File Status Preview URL Details
xml/System.Windows.Media/PathFigureCollection+Enumerator.xml ✅Succeeded View
xml/System.Windows.Media/PathFigureCollection.xml ✅Succeeded View
xml/System.Windows.Media/PathFigureCollectionConverter.xml ✅Succeeded View
xml/System.Windows.Media/PathGeometry.xml ✅Succeeded View
xml/System.Windows.Media/PathSegmentCollection+Enumerator.xml ✅Succeeded View
xml/System.Windows.Media/PathSegmentCollection.xml ✅Succeeded View
xml/System.Windows.Media/Pen.xml ✅Succeeded View
xml/System.Windows.Media/PointCollection+Enumerator.xml ✅Succeeded View
xml/System.Windows.Media/PointCollection.xml ✅Succeeded View
xml/System.Windows.Media/PolyBezierSegment.xml ✅Succeeded View
xml/System.Windows.Media/PolyLineSegment.xml ✅Succeeded View
xml/System.Windows.Media/PolyQuadraticBezierSegment.xml ✅Succeeded View
xml/System.Windows.Media/QuadraticBezierSegment.xml ✅Succeeded View
xml/System.Windows.Media/RadialGradientBrush.xml ✅Succeeded View
xml/System.Windows.Media/RectangleGeometry.xml ✅Succeeded View
xml/System.Windows.Media/RequestCachePolicyConverter.xml ✅Succeeded View
xml/System.Windows.Media/RotateTransform.xml ✅Succeeded View
xml/System.Windows.Media/ScaleTransform.xml ✅Succeeded View
xml/System.Windows.Media/SkewTransform.xml ✅Succeeded View
xml/System.Windows.Media/SolidColorBrush.xml ✅Succeeded View
xml/System.Windows.Media/StreamGeometry.xml ✅Succeeded View
xml/System.Windows.Media/StreamGeometryContext.xml ✅Succeeded View
xml/System.Windows.Media/TextEffect.xml ✅Succeeded View
xml/System.Windows.Media/TextEffectCollection.xml ✅Succeeded View
xml/System.Windows.Media/TransformCollection+Enumerator.xml ✅Succeeded View
xml/System.Windows.Media/TransformCollection.xml ✅Succeeded View
xml/System.Windows.Media/TransformGroup.xml ✅Succeeded View
xml/System.Windows.Media/TranslateTransform.xml ✅Succeeded View
xml/System.Windows.Media/VectorCollection+Enumerator.xml ✅Succeeded View
xml/System.Windows.Media/VectorCollection.xml ✅Succeeded View
xml/System.Windows.Media/VectorCollectionConverter.xml ✅Succeeded View
xml/System.Windows.Media/VideoDrawing.xml ✅Succeeded View
xml/System.Windows.Media/Visual.xml ✅Succeeded View
xml/System.Windows.Media/VisualBrush.xml ✅Succeeded View
xml/System.Windows.Media/VisualCollection.xml ✅Succeeded View
xml/System.Windows/CultureInfoIetfLanguageTagConverter.xml ✅Succeeded View

For more details, please refer to the build report.

Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.

For any questions, please:

@carlossanlop carlossanlop requested a review from a team September 28, 2021 16:09
@carlossanlop carlossanlop added the area-WPF Issues or PRs that relate to WPF or XAML. label Sep 28, 2021
<Parameter Name="source" Type="System.Windows.Freezable" />
</Parameters>
<Docs>
<param name="source">To be added.</param>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing docs for this param. Can you please add a description? Same request applies for the rest of the APIs in this file.

Copy link
Contributor

@carlossanlop carlossanlop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ryalanms I left some comments and suggestions for you to consider. Many summaries need a better description.

</Parameters>
<Docs>
<param name="source">To be added.</param>
<summary>Implementation of Freezable.CloneCore()</summary>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The description is not helpful for the user. Can you please describe what the API does? Same request applies for the rest of the APIs in this file.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or use <inheritdoc />.

Comment on lines +149 to +150
<exception cref="T:System.NotSupportedException">A NotSupportedException is thrown if the example object is <see langword="null" /> or is not a valid type
which can be converted to a PathFigureCollection.</exception>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<exception cref="T:System.NotSupportedException">A NotSupportedException is thrown if the example object is <see langword="null" /> or is not a valid type
which can be converted to a PathFigureCollection.</exception>
<exception cref="T:System.NotSupportedException"><paramref name="value"/> is <see langword="null" /> or is not a valid type which can be converted to a <see cref="T:System.Windows.Media.PathFigureCollection" />.</exception>

Comment on lines +185 to +186
<exception cref="T:System.NotSupportedException">A NotSupportedException is thrown if "value" is <see langword="null" /> or not an instance of PathFigureCollection,
or if the destinationType isn't one of the valid destination types.</exception>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<exception cref="T:System.NotSupportedException">A NotSupportedException is thrown if "value" is <see langword="null" /> or not an instance of PathFigureCollection,
or if the destinationType isn't one of the valid destination types.</exception>
<exception cref="T:System.NotSupportedException"><paramref name="value"/> is <see langword="null" /> or not an instance of <see cref="T:System.Windows.Media.PathFigureCollection" />.
-or-
<paramref name="destinationType"/> is not one of the valid destination types.</exception>

Comment on lines +326 to +327
<summary>Implementation of <see cref="M:System.Windows.Freezable.CreateInstanceCore">Freezable.CreateInstanceCore</see>.</summary>
<returns>The new Freezable.</returns>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please improve these descriptions? Same request applies for the other API modified in this file.

</Parameters>
<Docs>
<param name="source">To be added.</param>
<summary>Implementation of Freezable.CloneCore()</summary>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same. Can you please improve this and the rest of the summaries of the modified APIs? Also add the missing param description for all of them.

Comment on lines +149 to +150
<exception cref="T:System.NotSupportedException">A NotSupportedException is thrown if the example object is <see langword="null" /> or is not a valid type
which can be converted to a VectorCollection.</exception>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<exception cref="T:System.NotSupportedException">A NotSupportedException is thrown if the example object is <see langword="null" /> or is not a valid type
which can be converted to a VectorCollection.</exception>
<exception cref="T:System.NotSupportedException"><paramref name="value"/> is <see langword="null" /> or is not a valid type which can be converted to a <see cref="T:System.Windows.Media.VectorCollection" />.</exception>

Comment on lines +192 to +193
<exception cref="T:System.NotSupportedException">A NotSupportedException is thrown if "value" is <see langword="null" /> or not an instance of VectorCollection,
or if the destinationType isn't one of the valid destination types.</exception>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<exception cref="T:System.NotSupportedException">A NotSupportedException is thrown if "value" is <see langword="null" /> or not an instance of VectorCollection,
or if the destinationType isn't one of the valid destination types.</exception>
<exception cref="T:System.NotSupportedException"><paramref name="value"/> is <see langword="null" /> or not an instance of <see cref="T:System.Windows.Media.VectorCollection" />.
-or-
<paramref name="destinationTypes"/> is not one of the valid destination types.</exception>

Comment on lines 633 to 635
<exception cref="T:System.ArgumentNullException">If ancestor is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentException">If the ancestor Visual3D is not a ancestor of Visual.</exception>
<exception cref="T:System.InvalidOperationException">If the Visuals are not connected.</exception>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<exception cref="T:System.ArgumentNullException">If ancestor is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentException">If the ancestor Visual3D is not a ancestor of Visual.</exception>
<exception cref="T:System.InvalidOperationException">If the Visuals are not connected.</exception>
<exception cref="T:System.ArgumentNullException"><paramref name="ancestor"/> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentException">The <paramref name="ancestor"/> Visual3D is not a ancestor of Visual.</exception>
<exception cref="T:System.InvalidOperationException">The Visuals are not connected.</exception>

Comment on lines 153 to 155
<exception cref="T:System.ArgumentNullException">An ArgumentNullException is thrown if the example object is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentException">An ArgumentException is thrown if the example object is not <see langword="null" /> and is not a valid type
which can be converted to a CultureInfo.</exception>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The description of the ArgumentException was describing the opposite behavior.

Suggested change
<exception cref="T:System.ArgumentNullException">An ArgumentNullException is thrown if the example object is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentException">An ArgumentException is thrown if the example object is not <see langword="null" /> and is not a valid type
which can be converted to a CultureInfo.</exception>
<exception cref="T:System.ArgumentNullException"><paramref name="value"/> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentException"><paramref name="value"/> is <see langword="null" /> or is not a valid type which can be converted to a <see cref="T:System.Globalization.CultureInfo" />.</exception>

Comment on lines 196 to 198
<exception cref="T:System.ArgumentNullException">An ArgumentNullException is thrown if the example object is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentException">An ArgumentException is thrown if the example object is not <see langword="null" /> and is not a CultureInfo,
or if the destinationType isn't one of the valid destination types.</exception>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<exception cref="T:System.ArgumentNullException">An ArgumentNullException is thrown if the example object is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentException">An ArgumentException is thrown if the example object is not <see langword="null" /> and is not a CultureInfo,
or if the destinationType isn't one of the valid destination types.</exception>
<exception cref="T:System.ArgumentNullException"><paramref name="value"/> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentException"><paramref name="value"/> is <see langword="null" /> or is not a <see cref="T:System.Globalization.CultureInfo" />.
-or-
<paramref name="destinationType"/> is not one of the valid destination types.</exception>

@BillWagner
Copy link
Member

closing as abandoned

@BillWagner BillWagner closed this Jul 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-WPF Issues or PRs that relate to WPF or XAML.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants