Toolbar won't instantiate at runtime.

Not Answered This post has 0 verified answers and 0 replies

Not Ranked
Posts: 2
Triskele Posted: Mon Mar 8, 2010 @ 12:04 PM
Hello,

I am running the evaluation version of Win.UI for WPF 2010.1.2193.35. I cannot instantiate a toolbar on a form at run-time because every time I try I get the following message:

{"The specified Visual and this Visual do not share a common ancestor, so there is no valid transformation between the two Visuals."}

The stack trace is:

"   at System.Windows.Media.Visual.TransformToVisual(Visual visual)\r\n   at ComponentArt.Win.UI.Licensing.ActuallyShowWarning(Object state)\r\n   at ComponentArt.Win.UI.Licensing.ShowWarning(UIElement control)\r\n   at ComponentArt.Win.UI.Navigation.ToolBar.TreatAsUnlicensed()\r\n   at ComponentArt.Win.UI.Licensing.VerifyLicense(IControl control)\r\n   at ComponentArt.Win.UI.Navigation.ToolBar.OnApplyTemplate()\r\n   at System.Windows.FrameworkElement.ApplyTemplate()\r\n   at ComponentArt.Win.UI.Navigation.ToolBar..ctor()"

The XAML I am trying to run is:

<

 

Window x:Class="Test.Window1"

 

xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

 

xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

 

xmlns:ComponentArt.Common="clr-namespace:ComponentArt.Win.UI;assembly=ComponentArt.Win.UI.Common"

 

xmlns:ComponentArt.Data="clr-namespace:ComponentArt.Win.UI.Data;assembly=ComponentArt.Win.UI.Data"

 

xmlns:ComponentArt="clr-namespace:ComponentArt.Win.UI.Navigation;assembly=ComponentArt.Win.UI.Navigation"

 

Title="Window1" Height="500" Width="500">

 

 

 

<ComponentArt:ToolBar></ComponentArt:ToolBar>

 

</

 

Window>

I am running Visual Studio 2008 SP1, with .NET 3.5 SP1, on Windows XP SP2 on Windows Virtual PC running in Windows 7 Ultimate, version 6.1.7600.

The strange thing is that I can clearly see this toolbar at design time, but it will not instantiate at run-time.

What can I do?

Regards,

Geoff

Page 1 of 1 (1 items)