VS2012 Pro, also tried with VS2015 Community Edition
XAML code is:
[code]
<UserControl x:Class="Genesyslab.Desktop.Modules.InteractionExtensionSample.MySample.MySampleButtonView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:common="clr-namespace:Genesyslab.Desktop.WPFCommon;assembly=Genesyslab.Desktop.WPFCommon"
xmlns:commonControls="clr-namespace:Genesyslab.Desktop.WPFCommon.Controls;assembly=Genesyslab.Desktop.WPFCommon"
Height="300" Width="300">
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<common:DesignTimeResourceDictionary Source="/Genesyslab.Desktop.WPFCommon;component/themes/generic.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</UserControl.Resources>
<commonControls:SideButton Name="splitToggleButton" Margin="2,2,0,0" Style="{DynamicResource SideButtonStyle}"
Content="My _Sample" Click="splitToggleButton_Click" />
</UserControl>
[/code]
Error is "Object reference not set to an instance of an object" while highlighting DynamicResource SideButtonStyle
I consider the issue closed/done now. The project still builds, the XAML renderer in VS simply can't display the XAML properly. Support suggested I reference 8.1 DLL (WPFCommon) during development which will allow me to properly see the view in VS, then switch out to the proper 8.5 DLL when delivering - works for me.
[img][/img]