51 строка
3.1 KiB
C#
51 строка
3.1 KiB
C#
// ******************************************************************
|
|
// Copyright (c) Microsoft. All rights reserved.
|
|
// This code is licensed under the MIT License (MIT).
|
|
// THE CODE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
|
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH
|
|
// THE CODE OR THE USE OR OTHER DEALINGS IN THE CODE.
|
|
// ******************************************************************
|
|
|
|
using Microsoft.Toolkit.Uwp.UI.Controls.Design.Common;
|
|
using Microsoft.Windows.Design;
|
|
using Microsoft.Windows.Design.Metadata;
|
|
using Microsoft.Windows.Design.PropertyEditing;
|
|
using System.ComponentModel;
|
|
|
|
namespace Microsoft.Toolkit.Uwp.UI.Controls.Design
|
|
{
|
|
internal class PullToRefreshListViewMetadata : AttributeTableBuilder
|
|
{
|
|
public PullToRefreshListViewMetadata()
|
|
: base()
|
|
{
|
|
AddCallback(typeof(Microsoft.Toolkit.Uwp.UI.Controls.PullToRefreshListView),
|
|
b =>
|
|
{
|
|
b.AddCustomAttributes(nameof(PullToRefreshListView.OverscrollLimit), new CategoryAttribute(Properties.Resources.CategoryCommon));
|
|
b.AddCustomAttributes(nameof(PullToRefreshListView.PullThreshold), new CategoryAttribute(Properties.Resources.CategoryCommon));
|
|
b.AddCustomAttributes(nameof(PullToRefreshListView.RefreshCommand),
|
|
new EditorBrowsableAttribute(EditorBrowsableState.Advanced),
|
|
new CategoryAttribute(Properties.Resources.CategoryCommon)
|
|
);
|
|
b.AddCustomAttributes(nameof(PullToRefreshListView.RefreshIntentCanceledCommand),
|
|
new EditorBrowsableAttribute(EditorBrowsableState.Advanced),
|
|
new CategoryAttribute(Properties.Resources.CategoryCommon)
|
|
);
|
|
b.AddCustomAttributes(nameof(PullToRefreshListView.RefreshIndicatorContent), new CategoryAttribute(Properties.Resources.CategoryCommon));
|
|
b.AddCustomAttributes(nameof(PullToRefreshListView.PullToRefreshLabel), new CategoryAttribute(Properties.Resources.CategoryCommon));
|
|
b.AddCustomAttributes(nameof(PullToRefreshListView.ReleaseToRefreshLabel), new CategoryAttribute(Properties.Resources.CategoryCommon));
|
|
b.AddCustomAttributes(nameof(PullToRefreshListView.PullToRefreshContent), new CategoryAttribute(Properties.Resources.CategoryCommon));
|
|
b.AddCustomAttributes(nameof(PullToRefreshListView.ReleaseToRefreshContent), new CategoryAttribute(Properties.Resources.CategoryCommon));
|
|
b.AddCustomAttributes(nameof(PullToRefreshListView.IsPullToRefreshWithMouseEnabled), new CategoryAttribute(Properties.Resources.CategoryCommon));
|
|
b.AddCustomAttributes(new ToolboxCategoryAttribute(ToolboxCategoryPaths.Toolkit, false));
|
|
}
|
|
);
|
|
}
|
|
}
|
|
}
|