Hi, I'm using the latest version of the WinControls package and I'm using trying to hide inactive data on a DropDownList to prevent the user from selecting it but ElementVisibility.Collapsed shows a blank line (as ElementVisibility.Hidden). It is my understanding that the row should not visible nor blank with the first value.
Am i missing something?
Am i missing something?
private
void
uxAssignedAt_VisualListItemFormatting(
object
sender, VisualItemFormattingEventArgs args)
{
var personne = args.VisualItem.Data.DataBoundItem
as
Personne;
// Reset default value
args.VisualItem.ResetValue(LightVisualElement.VisibilityProperty, ValueResetFlags.Local);
if
(personne !=
null
&& !personne.IndActive)
{
args.VisualItem.Visibility = ElementVisibility.Collapsed;
}
}