Files
microsoft-ui-xaml/controls/dev/TableView/TableViewSortingEventArgs.h
T
Dipesh KumarandCopilot 4d9d6f3191 Port TableView data-shaping (sort + filter) core from internal lift (#11644)
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
2026-08-27 16:48:39 +05:30

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 };
};