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
|
|
|
|
2020-05-30 17:37:34 +03:00
|
|
|
using System.ComponentModel;
|
|
|
|
|
2020-05-30 18:11:31 +03:00
|
|
|
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
|
|
|
|
{
|
2020-05-30 17:37:34 +03:00
|
|
|
internal class WrapPanelMetadata : AttributeTableBuilder
|
|
|
|
{
|
2017-10-11 10:04:31 +03:00
|
|
|
public WrapPanelMetadata()
|
2020-05-30 17:37:34 +03:00
|
|
|
: base()
|
|
|
|
{
|
2020-05-30 18:06:35 +03:00
|
|
|
AddCallback(ControlTypes.WrapPanel,
|
2020-05-30 17:37:34 +03:00
|
|
|
b =>
|
|
|
|
{
|
|
|
|
b.AddCustomAttributes(nameof(WrapPanel.Orientation),
|
2020-05-30 17:56:19 +03:00
|
|
|
new CategoryAttribute(Resources.CategoryLayout)
|
2020-05-30 17:37:34 +03:00
|
|
|
);
|
2017-11-14 17:30:42 +03:00
|
|
|
b.AddCustomAttributes(nameof(WrapPanel.HorizontalSpacing),
|
2020-05-30 17:56:19 +03:00
|
|
|
new CategoryAttribute(Resources.CategoryLayout)
|
2017-11-14 17:30:42 +03:00
|
|
|
);
|
|
|
|
b.AddCustomAttributes(nameof(WrapPanel.VerticalSpacing),
|
2020-05-30 17:56:19 +03:00
|
|
|
new CategoryAttribute(Resources.CategoryLayout)
|
2017-11-14 17:30:42 +03:00
|
|
|
);
|
2017-10-11 10:04:31 +03:00
|
|
|
b.AddCustomAttributes(new ToolboxCategoryAttribute(ToolboxCategoryPaths.Toolkit, false));
|
2020-05-30 17:37:34 +03:00
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
2021-02-14 11:32:05 +03:00
|
|
|
}
|