I am trying to bind my design data to a single property (Margin) in a Grid. I do not want to overwrite the data context for the grid as a whole (which is also using design data.
<Grid
d:DataContext="{d:DesignData Source=/Blend/DesignData/HudDesignData.xaml}"
Margin="{Binding Source={d:DesignData Source=/Blend/DesignData/WPFSplitScreenLayoutDesignData.xaml}}">
The design data being set to DataContext works as expected.
d:DataContext="{d:DesignData Source=/Blend/DesignData/HudDesignData.xaml}"
However, I can't figure out how the assign design data as the Binding Source of Margin directly.
Margin="{Binding Source={d:DesignData Source=/Blend/DesignData/WPFSplitScreenLayoutDesignData}}"
The line above gives the following error:
Error 1 The tag 'DesignData' does not exist in XML namespace 'http://schemas.microsoft.com/expression/blend/2008'. Line 13 Position 135.
Thanks!