We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Using a PinnalbleListBox for a Recent Files List on a Ribbon Backstage, how do I capture a pin change or item click in the view model?

Thread ID:

Created:

Updated:

Platform:

Replies:

121207 Nov 18,2015 02:20 PM Nov 19,2015 07:47 AM WPF 1
loading
Tags: PinnableListBox
Paul Jastrow
Asked On November 18, 2015 02:20 PM

I am trying to use a PinnableListBox Control as Recent Files list. I am trying to find an example that shows which events or fields I need to access in my view model to 

1) determine when the user single clicks an item and which item they click os the view model run the command to open the file, and

2) determine when they click the item's pin to set its pin status. (I am assuming this would be just a simple two-way binding on IsPinned, but I am looking for validation on this assumption) 

I checked out the posting that shows how to display and sort a resent lists (which helped get the list displayed) but I can't find any other examples on how to use this control.

Any help would be appreciated.

Venkateshwaran Ramdoss [Syncfusion]
Replied On November 19, 2015 07:47 AM

Hi Paul,

Thank you for contacting Syncfusion Support.

Query#1:"determine when the user single clicks an item and which item they click os the view model run the command to open the file?"

We have prepared a sample with PinnableListBox .In this sample we have use ItemsSource to populate the items. While clicking the item, we have used command to display its header and Pinnable status.

Query#2:"determine when they click the item's pin to set its pin status?"

In this sample we have binded the “IsPinned” Property to the Tooltip of the item . This will display the Pinnable status .

Please download the sample from below.

Sample: PinnableListBoxsample

Please let us know if you need further assistance.

Regards,
Venkateshwaran V.R.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;