Click here to Skip to main content
15,861,125 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
hi all
i've problem with Scrollbar in Custom Stackpanel
my Source code is :

VB
Imports System.Windows.Media.Animation

Public Class OpacityPanel
    Inherits StackPanel

    '===============================
    Protected Overrides Function MeasureOverride(ByVal availableSize As System.Windows.Size) As System.Windows.Size
        '====================
        'Any Animation for childs
        '====================
        Dim maxSize As New Size()
        For Each child As UIElement In InternalChildren
            child.Measure(availableSize)
            maxSize.Height = Math.Max(child.DesiredSize.Height, maxSize.Height)
            maxSize.Width = Math.Max(child.DesiredSize.Width, maxSize.Width)
        Next
    End Function
    '================================

End Class


but it's not give scroll to me
please help me
thanx.
Posted
Updated 22-Dec-11 17:08pm
v2
Comments
sinaone 22-Dec-11 13:42pm    
any body plz help me

1 solution

May be stupid question but ScrollViewer[^] doesn't work for you?
 
Share this answer
 

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