Make UiViewModel::Alignment into an enum class.