Main Panel
- Key Model: self-hosted MachiningProject
- Other Model: UserEnv
- If the application is single-user WPF application, the model binds to SingleUserApp.UserEnv.
Main Panel
Layout
- Top
Navigation Menu
Project Menu Dropdown
Project Path Text Field
New MenuItem
Load MenuItem
Save MenuItem
Save As MenuItem
Environment Menu Dropdown
Machine Tool MenuItem
Controller MenuItem
Open Controller PageTool House MenuItem
Fixture MenuItem
Open Fixture PageWorkpiece MenuItem
Open Workpiece Page
Mission MenuItem
Player MenuItem
Link to Player PanelFlex Tool Bar
s (varied with content ofPage Panel
, show nothing if no tool bars existed)- Preference Menu Dropdown
- Central
Page Panel
- Bottom
Message Bar
Behavior of Navigation Menu
/Project
Project Path Text Field
Shows the Project Path if the project is assinged.
Tip
Project Path Text Field
should not be button style. It should be a pure text field that can be selected and copied.
The Project
Menu Managing MachiningProject.
To New
(create), Save
and Save As
the MachiningProject, See DemoBuildGeomOnlyMachiningProject for the example.
To Load
MachiningProject, See DemoUseMachiningProject for the example.
Show message for the actions result (successed or has exception) by MessageKit.
Tip
Recommmand using static function of MessageKit to do the job. Read document of MessageKit to ensure the proper usage.
Behavior of Page Link
For example, Navigation Menu
/Player
, If the nav-item is entered, Set Page Panel
to Player Panel and add related tool bar (see Player Panel) to Navigation Menu
/Flex Tool Bar
.
If the nav-item is exited, remove the related tool bar.
On project loaded (Navigation Menu
/Project
/Load MenuItem
)
, set the Player.Panel.RenderingCanvas.DispEngine to SetViewToIsometricView().
Tip
Using async to comfort the process
Single-User WPF Application Source Code Path
- MainWindow
see this page for git repository.