سلام بر تمامی برنامه نویسان سی شارپ 😉 در این مطلب آموزش غیرفعال کردن یک Style تعریف شده با افزودن کلمه Null با wpf و سی شارپ را آماده کردم. انشاالله که این کد براتون مفید باشه.
خروجی این کد:
کد غیرفعال کردن یک Style تعریف شده با افزودن کلمه Null با wpf و سی شارپ :
<Window x:Class="WpfApplication1.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:WpfApplication1="clr-namespace:WpfApplication1;assembly="
Title="WPF" Height="88" Width="180">
<Window.Resources>
<Style TargetType="{x:Type Button}">
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:WpfApplication1="clr-namespace:WpfApplication1;assembly="
Title="WPF" Height="88" Width="180">
<Window.Resources>
<Style TargetType="{x:Type Button}">