سلام بر تمامی برنامه نویسان سی شارپ 😉 در این پست کد استفاده از WrapPanel با wpf و سی شارپ #C را آماده کردم. انشاالله که این آموزش برای شما مفید باشد.
تصویر خروجی این کد:
کد استفاده از WrapPanel با wpf و سی شارپ #C :
<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Fun with Panels!" Height="284" Width="323">
<WrapPanel Background="LightSteelBlue">
<Label Name="lblInstruction" Width="328" Height="27" FontSize="15">Enter Car Information</Label>
<Label Name="lblMake">Make</Label>
<TextBox Name="txtMake" Width="193" Height="25"/>
<Label Name="lblColor">Color</Label>
<TextBox Name="txtColor" Width="193" Height="25"/>
<Label Name="lblPetName">Pet Name</Label>
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Fun with Panels!" Height="284" Width="323">
<WrapPanel Background="LightSteelBlue">
<Label Name="lblInstruction" Width="328" Height="27" FontSize="15">Enter Car Information</Label>
<Label Name="lblMake">Make</Label>
<TextBox Name="txtMake" Width="193" Height="25"/>
<Label Name="lblColor">Color</Label>
<TextBox Name="txtColor" Width="193" Height="25"/>
<Label Name="lblPetName">Pet Name</Label>