NavigableListActivity.Items Property
This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.
Gets the list of items that are bound to the NavigableListActivity.
Namespace: Microsoft.SpeechServer.Dialog
Assembly: Microsoft.SpeechServer (in microsoft.speechserver.dll)
Syntax
'Declaration
<GlobalizedCategoryAttribute("NonDesignableCategory")> _
<GlobalizedDescriptionAttribute("NavigableListActivity_Items")> _
<ReadOnlyAttribute(True)> _
<EditorAttribute("Microsoft.SpeechServer.Authoring.DialogDesigner.BlankUITypeEditor, Microsoft.SpeechServer.Authoring.DialogDesigner, Version=2.0.3400.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", GetType(UITypeEditor))> _
<TypeConverterAttribute("Microsoft.SpeechServer.Authoring.DialogDesigner.NonDesignableStringConverter, Microsoft.SpeechServer.Authoring.DialogDesigner, Version=2.0.3400.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35")> _
Public Property Items As ReadOnlyCollection(Of String)
[GlobalizedCategoryAttribute("NonDesignableCategory")]
[GlobalizedDescriptionAttribute("NavigableListActivity_Items")]
[ReadOnlyAttribute(true)]
[EditorAttribute("Microsoft.SpeechServer.Authoring.DialogDesigner.BlankUITypeEditor, Microsoft.SpeechServer.Authoring.DialogDesigner, Version=2.0.3400.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", typeof(UITypeEditor))]
[TypeConverterAttribute("Microsoft.SpeechServer.Authoring.DialogDesigner.NonDesignableStringConverter, Microsoft.SpeechServer.Authoring.DialogDesigner, Version=2.0.3400.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35")]
public ReadOnlyCollection<string> Items { get; }
Property Value
The source of the list of items is the DataSource. If data from the DataSource is not yet bound to the NavigableListActivity, the Items collection is empty.
Example
The following example shows an implementation of an event handler for the ConfirmationTurnStarting event. The method asks the user to confirm that the utterance is the same as the current item in the Items collection.
private void browseCities_ConfirmationTurnStarting(object sender, TurnStartingEventArgs e)
{
this.browseCities.ConfirmationMainPrompt.ClearContent();
this.browseCities.ConfirmationMainPrompt.AppendText(string.Format("You said {0}, is that right?", this.browseCities.Items[(int)this.browseCities.CurrentItem]));
}
Thread Safety
All public static (Shared in Visual Basic) members of this type are thread-safe. Instance members are not guaranteed to be thread-safe.
Platforms
Development Platforms
Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003, Windows Vista Ultimate Edition, Windows Vista Business Edition, Windows Vista Enterprise Edition
Target Platforms
Windows Server 2003
See Also
Reference
NavigableListActivity Class
NavigableListActivity Members
Microsoft.SpeechServer.Dialog Namespace
NavigableListActivity.DataSource Property
ConfirmationTurnStarting