Skip to content

Commit

Permalink
Remove excessive BoxView API comments (#25399)
Browse files Browse the repository at this point in the history
  • Loading branch information
kubaflo authored Oct 23, 2024
1 parent 454a30d commit 19e900d
Showing 1 changed file with 0 additions and 55 deletions.
55 changes: 0 additions & 55 deletions src/Controls/docs/Microsoft.Maui.Controls/BoxView.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,61 +29,6 @@
</Attributes>
<Docs>
<summary>A <see cref="T:Microsoft.Maui.Controls.View" /> used to draw a solid colored rectangle.</summary>
<remarks>
<para>BoxView is a useful stand-in for images or custom elements when doing initial prototyping. BoxView has a default size request of 40x40. If you need a different size, assign the <see cref="P:Microsoft.Maui.Controls.VisualElement.WidthRequest" /> and <see cref="P:Microsoft.Maui.Controls.VisualElement.HeightRequest" /> properties.</para>
<example>
<para>The example below creates a red <see cref="T:Microsoft.Maui.Controls.BoxView" /> with the default width and height.</para>
<code lang="XAML"><![CDATA[<BoxView Color="Red" />]]></code>
</example>
<para>The following example shows a basic use:</para>
<example>
<code lang="csharp lang-csharp"><![CDATA[
using System;
using Microsoft.Maui.Controls;
namespace FormsGallery
{
class BoxViewDemoPage : ContentPage
{
public BoxViewDemoPage()
{
Label header = new Label
{
Text = "BoxView",
Font = Font.BoldSystemFontOfSize(50),
HorizontalOptions = LayoutOptions.Center
};
BoxView boxView = new BoxView
{
Color = Color.Accent,
WidthRequest = 150,
HeightRequest = 150,
HorizontalOptions = LayoutOptions.Center,
VerticalOptions = LayoutOptions.CenterAndExpand
};
// Accomodate iPhone status bar.
this.Padding = new Thickness(10, Device.OnPlatform(20, 0, 0), 10, 5);
// Build the page.
this.Content = new StackLayout
{
Children =
{
header,
boxView
}
};
}
}
}
]]></code>
</example>
<para>
<img href="~/xml/Microsoft.Maui.Controls/_images/BoxView.TripleScreenShot.png" />
</para>
</remarks>
</Docs>
<Members>
<Member MemberName=".ctor">
Expand Down

0 comments on commit 19e900d

Please sign in to comment.