Jump to content

WPF VB.net Image Programm [Need Help]

Greetings

 

Iam trying to make a Picture / Photo Viewer in WPF with Visual Basic and now iam on a Point where i Need YOUR HELP !

 

My Programm Looks like this :

 

TextBox = the path of the Picture / Photo Folder

 

Btn_Load = loads the Files from the Path into a Listbox

 

Btn_Show = *thats the Problem* how can i make the Photos visible ?

 

Dim Number as Integer = Listbox.items.count , gives back the amount of Pictures in the Folder

 

 now is it possible to create those Images automatic with a button ?

 

like so : Dim Images(Number) = Image ?

 

and then with the Child command put them in a scrollviewer or something like that ?.

 

 

hopefully someone can help me.

Link to comment
Share on other sites

Link to post
Share on other sites

Here is some information on creating images. Here are two ways to add controls with code. So for example, you can add a StackPanel to a ScrollViewer and then update the StackPanel.

<ScrollViewer ... >    <StackPanel Name="SPanel" ... /></ScrollViewer>' Then in codeSPanel.Children.Add(...)
Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×