سلام بر برنامه نویسان عزیز ایران زمین 😉 در این مطلب کد توصیف رنگ با نشانه گذاری هگزادسیمال 6 رقمی با wpf و سی شارپ #C را آماده کردم. انشاالله که این کد سی شارپ براتون مفید باشد.
تصویر خروجی این کد:
کد توصیف رنگ با نشانه گذاری هگزادسیمال 6 رقمی با wpf و سی شارپ #C :
<!--The first pair of digits describes the amount of red in the color,
the next pair describes the amount of green,
and the final two digits describes the amount of blue.
-->
<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}">
the next pair describes the amount of green,
and the final two digits describes the amount of blue.
-->
<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}">