- StorageView.xaml: DataGrid with IndentLevel-based name indentation - StorageView.xaml.cs: code-behind wiring DataContext to StorageViewModel - IndentConverter.cs: IndentConverter, BytesConverter, InverseBoolConverter - App.xaml: register converters and RightAlignStyle as Application.Resources - App.xaml.cs: register IStorageService, StorageCsvExportService, StorageHtmlExportService, StorageViewModel, StorageView - MainWindow.xaml: add x:Name=StorageTabItem to Storage TabItem - MainWindow.xaml.cs: wire StorageTabItem.Content from DI
13 lines
267 B
C#
13 lines
267 B
C#
using System.Windows.Controls;
|
|
|
|
namespace SharepointToolbox.Views.Tabs;
|
|
|
|
public partial class StorageView : UserControl
|
|
{
|
|
public StorageView(ViewModels.Tabs.StorageViewModel viewModel)
|
|
{
|
|
InitializeComponent();
|
|
DataContext = viewModel;
|
|
}
|
|
}
|