Skip to main content
Content Starts Here

We've Moved!

Please note that we have moved to our New Forum site.


Ask Search:
Bevan EdwardsBevan 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" />
 

Best Answer chosen by Bevan Edwards
Andrew BudwillAndrew Budwill
Bevan,

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

Andrew BudwillAndrew Budwill
Bevan,

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.
This was selected as the best answer
Bevan EdwardsBevan Edwards
Thanks Andrew, I will give this a try.
Andrew BudwillAndrew Budwill
I also opened a ticket with support on this.  Since it is such a superficial issue I was told to reference the 8.1 DLL, Genesyslab.Desktop.WPFCommon.dll during dev and Visual Studio would render the view properly in the designer.  But upon releasing I should package the 8.5 DLL.  Hope that helps.  I was able to continue with my projects with this.
Bevan EdwardsBevan Edwards

Thanks Andrew, I finally got around to trying this and it works well :D