سلام بر تمامی برنامه نویسان سی شارپ 😉 در این پست کد DockPanel.Dock برای یک کنترل و تنظیم مکان آن کنترل با wpf و #C را آماده کردم. انشاالله که این آموزش برای شما مفید باشد.
خروجی این کد:
کد DockPanel.Dock برای یک کنترل و تنظیم مکان آن کنترل با 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="Dock Panel Demo"
>
<DockPanel>
<Button DockPanel.Dock="Top">1</Button>
<Button DockPanel.Dock="Left">2</Button>
<Button DockPanel.Dock="Bottom">3</Button>
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Dock Panel Demo"
>
<DockPanel>
<Button DockPanel.Dock="Top">1</Button>
<Button DockPanel.Dock="Left">2</Button>
<Button DockPanel.Dock="Bottom">3</Button>