سلام بر برنامه نویسان عزیز 😉 در این مطلب از وب سایت پروگرم 98 کد تنظیم Orientation و رنگ بک گراند و ارتفاع StackPanel با wpf و سی شارپ را آماده کردم. انشاالله که این کد براتون مفید باشه.
خروجی این کد:
کد تنظیم Orientation و رنگ بک گراند و ارتفاع StackPanel با wpf و سی شارپ :
<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
HorizontalAlignment="Center" VerticalAlignment="Center">
<StackPanel Height="100" Background="Yellow" Orientation="Horizontal">
<Button>Foo</Button>
<Button Height="30">Bar</Button>
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
HorizontalAlignment="Center" VerticalAlignment="Center">
<StackPanel Height="100" Background="Yellow" Orientation="Horizontal">
<Button>Foo</Button>
<Button Height="30">Bar</Button>