UI - Truxton Analyst - Dev Guide

From truxwiki.com
Revision as of 10:04, 2 November 2021 by Adrian (talk | contribs) (Added mroe debugging info)
Jump to navigation Jump to search

This page is a developer's guide to the User Interface of the Desktop application called Truxton Analyst.

Work in Progress

Summary

Primary Technology WPF, .Net, C#
Design Pattern MVVM

UI Guide Menu

  1. Entry Point
  2. Navigation and Routing
  3. Databinding

Running a Development Build

When running a Development Build, you'll have access to various tools for development such as: debugging, hot reloading, inspecting elements, etc.

To run a Development Build, build the whole project so that Truxton is installed (startover.cmd or compile.cmd). When Truxton is installed, ensure that the Truxton Analyst app is closed. Then run TruxtonClient from Visual Studio. Basically, we want the other services running so that the Development Build for the UI has the services to work.

Useful tools when developing the UI

When debugging, you can set breakpoints and use the different windows to monitor the variables, call stacks, and stack traces.

In the client view, a dev toolbar will be at the top of the screen. One of the more useful tools includes the Element Selector that will focus on the element in the Live Visual Tree in Visual Studio. Once focused in the Live Visual Tree, you can navigate and investigate the element and its parent and sibling elements. You can also directly go to the associated code with a click of the button.