Добавить настраиваемое свойство:
Код: Выделить всё
public static void RegisterCustomStates(StorageProviderSyncRootInfo syncRootInfo)
{
var definitions = syncRootInfo.StorageProviderItemPropertyDefinitions;
foreach (var state in CustomState.Values)
{
var def = new StorageProviderItemPropertyDefinition
{
DisplayNameResource = state.Name,
Id = state.Id
};
if (!definitions.Contains(def))
definitions.Add(def);
}
}
public class CustomState
{
public static readonly CustomState SyncStatus = new(1, "Status", "shell32.dll,-259");
public static readonly CustomState CheckOutFlag = new(2, "CheckOut", "shell32.dll,-259");
public static IEnumerable Values
{
get
{
yield return SyncStatus;
yield return CheckOutFlag;
}
}
#region definitions
public int Id { get; }
public string Name { get; }
public string IconResource { get; }
private CustomState(int id, string name, string iconResource)
{
Id = id;
Name = name;
IconResource = iconResource;
}
#endregion
}
Я ожидаю, что два поля будут отображаться в виде столбцов в проводнике Windows по умолчанию:

Текущее фактическое изображение результат
Сегодняшняя ситуация требует от пользователей чтобы выбрать их вручную с помощью параметра «Еще».

Подробнее здесь: https://stackoverflow.com/questions/793 ... e-explorer