Click here to Skip to main content
15,886,258 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am developing a Network discovery tool, which will discover all devices in the network.

After discovering all device IP's with in the network, i want to display them for the user using WPF.

Any idea regarding which control will be best to represent those devices with small images.

Note: i need to represent around 160 devices.

Thanks in advance.
Posted

There are many, many different ways you could do this. It depends on the user experience you are after.

You are going to want to pick two control types. The first one will be a container or items control, such as a combo box, grid, stackpanel, etc. This will set how your items are laid out (in a vertical list, in a row, in a scrollable list, in a combobox etc).
The second control type will be the controls that represent each device. If you are literally showing an image (such as a PNG), an Image (control) would suit you. Alternately, you could use a Path, textblock etc...

I would spend some time playing with xaml to get a feel for what the different types of controls offer, then come back to your project :)
 
Share this answer
 
Well a Listview with a gridview would be my choise:
http://msdn.microsoft.com/en-us/library/ms752213.aspx[^]

Or you could use a DataGridView also.
 
Share this answer
 
Ideally you could use a listbox with a custom datatemplate in which one part of the datatemplate is an image and the other a textblock...


XML
<ListBox x:name="netDevices" itemssource="{Binding NetworkItems...}">
   <ListBox.ItemTemplate>
      <DataTemplate>
         <StackPanel Orientation="Horizontal">
             <Image source="{Binding ImageIcon}" />
             <TextBlock text="{Binding DeviceName}"/>
        </StackPanel>
     </DataTemplate>
   </ListBox.ItemTemplate>
</Listbox>
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900