سلام بر برنامه نویسان عزیز 😉 در این پست کد تعریف ستون ها و ردیف ها برای Grid با ColumnDefinitions و RowDefinitions با wpf و سی شارپ را آماده کردم. انشاالله که این آموزش برای شما مفید باشد.
کد تعریف ستون ها و ردیف ها برای Grid با ColumnDefinitions و RowDefinitions با wpf و سی شارپ :
<Window x:Class="WpfApplication1.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Fun with Panels!" Height="186" Width="501">
<Grid ShowGridLines ="True" Background ="AliceBlue">
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Fun with Panels!" Height="186" Width="501">
<Grid ShowGridLines ="True" Background ="AliceBlue">
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>