سلام بر برنامه نویسان عزیز 😉 در این مطلب کد قرار دادن StackPanel درون ScrollViewer با wpf و سی شارپ #C را آماده کردم. انشاالله که این آموزش برای شما مفید باشد.
تصاویر خروجی نهایی این کد:
کد قرار دادن StackPanel درون ScrollViewer با wpf و سی شارپ #C :
<Window x:Class="WpfApplication1.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="ScrollViewerWithExpander" Height="300" Width="300">
<ScrollViewer VerticalScrollBarVisibility="Auto">
<StackPanel Orientation="Vertical">
<Button Width="200" >A</Button>
<Expander Header="Expand me" BorderThickness="3" BorderBrush="Black">
<StackPanel>
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="ScrollViewerWithExpander" Height="300" Width="300">
<ScrollViewer VerticalScrollBarVisibility="Auto">
<StackPanel Orientation="Vertical">
<Button Width="200" >A</Button>
<Expander Header="Expand me" BorderThickness="3" BorderBrush="Black">
<StackPanel>