با عرض سلام و خسته نباشید خدمت کاربران وب سایت پروگرم 98 😉 در این پست کد FlowDirection برای WrapPanel با wpf و سی شارپ #C را آماده کردم. انشاالله که این کد براتون مفید باشه.
تصویر خروجی این کد:
کد FlowDirection برای WrapPanel با wpf و سی شارپ #C :
<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
HorizontalAlignment="Center" VerticalAlignment="Center" Width="170">
<StackPanel>
<WrapPanel Orientation="Horizontal">
<Button>One</Button>
<Button>Two</Button>
<Button>Three</Button>
</WrapPanel>
<WrapPanel Orientation="Horizontal" FlowDirection="RightToLeft">
<Button>One</Button>
<Button>Two</Button>
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
HorizontalAlignment="Center" VerticalAlignment="Center" Width="170">
<StackPanel>
<WrapPanel Orientation="Horizontal">
<Button>One</Button>
<Button>Two</Button>
<Button>Three</Button>
</WrapPanel>
<WrapPanel Orientation="Horizontal" FlowDirection="RightToLeft">
<Button>One</Button>
<Button>Two</Button>