is there a scrollbar in the property editor?

Apr 8, 2010 at 3:25 PM

when I tried to set the SelectedObject to an instance of Button, some of the properties of Button can not be shown.

so I wonder , can there be a scrollbar in the property editor?

Thank you!

Coordinator
Apr 8, 2010 at 6:06 PM

Yes, each tab page contains a scroll viewer. But the PropertyEditor control uses the available space in the container control, if you use e.g. a StackPanel as the container it will not show the scrollbars unless you set the Height of the PropertyEditor control. The following xaml should show the scollbars:

 

    <StackPanel>
        <pe:PropertyEditor Height="200">
            <pe:PropertyEditor.SelectedObject>
                <Button/>
            </pe:PropertyEditor.SelectedObject>
        </pe:PropertyEditor>
    </StackPanel>

(not all data types of the Button are currently supported)

 

Apr 9, 2010 at 9:14 AM

thank you objo!

 

Just as you predicted, I didn't  see the scroll bar because I used a StackPanel as the container.

After changed it to a Grid or DockPanel, it's all ok.

Thank you again.