The Windows ribbon framework markup supports an **EnablePinning** attribute for the recent items menu in the application menu:

```
<ApplicationMenu.RecentItems>
  <RecentItems CommandName="MRU" EnablePinning="true" />
</ApplicationMenu.RecentItems>

```

I expected that there would be a matching property that can be queried/updated at runtime, but I can't find a property key. Does anyone know if there is one, and, if so, what it is?

Alternatively, is there another way to turn pinning on/off at runtime? Neither the element nor its parent support application modes.

TIA

Clarification: What I'm trying to do is enable/disable pinning for the entire menu at runtime. I'm not concerned about the pin states of the individual items.