Ответы - CodeHelperСписок последних 15 ответов на вопрос с сайта CodeHelperuuid:a8a58a1d-2ce9-4a23-9c96-18031996e384;id=22512012-09-26T03:05:36Zuuid:a8a58a1d-2ce9-4a23-9c96-18031996e384;id=2252Как избежать дублирования кода привязки в XAML-разметке?2009-12-11T07:43:55-06:002009-12-11T07:43:55-06:00safonoveaРассмотрим пример: Window1.xaml: <Window x:Class="WpfApplication2.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"uuid:a8a58a1d-2ce9-4a23-9c96-18031996e384;id=2253Ответ от Alexander на вопрос с сайта CodeHelper2009-12-11T09:00:03-06:002009-12-11T09:00:03-06:00AlexanderА что если использовать стиль? ... <ToolBar Grid.Row="0"> <ToolBar.Resources> <Style x:Key="bindingButtonStyle" TargetType="{x:Type Button}"> <Setter Property="IsEnabled" Value="{Binding RelativeSource={RelativeSource