I use the next code to load the document reference list.
However the items are shown in a different way than i add it????
Dim Ar As New ArrayList
On Error Resume Next
'Ar is filled with items here....
Dim M As ActiproSoftware.Windows.DocumentManagement.RecentDocumentManager = RecentFileDocumentManager
M.Documents.Clear() 'init
For i As Integer = 0 To Ar.Count - 1
Dim Idoc As ActiproSoftware.Windows.DocumentManagement.IDocumentReference = New ActiproSoftware.Windows.DocumentManagement.DocumentReference
Dim Filepath As String = "" & System.IO.Path.GetDirectoryName(Ar(i))
Dim Filename As String = "" & System.IO.Path.GetFileName(Ar(i))
Idoc.Location = New Uri(Filepath)
Idoc.LastOpenedDateTime = Now.AddMilliseconds(i)
Idoc.Name = Filename
Idoc.IsPinnedRecentDocument = False
M.Documents.Add(Idoc)
RecentFileDocumentManager.RebindFilteredDocuments()
Next
However the items are shown in a different way than i add it????
Dim Ar As New ArrayList
On Error Resume Next
'Ar is filled with items here....
Dim M As ActiproSoftware.Windows.DocumentManagement.RecentDocumentManager = RecentFileDocumentManager
M.Documents.Clear() 'init
For i As Integer = 0 To Ar.Count - 1
Dim Idoc As ActiproSoftware.Windows.DocumentManagement.IDocumentReference = New ActiproSoftware.Windows.DocumentManagement.DocumentReference
Dim Filepath As String = "" & System.IO.Path.GetDirectoryName(Ar(i))
Dim Filename As String = "" & System.IO.Path.GetFileName(Ar(i))
Idoc.Location = New Uri(Filepath)
Idoc.LastOpenedDateTime = Now.AddMilliseconds(i)
Idoc.Name = Filename
Idoc.IsPinnedRecentDocument = False
M.Documents.Add(Idoc)
RecentFileDocumentManager.RebindFilteredDocuments()
Next