RecentDocumentManager listed items grayed

Ribbon for WPF Forum

Posted 10 years ago by Steve GW
Avatar
I sure I'm just missing something - I use Deserailize to get recnet items in the RecentDocumentManager

for example

using (StreamReader streamReader = new StreamReader(recentFilestr))
{
string line ;

while ((line = streamReader.ReadLine()) != null)
{
sb.Append(line);
}

}
recentDocManager.Deserialize(sb.ToString());

and I get the expected items of the recentlist I saved but the items are all grayed out and un selectable.
Can anybody explain why

Comments (1)

Posted 10 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Steve,

The recent document menu items use a command to drive them. If the command cannot find a focusable element at or below the element that can handle the command, they will appear disabled. Make sure you have the keyboard focus somewhere in your window content and that the ApplicationCommands.Open is handled in your window. It should be enabled then.


Actipro Software Support

The latest build of this product (v2019.1 build 0683) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.