SwipeListView icon indicating copy to clipboard operation
SwipeListView copied to clipboard

Problems when changing ItemRightBehavior in VisualState Trigger

Open byrialsen opened this issue 10 years ago • 4 comments

Hi

In my UWP project I try to change the value of the SwipeListView.ItemRightBehavior in a VisualState Trigger. Doing it in designtime in Blend gives me an "The property value is not valid" error, and running the app gives the following error message.

Error: Converter failed to convert value of type 'Windows.Foundation.Int32' to type 'SwipeListBehavior'; BindingExpression: Path='ItemRightBehavior' DataItem='Universal.UI.Xaml.Controls.SwipeListView'; target element is 'Universal.UI.Xaml.Controls.SwipeListViewItem' (Name='null'); target property is 'RightBehavior' (type 'SwipeListBehavior').

Any suggestions on how to fix it?

byrialsen avatar Mar 09 '16 20:03 byrialsen

What value do you set with trigger to ItemRightBehavior?

FrayxRulez avatar Mar 11 '16 11:03 FrayxRulez

I want to be able to switch between all the states: Disabled, Expand and Collapse. But for this project I was trying to switch between Disabled and Collapse in the VisualState trigger.

byrialsen avatar Mar 11 '16 11:03 byrialsen

Ok, doing some tests right now!

FrayxRulez avatar Mar 11 '16 11:03 FrayxRulez

Hi, I don't want to give full swipe options like delete and flag available in Outlook mail. I want to give 2 options on both when user swipes and when he clicks on any of them some action should take place. Is it possible with this control?

kinju4374 avatar Mar 11 '16 17:03 kinju4374