mirror of
https://github.com/microsoft/microsoft-ui-xaml.git
synced 2026-10-28 16:35:19 +08:00
Adds the ShapedItemsSource + TabularShaping pipeline and wires TableView, TableViewColumn, the automation peers and TableViewSource to it, providing sort and filter on top of the basic data-shaping infra. Product-only port of user/dipesh/tableview/shaping-core-v2 (27 new files, 26 modified). Internal build/PipelineScripts mirroring config is intentionally excluded. ResourceAccessor.h merged to preserve the open-source repo's InkToolbar string defines. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 22e963e3-084f-44c9-be76-8bf90278b146
30 lines
896 B
C++
30 lines
896 B
C++
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// Licensed under the MIT License. See LICENSE in the project root for license information.
|
|
|
|
#pragma once
|
|
|
|
#include "TableViewSortingEventArgs.g.h"
|
|
|
|
class TableViewSortingEventArgs :
|
|
public winrt::implementation::TableViewSortingEventArgsT<TableViewSortingEventArgs>
|
|
{
|
|
public:
|
|
TableViewSortingEventArgs(
|
|
winrt::TableViewColumn const& column,
|
|
winrt::SortDirection direction)
|
|
: m_column(column)
|
|
, m_direction(direction)
|
|
{
|
|
}
|
|
|
|
winrt::TableViewColumn Column() { return m_column; }
|
|
winrt::SortDirection Direction() { return m_direction; }
|
|
bool Cancel() { return m_cancel; }
|
|
void Cancel(bool value) { m_cancel = value; }
|
|
|
|
private:
|
|
winrt::TableViewColumn m_column{ nullptr };
|
|
winrt::SortDirection m_direction{ winrt::SortDirection::None };
|
|
bool m_cancel{ false };
|
|
};
|