WindowsCommunityToolkit/Microsoft.Toolkit.Uwp.UI.Co.../Controls/WrapPanel.Metadata.cs

34 строки
1.3 KiB
C#
Исходник Постоянная ссылка Обычный вид История

2018-05-24 01:12:18 +03:00
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
2017-10-11 10:04:31 +03:00
using System.ComponentModel;
using Microsoft.VisualStudio.DesignTools.Extensibility;
using Microsoft.VisualStudio.DesignTools.Extensibility.Metadata;
2017-10-11 10:04:31 +03:00
namespace Microsoft.Toolkit.Uwp.UI.Controls.Design
{
internal class WrapPanelMetadata : AttributeTableBuilder
{
2017-10-11 10:04:31 +03:00
public WrapPanelMetadata()
: base()
{
AddCallback(ControlTypes.WrapPanel,
b =>
{
b.AddCustomAttributes(nameof(WrapPanel.Orientation),
new CategoryAttribute(Resources.CategoryLayout)
);
b.AddCustomAttributes(nameof(WrapPanel.HorizontalSpacing),
new CategoryAttribute(Resources.CategoryLayout)
);
b.AddCustomAttributes(nameof(WrapPanel.VerticalSpacing),
new CategoryAttribute(Resources.CategoryLayout)
);
2017-10-11 10:04:31 +03:00
b.AddCustomAttributes(new ToolboxCategoryAttribute(ToolboxCategoryPaths.Toolkit, false));
}
);
}
}
}