Crashes VS when using <Frame> tag

Visual Studio 2005 crashes when I go to the designer after having added a Frame-tag with a Source set to an other XAML. Not sure if same would happen with a html-page.


Answer this question

Crashes VS when using <Frame> tag

  • roacha76

    <Window x:Class="TestUX.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="TestUX" Height="567" Width="835"
    Initialized="Init"
    Loaded="Load"
    >
    <!-- Command bidings -->
    <Window.CommandBindings>
    <CommandBinding Command="Copy" Executed="Copy" />
    </Window.CommandBindings>

    <!-- Root node -->
    <DockPanel>

    <!-- Some stuff removed here -->

    <Frame Name="mainFrame" Source="Page1.xaml" NavigationUIVisibility="Visible">
    <Frame.LayoutTransform>
    <ScaleTransform ScaleX="2" ScaleY="2" />
    </Frame.LayoutTransform>
    </Frame>
    </DockPanel>
    </Window>



    And here is Page1.xaml:

    <Page x:Class="TestUX.Page1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Page1"
    ClipToBounds="True"
    ShowsNavigationUI="False"
    >
    <StackPanel>
    <TextBlock>
    Go to <Hyperlink NavigateUri="Page2.xaml">Page 2</Hyperlink>
    </TextBlock>
    <Button Content="OK" />
    </StackPanel>
    </Page>



  • BennTech

    Can you post a XAML snippet that we can use to reproduce this - thanks - mark

  • Crashes VS when using <Frame> tag