timheuer / callisto

A control toolkit for Windows 8 XAML applications. Contains some UI controls to make it easier to create Windows UI style apps for the Windows Store in accordance with Windows UI guidelines.
http://timheuer.com/blog/archive/2012/05/31/introducing-callisto-a-xaml-toolkit-for-metro-apps.aspx
Other
338 stars 108 forks source link

.isOpen generating an exception #78

Closed edulorenzo closed 12 years ago

edulorenzo commented 12 years ago

Current code (from sample)

Flyout f = new Flyout();

        Border b = new Border();
        b.Width = 300;
        b.Height = 125;

        TextBlock tb = new TextBlock();
        tb.HorizontalAlignment = Windows.UI.Xaml.HorizontalAlignment.Center;
        tb.VerticalAlignment = Windows.UI.Xaml.VerticalAlignment.Center;
        tb.TextWrapping = TextWrapping.Wrap;
        tb.FontSize = 24.667;
        tb.Text = "This is a basic ContentControl so put anything you want in here.";

        b.Child = tb;

        f.Content = b;

        f.Placement = (PlacementMode)Enum.Parse(typeof(PlacementMode), positioning.SelectionBoxItem.ToString());
        f.PlacementTarget = sender as UIElement;

        f.IsOpen = true;

        ObjectTracker.Track(f);

f.IsOpen = true; <-- this line is throwing an exception

at Windows.UI.Xaml.Controls.Primitives.Popup.put_IsOpen(Boolean value)

at Callisto.Controls.Flyout.<.cctor>b__3(DependencyObject obj, DependencyPropertyChangedEventArgs args)

edulorenzo commented 12 years ago

update: My callisto dll must be outdated, i replaced with Runtime v4.0.30319 and it does not throw exception anymore, BUT goes to here and does not render on the app

if DEBUG && !DISABLE_XAML_GENERATED_BREAK_ON_UNHANDLED_EXCEPTION

        UnhandledException += (sender, e) =>
        {
            if (Debugger.IsAttached) Debugger.Break();
        };

endif

timheuer commented 12 years ago

If you are not running RTM, you cannot use the latest and must stay on 1.0.10. The latest version is for RTM only.


http://timheuer.com/blog/ twitter: @timheuer

On Sun, Sep 9, 2012 at 9:53 PM, edulorenzo notifications@github.com wrote:

update: My callisto dll must be outdated, i replaced with Runtime v4.0.30319 and it does not throw exception anymore, BUT goes to here and does not render on the app

if DEBUG && !DISABLE_XAML_GENERATED_BREAK_ON_UNHANDLED_EXCEPTION

UnhandledException += (sender, e) => { if (Debugger.IsAttached) Debugger.Break(); };

endif

— Reply to this email directly or view it on GitHubhttps://github.com/timheuer/callisto/issues/78#issuecomment-8413871.