FrayxRulez / SwipeListView

A ListView with swipe handling like the one in new Outlook Mail app for Windows 10.
MIT License
99 stars 29 forks source link

Problems when changing ItemRightBehavior in VisualState Trigger #8

Open byrialsen opened 8 years ago

byrialsen commented 8 years ago

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?

FrayxRulez commented 8 years ago

What value do you set with trigger to ItemRightBehavior?

byrialsen commented 8 years ago

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.

FrayxRulez commented 8 years ago

Ok, doing some tests right now!

kinju4374 commented 8 years ago

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?