Varian-MedicalAffairsAppliedSolutions / MAAS-SFRThelper

Medical Affairs Applied Solutions ESAPI plugin tools to aid in the creation of structure patterns (spheres) or irregular stuctures (straight and angled rods) which can be evaluated or aid in the creation of treatment plans with the intention of not covering traditional PTVs homogeneously.
Other
6 stars 4 forks source link

Hide lateral scaling factor when CVT3D is selected #28

Open GatewayScripts opened 6 days ago

mattcschmidt commented 4 days ago

In the lateral scaling factor (both label and textbox), set an attribute maybe something like Visibility="{Binding LSFVisibility, Converter={StaticResource localVisibilityConverter}}" and in the viewmodel make a FULL property called LSFVisibility and set it to false whenver CVT3D radiobutton is selected and set it to true whenever that radiobutton is deselected. That can happen in the setter of IsCVT3D:

public bool IsCVT3D{
get{return _isCVT3D;}
set{
SetProperty(ref _isCVT3D,value);
///some other stuff in here
if(IsCVT3D){
LSFVisibility = false;
}
else{
LSFVisibility=true;
}
}
}