# vortexlite/fileexplorerwpf architecture

> Architecture diagram of the GitHub repository vortexlite/fileexplorerwpf, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-11). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/vortexlite/fileexplorerwpf
- Repository: https://github.com/vortexlite/fileexplorerwpf

## Overview

FileExplorerWPF is a Windows desktop file explorer. The principal workflow is navigating a folder and acting on its files through the main window and its view model; the sampled view-model code also opens file properties and dispatches a 3D-print action. The README contains only the product name, so capabilities beyond the excerpts are not documented here. Generated startup code identifies the main window, and the source index shows the view model's model and command dependencies; unsampled UI bindings and view-model actions are not inferred.

Main entry points: [`FileExplorerWPF/ViewModel/ViewModel.cs`](https://github.com/vortexlite/fileexplorerwpf/blob/master/FileExplorerWPF/ViewModel/ViewModel.cs) (Explorer view model), [`FileExplorerWPF/Views/MainWindow.xaml.cs`](https://github.com/vortexlite/fileexplorerwpf/blob/master/FileExplorerWPF/Views/MainWindow.xaml.cs) (Explorer window), [`FileExplorerWPF/App.xaml.cs`](https://github.com/vortexlite/fileexplorerwpf/blob/master/FileExplorerWPF/App.xaml.cs) (Application startup), [`FileExplorerWPF/Views/PropertiesDialog.xaml.cs`](https://github.com/vortexlite/fileexplorerwpf/blob/master/FileExplorerWPF/Views/PropertiesDialog.xaml.cs) (Properties dialog)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_presentation["Desktop UI"]
  node_app["Application startup<br/>[App.xaml.cs]"]
  node_main["Explorer window<br/>[MainWindow.xaml.cs]"]
  node_properties["Properties dialog"]
  node_rename["Rename dialog"]
  node_model3d["3D model viewer"]
end

subgraph group_workflow["Explorer workflow"]
  node_vm["Explorer view model<br/>[ViewModel.cs]"]
  node_commands["UI commands<br/>[RelayCommand.cs]"]
  node_simplecommand["Simple command<br/>[Command.cs]"]
end

subgraph group_domain["Explorer data"]
  node_filemodel["File details"]
  node_menumodel["Menu item details"]
end

node_user(("Desktop user"))

node_app -->|"starts"| node_main
node_user -.->|"uses"| node_main
node_main -.->|"binds to"| node_vm
node_vm -->|"uses"| node_filemodel
node_vm -->|"uses"| node_menumodel
node_vm -->|"creates"| node_commands
node_vm -->|"creates"| node_simplecommand
node_vm -->|"opens"| node_properties
node_vm -.->|"dispatches"| node_model3d
node_vm -.->|"opens"| node_rename

click node_app "https://github.com/vortexlite/fileexplorerwpf/blob/master/FileExplorerWPF/App.xaml.cs"
click node_main "https://github.com/vortexlite/fileexplorerwpf/blob/master/FileExplorerWPF/Views/MainWindow.xaml.cs"
click node_properties "https://github.com/vortexlite/fileexplorerwpf/blob/master/FileExplorerWPF/Views/PropertiesDialog.xaml.cs"
click node_rename "https://github.com/vortexlite/fileexplorerwpf/blob/master/FileExplorerWPF/Views/RenameDialog.xaml.cs"
click node_model3d "https://github.com/vortexlite/fileexplorerwpf/blob/master/FileExplorerWPF/Views/Printing3DModel.xaml.cs"
click node_vm "https://github.com/vortexlite/fileexplorerwpf/blob/master/FileExplorerWPF/ViewModel/ViewModel.cs"
click node_commands "https://github.com/vortexlite/fileexplorerwpf/blob/master/FileExplorerWPF/Commands/RelayCommand.cs"
click node_simplecommand "https://github.com/vortexlite/fileexplorerwpf/blob/master/FileExplorerWPF/Commands/Command.cs"
click node_filemodel "https://github.com/vortexlite/fileexplorerwpf/blob/master/FileExplorerWPF/Models/FileDetailsModel.cs"
click node_menumodel "https://github.com/vortexlite/fileexplorerwpf/blob/master/FileExplorerWPF/Models/SubMenuItemDetails.cs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_main,node_properties,node_rename,node_model3d,node_user toneBlue
class node_vm,node_commands,node_simplecommand toneAmber
class node_filemodel,node_menumodel toneMint
```

## Components

### Desktop UI

- [Application startup](https://github.com/vortexlite/fileexplorerwpf/blob/master/FileExplorerWPF/App.xaml.cs): `FileExplorerWPF/App.xaml.cs`
- [Explorer window](https://github.com/vortexlite/fileexplorerwpf/blob/master/FileExplorerWPF/Views/MainWindow.xaml.cs): `FileExplorerWPF/Views/MainWindow.xaml.cs`
- [Properties dialog](https://github.com/vortexlite/fileexplorerwpf/blob/master/FileExplorerWPF/Views/PropertiesDialog.xaml.cs): `FileExplorerWPF/Views/PropertiesDialog.xaml.cs`
- [Rename dialog](https://github.com/vortexlite/fileexplorerwpf/blob/master/FileExplorerWPF/Views/RenameDialog.xaml.cs): `FileExplorerWPF/Views/RenameDialog.xaml.cs`
- [3D model viewer](https://github.com/vortexlite/fileexplorerwpf/blob/master/FileExplorerWPF/Views/Printing3DModel.xaml.cs): `FileExplorerWPF/Views/Printing3DModel.xaml.cs`

### Explorer workflow

- [Explorer view model](https://github.com/vortexlite/fileexplorerwpf/blob/master/FileExplorerWPF/ViewModel/ViewModel.cs): `FileExplorerWPF/ViewModel/ViewModel.cs`
- [UI commands](https://github.com/vortexlite/fileexplorerwpf/blob/master/FileExplorerWPF/Commands/RelayCommand.cs): `FileExplorerWPF/Commands/RelayCommand.cs`
- [Simple command](https://github.com/vortexlite/fileexplorerwpf/blob/master/FileExplorerWPF/Commands/Command.cs): `FileExplorerWPF/Commands/Command.cs`

### Explorer data

- [File details](https://github.com/vortexlite/fileexplorerwpf/blob/master/FileExplorerWPF/Models/FileDetailsModel.cs): `FileExplorerWPF/Models/FileDetailsModel.cs`
- [Menu item details](https://github.com/vortexlite/fileexplorerwpf/blob/master/FileExplorerWPF/Models/SubMenuItemDetails.cs): `FileExplorerWPF/Models/SubMenuItemDetails.cs`

### Other components

- **Desktop user**

## Connections

- Application startup → Explorer window: starts
- Desktop user → Explorer window: uses
- Explorer window → Explorer view model: binds to
- Explorer view model → File details: uses (evidence: `FileExplorerWPF/ViewModel/ViewModel.cs`)
- Explorer view model → Menu item details: uses (evidence: `FileExplorerWPF/ViewModel/ViewModel.cs`)
- Explorer view model → UI commands: creates (evidence: `FileExplorerWPF/ViewModel/ViewModel.cs`)
- Explorer view model → Simple command: creates (evidence: `FileExplorerWPF/ViewModel/ViewModel.cs`)
- Explorer view model → Properties dialog: opens (evidence: `FileExplorerWPF/ViewModel/ViewModel.cs`)
- Explorer view model → 3D model viewer: dispatches
- Explorer view model → Rename dialog: opens
