This project is read-only.
1
Vote

ByProperty call crash

description

Hi,
 
I am trying to use XamlQuery under Silverlight Unit Test Application.
 
Next line causes exception "Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))"
 
            var setPass = XamlQuery.XamlQuery.ByProperty(ContentView.Content as UIElement, TextBlock.TextProperty, "PASS");
 
where ContentView.Content is UnitTestSystem.CreateTestPage().
 
Stack Trace:
at MS.Internal.XcpImports.CheckHResult(UInt32 hr)
at MS.Internal.XcpImports.GetValue(IManagedPeerBase managedPeer, DependencyProperty property)
at System.Windows.DependencyObject.GetValueInternal(DependencyProperty dp)
at System.Windows.FrameworkElement.GetValueInternal(DependencyProperty dp)
at System.Windows.DependencyObject.GetValue(DependencyProperty dp)
at XamlQuery.ControlSet.FilterByProperty(DependencyProperty property, Object value, FilterType filterType)
at XamlQuery.XamlQuery.ByProperty(DependencyObject container, DependencyProperty property, Object value, FilterType filterType)
at XamlQuery.XamlQuery.ByProperty(DependencyObject container, DependencyProperty property, Object value)
at UTF.View.TestsView.Discover_Click(Object sender, RoutedEventArgs e)
 
Does anyone had the same problems?

comments