سلام بر برنامه نویسان عزیز ایران زمین 😉 در این پست کد نمایش تفاوت Margin و Padding با Grid با wpf و سی شارپ #C را آماده کردم. انشاالله که این کد براتون مفید باشه.
خروجی این کد:
کد نمایش تفاوت Margin و Padding با Grid با 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">
<Grid ShowGridLines="True" Background="Cyan">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
HorizontalAlignment="Center" VerticalAlignment="Center">
<Grid ShowGridLines="True" Background="Cyan">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />