xarial / xcad

Framework for developing CAD applications for SOLIDWORKS, including add-ins, stand-alone applications, macro features, property manager pages, etc.
https://xcad.net
MIT License
129 stars 27 forks source link

Updating Combobox based on another comboBox selection change #5

Closed emersonbottero closed 4 years ago

emersonbottero commented 4 years ago

this code works great.

public override IEnumerable<string> ProvideItems(SwApplication app) => Directory.GetDirectories(@"X:/");

but how can I show in the next combobox the subfolders of the selected folder in the previous combobox?

image

artem1t commented 4 years ago

I think it needs to be implemented similarly to control dependencies, e.t. ProvideItems should also pass dependent controls and be called every time dependency changed.

artem1t commented 4 years ago

This is now implemented an available in preview builds, will be later merged in release

artem1t commented 4 years ago

Merged to release