Select to view content in your preferred language

AutoComplete Filter Mode....The Contains Example

880
2
01-03-2011 04:41 AM
JayKappy
Frequent Contributor
looking at this example...
http://www.silverlight.net/content/samples/sl4/toolkitcontrolsamples/run/default.html#/Welcome.xaml

Input>AutoCompleteBox>FilterMode .. the contains example.

I can sort of follow whats going on but cant figure out where the dataset the values are being retrieved from are, or being specified....
It appears this is the item source :  ItemsSource="{StaticResource SampleEmployees}"
And that this seems to be poitning to it...but where is it pointing
<UserControl.Resources>
        <samples:SampleEmployeeCollection x:Key="SampleEmployees"/>
</UserControl.Resources>

I am not sure how all 3 files play with each other and where the dataset resides... 1. AutoCompleteBoxSamepl.xaml 2.AutoCompleteBoxSample.xaml.vb 3. SampleEmployeeCollection.vb
Any help woudl be greatly apprecaited....I think I am most confused as to where the data is residing and how the reference is being made

Has anyone used a AutoCompleteBox Sample in their project?  Can anyone shed some light on how and what you need to do to get a list like this into my project...DBF, Excel File, CSV file????  Import into project?  How to reference it?
Do you reference it light a file in Visual Studio?  But in my case I need the the file to be packaged in the application?

Thanks
0 Kudos
2 Replies
JMcNeil
Deactivated User
Jay,

With a quick glance and not digging too deep, I would guess it is hitting a sql database (a sample database provided by mircosoft).  http://msftdbprodsamples.codeplex.com/

It could be using a RIAServices and DomainServices but I did not see the reference to those namespaces so maybe not. 

This is probably a better post for the silverlight forums site:
http://forums.silverlight.net/forums/
The programmers on this silverlight forums site are more geared towards straight up mircosoft questions.

Besides that I would check out the example/walk through Creating a RIA Services Solution
http://msdn.microsoft.com/en-us/library/ee707376%28v=VS.91%29.aspx

and then move on to the Walkthrough: Adding Query Methods - http://msdn.microsoft.com/en-us/library/ee707362%28v=VS.91%29.aspx

These two solutions will show you step by step (and explain the code) on how to hook-in an outside database (SQL).

J.
0 Kudos
JayKappy
Frequent Contributor
Thanks for your responce...I am not looking for a total solution here...but jsut some info and what you gave helps...

One more thought:  From the larger picture.  The webserver in the DMZ would be hosting the SQL server table that the app would be consuming....that correct.  NOT seomthign being packaged in the web app itself...

THat make sense...

THanks for your help....hope everyoen had a great  New Year
0 Kudos