treeview:显示滚动条(Scrollable = true不起作用)

时间:2018-12-07 13:42:28

标签: c# asp.net winforms treeview scrollbar

即使节点文本的大小较小,我也要始终显示滚动条。 我使用Site Web asp.net和我的Framwork:4.6

<asp:TreeView ID="TreeView1" runat="server" Height="5px" Width="56px" LineImagesFolder="~/TreeLineImages" ShowLines="True" OnInit="TreeView1_Init" AutoGenerateDataBindings="False">
    <Nodes>
        <asp:TreeNode Text="ID" Target="_blank">
            <asp:TreeNode Text="1" Target="_blank" />
            <asp:TreeNode Text="2" Target="_blank" />
            <asp:TreeNode Text="3" Target="_blank" />
            <asp:TreeNode Text="4" Target="_blank" />
        </asp:TreeNode>
    </Nodes>
</asp:TreeView>

我尝试编写此属性,但找不到! "Scrollable=true" 你能帮我吗?

0 个答案:

没有答案