Local File Access - Building a Local File System TreeView
When a Silverlight application is running with elevated permissions it has access to the local file system. In previous versions of Silverlight if you wanted to browse the local file system then you couldn't, all you could do was present the user with a OpenFileDialog.
Not anymore, in Silverlight 4 you can access the local file system, read folder and file lists, open, edit and save files. In this example you will need to be running the Silverlight application in Out of Browser mode.
Also available to view and download is the full Local File Explorer demo.
You need to login to Download example, If you do not have a login you can register for free!
In this example we use the Liquid TreeView to build a tree structure of the local file system.
Here we use the Liquid TreeView which generates a Populate event when a node needs to be populated for example after it has been expanded. In the populate event handler we retrieve a list of folders and files for the current node and create the child nodes.
Robert wrote:
Does Liquid TreeView work at Mac OS and Linux OS?
EMILYTINGCHINA wrote:
Hi,
i did try your solution, it works fun in the first time, and it also create an application in the desktop, while when i do some modify of the code( i mean other parts no link with this special button), and debug the app again, while it's not working, the problem is:
when i click the button" install out-of-browser", nothing will pop out to ask me for enable the out-of-broswer.
I'm urgent for the solution, hope u can help me!
Thanks in advance!
Rackell wrote:
hello everyone,
I added the liquid.dll to my silverlight 4 project in order to use the Scroller control, i added it in the references as well as in the xaml code " xmlns:Liquid="clr-namespace:Liquid;assembly=Liquid" "
and i inserted the scroller in my xaml page " <Liquid:Scroller Content="Scroller" Height="60" Margin="81,0,0,407" VerticalAlignment="Bottom" HorizontalAlignment="Left"/>"
but when i try to run my application it throws an the Type 'Scroller' was not found because clr-namespace:Liquid;assembly=Liquid" is an unknown namespace
if anyone can help, i would really appreciate it
thank you
hanisidhom wrote:
Is it possible to navigate in my whole hard drive?
Thanks,
Hani
dan wrote:
Hi pkellner,
You must be running out of browser with elevated permissions to access the local file system.
Thanks!
JAINAAGAM wrote:
This is Best One....!!!!
nj
pkellner wrote:
Is there a special build for the inbrowser support with LiquidFileTree and silverlight 4?
Guide the car to its parking space in this fun Car Parking game.
Aim for the Trash Can and get the various items of Trash in the bin.
Fly your plane in this colorful vertical scrolling shoot-em-up. Blast the bad guys and collect any bonus's they leave behind.
Pop as many bubbles as possible in this fun and colorful bubble popping game. The levels start off easy enough but gradually get harder!
Here we have a bunch of monsters that need to be matched up. Look out for the bomb and spinning monsters that will cause special damage!
Guide your friendly Bird through the maze of pipes and other obstacles collecting the Stars in this cool arcade game inspired by the legendary Flappy Bird.
You are stranded on an Alien planet. Your goal is to build a space rocket and escape. Start by building units to create power and mine the metal patches. Build defenses to defend your base from the advancing Aliens and Zombies!
Play Pool against the computer or battle against your friends in the online mode!
Slice the fruit that is thrown up onto the screen. Slice the fruit into multiple pieces for maximum points!
Robert wrote:
Does Liquid TreeView work at Mac OS and Linux OS?
EMILYTINGCHINA wrote:
Hi,
i did try your solution, it works fun in the first time, and it also create an application in the desktop, while when i do some modify of the code( i mean other parts no link with this special button), and debug the app again, while it's not working, the problem is:
when i click the button" install out-of-browser", nothing will pop out to ask me for enable the out-of-broswer.
I'm urgent for the solution, hope u can help me!
Thanks in advance!
Rackell wrote:
hello everyone,
I added the liquid.dll to my silverlight 4 project in order to use the Scroller control, i added it in the references as well as in the xaml code " xmlns:Liquid="clr-namespace:Liquid;assembly=Liquid" "
and i inserted the scroller in my xaml page " <Liquid:Scroller Content="Scroller" Height="60" Margin="81,0,0,407" VerticalAlignment="Bottom" HorizontalAlignment="Left"/>"
but when i try to run my application it throws an the Type 'Scroller' was not found because clr-namespace:Liquid;assembly=Liquid" is an unknown namespace
if anyone can help, i would really appreciate it
thank you
hanisidhom wrote:
Is it possible to navigate in my whole hard drive?
Thanks,
Hani
dan wrote:
Hi pkellner,
You must be running out of browser with elevated permissions to access the local file system.
Thanks!
JAINAAGAM wrote:
This is Best One....!!!!
nj
pkellner wrote:
Is there a special build for the inbrowser support with LiquidFileTree and silverlight 4?