سلام بر برنامه نویسان عزیز ایران زمین 😉 در این مطلب کد تنظیم دکمه پیشفرض با IsDefault=True با wpf و سی شارپ #C را آماده کردم. انشاالله که این کد سی شارپ براتون مفید باشد.
خروجی این کد:
کد تنظیم دکمه پیشفرض با IsDefault=True با wpf و سی شارپ #C :
<Window x:Class="SimpleStyles.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="SimpleStyles"
Background=''"Button">
<Button Margin="8" IsDefault="True">Default</Button>
<Button Margin="8">Normal</Button>
</HeaderedItemsControl>
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="SimpleStyles"
Background=''"Button">
<Button Margin="8" IsDefault="True">Default</Button>
<Button Margin="8">Normal</Button>
</HeaderedItemsControl>