سلام 😉 در این پست آموزش مرتب سازی عناصر UI درون Grid با RowDefinition و ColumnDefinitions با wpf و سی شارپ #C را آماده کردم. امیدوارم که این کد برای شما مفید باشد.
تصویر خروجی این کد:
کد مرتب سازی عناصر UI درون Grid با RowDefinition و ColumnDefinitions با wpf و سی شارپ #C :
<Window x:Class="Main"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="WPF" Height="200" Width="250">
<Grid ShowGridLines="True">
<Grid.RowDefinitions>
<RowDefinition MinHeight="50" />
<RowDefinition Height="2*" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="50" />
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="WPF" Height="200" Width="250">
<Grid ShowGridLines="True">
<Grid.RowDefinitions>
<RowDefinition MinHeight="50" />
<RowDefinition Height="2*" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="50" />