سلام 😉 در این مطلب از وب سایت پروگرم 98 کد توصیف رنگ با نشانه گذاری هگزادسیمال 3 رقمی با wpf و #C را آماده کردم. امیدوارم که این کد برای شما مفید باشد.
تصویر خروجی این کد:
کد توصیف رنگ با نشانه گذاری هگزادسیمال 3 رقمی با wpf و #C :
<Window x:Class="WpfApplication1.ShapesWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="ShapesWindow" Height="160" Width="400">
<Window.Resources>
<Style TargetType="{x:Type Rectangle}">
<!-- Gives all the rectangles in this panel a white stroke. -->
<Setter Property="Stroke" Value="White"/>
<Setter Property="StrokeThickness" Value="1"/>
</Style>
</Window.Resources>
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="ShapesWindow" Height="160" Width="400">
<Window.Resources>
<Style TargetType="{x:Type Rectangle}">
<!-- Gives all the rectangles in this panel a white stroke. -->
<Setter Property="Stroke" Value="White"/>
<Setter Property="StrokeThickness" Value="1"/>
</Style>
</Window.Resources>