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