ScrollBar帮助 [英] ScrollBar help
问题描述
我需要帮助了解如何为滚动条创建基本功能。这听起来很简单但似乎所有的教程都只是描述了如何自定义滚动条的外观,而不是如何实际将它们链接到页面。
我基本上只有一个.PSD文件我在Blend中导入了我的主页面,出于某种原因,当我在浏览器(Firefox)中构建页面时,我无法访问垂直溢出的内容。基本上,没有办法向下滚动以查看我的页面的其余部分,这本身就是一个问题,为什么浏览器不会自动创建滚动条以便我可以向下滚动(任何人都可以回答这个问题吗?)。无论如何,我希望能够在我的页面上创建一个滚动条(我知道该怎么做 - 我只是将它转储到我的布局根目录中),但最重要的是,我需要知道如何连接滚动条滚动到我的主画布,这样滚动条上下滚动就会让我的页面上下滚动。
再次,我知道这听起来很简单,我还没有找到一个直接的答案如何做到这一点。我只需要知道如何将滚动条链接到我的页面的其余部分。
任何人都可以帮忙吗?
你能发帖吗?链接到您的解决方案文件?我想弄清楚你在描述什么,听起来你只是想要一个非常大的画布,但屏幕上有滚动条,所以你可以平移,因为它不能同时适合屏幕?
I need help with understanding how to create basic functionality for a scrollbar. It sounds simple but it seems that all the tutorials out there simply describe how to customize the appearance of scrollbars, and not how to actually link them to a page.
I basically just have a .PSD file that I've imported in Blend as my main page, and for some reason when I build the page in my browser (Firefox) I can't access the content that overflows vertically. Basically, there's no way to scroll down to see the rest of my page, which is a question in itself as to why the browser won't automatically create a scrollbar so that I can scroll down (can anyone answer this too?).
Anyway, I want to be able to create a scrollbar on my page (which I know how to do - I just dump it into my layout root), but most importantly, I need to know how to connect that scrollbar to my main canvas, so that scrolling up and down on the scrollbar will make my page scroll up and down.
Again, I know it sounds simple, I just haven't found a straight answer on how to do it. I just need to know how to link the scrollbar to the rest of my page.
Can anyone help?
Can you post a link to your solution files? I'm trying to figure out what you're describing, and it sounds like you just want a really big canvas, but have scrollbars on the screen so you can pan around, as it doesn't fit on the screen all at once?
这篇关于ScrollBar帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!