We've Moved!
Please note that we have moved to our New Forum site.
Bevan Edwards
WDE Interaction Samples for Button View don't work
When I load the InteractionExtensionSample from WDE v8.5 I get errors (in MSVS 2013) relating to the code below in the XAML.
What references do I need to add to make this code work?
<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" />
I know your question is a little old, but I wanted to answer it for the benefit of others. I also have been trying to add a tab to that vertical region (casebuttonsideview region? - I always forget the name of it and have to look it up). This particular code sample, along with the xaml you pasted, demonstrates how this is done.
I also couldn't get this to build. I asked other resources, opened a ticket, posted on forums.
It turns out the project builds fine if you close this xaml file, and it renders fine at runtime. It seemed the XAML renderer built into visual studio has problems displaying this file (maybe due to all the new / embedded references in generic.xaml).
Moral of the story, close the xaml file, the project will compile fine.
All Answers
I know your question is a little old, but I wanted to answer it for the benefit of others. I also have been trying to add a tab to that vertical region (casebuttonsideview region? - I always forget the name of it and have to look it up). This particular code sample, along with the xaml you pasted, demonstrates how this is done.
I also couldn't get this to build. I asked other resources, opened a ticket, posted on forums.
It turns out the project builds fine if you close this xaml file, and it renders fine at runtime. It seemed the XAML renderer built into visual studio has problems displaying this file (maybe due to all the new / embedded references in generic.xaml).
Moral of the story, close the xaml file, the project will compile fine.
Thanks Andrew, I finally got around to trying this and it works well :D