Telerik
Skip Navigation LinksHome / Community / Forums / Silverlight > Window > The screen turns blank when window closed

Not answered The screen turns blank when window closed

Feed from this thread
  • Kevin avatar

    Posted on May 3, 2009 (permalink)

    Hi,

    I have encountered a problem when the window's close button is clicked, sometimes the whole silverlight application is turned to blank. Below is the function that i used to call up the window.

    ShowWindow(New Page1())

     Private Sub ShowWindow(ByRef obj As Object)
          
            Dim Service As New Telerik.Windows.Controls.NavigationService
            Dim Window As New Telerik.Windows.Controls.RadWindow
            Dim WindowPanel As New Telerik.Windows.Controls.RadFrameContainer

            LayoutRoot.Children.Add(Window)
            Window.Content = WindowPanel
            Service = NavigationService.GetNavigationService()
            Service.RootPanel = WindowPanel
            Service.Target = Service.RootPanel
            Service.Navigate(obj)

            Window.WindowStartupLocation = WindowStartupLocation.CenterScreen
            Window.CloseMode = CloseMode.Close
            Window.Show()

        End Sub

    Based on my testing, it only happen on Firefox. IE so far didn't happened.

    Reply

  • Telerik Admin admin's avatar

    Posted on May 6, 2009 (permalink)

    Hello Kevin,

    I suppose that the problem is related to a conflict between RadNavigation and RadWindow - could you please open a new support ticket and send us a simple project, that can be used to reproduce the problem. We will answer with a solution as soon as possible.

    Kind regards,
    Valeri Hristov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.

    Reply

  • Tim Intermediate Tim's avatar

    Posted on Jun 15, 2009 (permalink)

    I can make this problem happen with your demo: http://demos.telerik.com/silverlight/#Window/APC.  It happens in my application as well.  Our purchase and adoption of the Silverlight controls depends on reliable pop-up window manipulation.  I don't know if your demo app uses RadNavigation, but I certainly combine it with the RadWindow pop-ups.

    Any status on this?

    Thanks,
    Tim Lucia

    Reply

  • Telerik Admin admin's avatar

    Posted on Jun 16, 2009 (permalink)

    Hello Tim,

    I shot a short movie trying to break the example you mentioned. Am I doing something wrong? I also tried the same things with Firefox, but again with no success.

    Could you provide more details about your application, steps to reproduce the problem, or even the application itself, because it will help us to find the problem faster? Unfortunately Kevin did not sent us a sample, so we were unable to find the problem in his application...

    Kind regards,
    Valeri Hristov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
    Attached files

    Reply

  • Tim Intermediate Tim's avatar

    Posted on Jun 16, 2009 (permalink)

    I will try to strip it down to make it post-able.  It's not really proprietary since we're just dabbling.  I just tried your demo again and couldn't break it.  I broken it twice yesterday.  I wonder - could it be related to debugging and Visual Studio?  I wasn't debugging this morning, but may have been yesterday.  I am always debugging when running my app.

    Tim

    Reply

  • Tim Intermediate Tim's avatar

    Posted on Jun 17, 2009 (permalink)

    It just happened to me again - with the debugger attached.  The Firebug console has the following errors - I am not sure they are all related - in fact I thing some of the older ones may not be.

    ====================================================================================
    Trying to set unsupported property on scriptable plugin object!
    host.content.OnFullScreenChange = null;
    ====================================================================================
    Node was not found" code: "8
    (?)()(null)ScriptRe...2pQ%3D%3D (line -1173)
    (?)()()ScriptRe...2pQ%3D%3D (line 5656)
    (?)()()ScriptRe...2pQ%3D%3D (line 5658)
    (?)()()ScriptRe...2pQ%3D%3D (line 6451)
    (?)()("", true)ScriptRe...2pQ%3D%3D (line 6477)
    (?)()(iframe)ScriptRe...2pQ%3D%3D (line 5419)
    createEditor()localhost:6519 (line 41)
    Telerik
    ====================================================================================
    Node was not found" code: "8
    ====================================================================================
    Unhandled Error in Silverlight 2 Application Code: 4004 Category: ManagedRuntimeError Message: System.ArgumentException: Value does not fall within the expected range. at MS.Internal.XcpImports.MethodEx(IntPtr ptr, String name, CValue[] cvData) at MS.Internal.XcpImports.MethodPack(IntPtr objectPtr, String methodName, Object[] rawData) at MS.Internal.XcpImports.MouseEventArgs_GetPosition(MouseEventArgs args, UIElement relativeTo) at System.Windows.Input.MouseEventArgs.GetPosition(UIElement relativeTo) at System.Windows.Controls.Primitives.ButtonBase.OnMouseMove(MouseEventArgs e) at System.Windows.Controls.Control.OnMouseMove(Control ctrl, EventArgs e) at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, String eventName)
    throw new Error(errMsg);
    ====================================================================================
    Error calling method on NPObject!

    ====================================================================================



    Tim















    Reply

  • Telerik Admin admin's avatar

    Posted on Jun 22, 2009 (permalink)

    Hello Tim,

    Could you please, provide at least the steps to break the demo?

    Sincerely yours,
    Valeri Hristov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.

    Reply

  • Tim Intermediate Tim's avatar

    Posted on Jun 22, 2009 (permalink)

    So far, the likely scenario to make it break is to:

    Run FireFox (3.0.11)
    Debug a simple application so it starts in a tab in FireFox
    In a second tab, go to the demo application
    Navigate through all the various pop-up controls (alert, prompt, confirm)

    The last two times I've seen it were under the conditions above.  Previous times likely under the same conditions, but I wasn't paying attention at that time, unfortunately.

    Tim

    Reply

  • Telerik Admin admin's avatar

    Posted on Jun 23, 2009 (permalink)

    Hi Tim,

    Thank you for the instructions. I was able to reproduce the crash. I found several forum threads in the Silverlight forums about a similar issue, that is related to controls that remove themselves from the visual tree (such as RadWindow) and which hopefuly will be fixed in Silverlight 3. I will look for a workaround in RadWindow while waiting for Silverlight 3 RTM, but I cannot promise anything at the moment.

    Your points have been updated.

    Sincerely yours,
    Valeri Hristov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.

    Reply

  • Posted on Aug 5, 2009 (permalink)

    Hi, any news about this issue?
    I'm starting to create my new web site and I get the same problem, using
    SL3 and Blend 3
    the rad windows work fine for a while but sometimes when I close the window , the SL app. become blank
    is there a way how to catch the error ?
    thanks
    Giovanni

    I post my test on the web site http://www.softwhale.it/default.html
    if you click on the page "CHI SIAMO" and in the read More button under "Edoardo" you can see the rad window
    if you click several times to other pages and come back ( many click around) after a while the RadWindows make SL app. blanck screen

    I ho can help you
    ciao



    Reply

  • Tim Intermediate Tim's avatar

    Posted on Aug 5, 2009 (permalink)

    I will chime in with the fact that I have not seen this in a while now.  I am running one of the dev builds though, 2009.2.724.1020.  Speaking of which, can I ship this with a demo/beta version of our product to a small handful of customers?  And while I am on the subject, any date yet for the SP1 release version?

    Tim

    Reply

  • Telerik Admin admin's avatar

    Posted on Aug 10, 2009 (permalink)

    Hi Giovanni, Tim, 

    After a some investigating about the problem we found out that it might be related to a problem between Firefox 3.0.* and Silverlight. We were unable to reproduce it with Firefox 3.5, latest Firebug and latest Silverlight.

    The service pack should be released this week.

    Regards,
    Miroslav Nedyalkov
    the Telerik team

    Instantly find answers to your questions on the newTelerik Support Portal.
    Check out the tipsfor optimizing your support resource searches.

    Reply

  • Subileau Pascal Intermediate avatar

    Posted on Nov 25, 2009 (permalink)

    Little update on this matter.

    I am running my app on Silverlight 3, latest Q3 release, and FF 3.5.5, and I still randomely get the error "value does not fall within expected range" and blank screen when I close a RadWindow.

    This bug happens more often when I'm debbugging, but it also occurs on a normal runtime.

    Any news about that particular problem ?

    Reply

  • Telerik Admin admin's avatar

    Posted on Nov 27, 2009 (permalink)

    Hi,

    We used to occasionally reproduce the problem on one of our developer's machines, but it has been a while since we weren't been able to reproduce the problem. We think that most probably the problem was caused by some plug-in in Firefox that we had removed. Could you please provide some more details about the browser's plug-ins you are running? Otherwise, we are shooting in the dark with this issue.

    Sincerely yours,
    Nick
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.

    Reply

  • Subileau Pascal Intermediate avatar

    Posted on Nov 28, 2009 (permalink)

    Ok, well, here's what I could gather.

    I must tell that it's pretty random, and does not happen very often

    So, right now, I'm using Windows 7 pro, Firefox 3.6b4, RadControls Q3 1120, .NET 3.5, Silverlight 3 and Visual Studio 2008.

    After trying open and close (through coding with .Show method) several time a window, my screen turned blank and here's the exception :

    Erreur : Unhandled Error in Silverlight Application
    Code: 4004    
    Category: ManagedRuntimeError       
    Message: System.ArgumentException: La valeur n'est pas comprise dans la plage attendue.
       à MS.Internal.XcpImports.MethodEx(IntPtr ptr, String name, CValue[] cvData)
       à MS.Internal.XcpImports.MethodPack(IntPtr objectPtr, String methodName, Object[] rawData)
       à MS.Internal.XcpImports.MouseEventArgs_GetPosition(MouseEventArgs args, UIElement relativeTo)
       à System.Windows.Input.MouseEventArgs.GetPosition(UIElement relativeTo)
       à System.Windows.Controls.Primitives.ButtonBase.OnMouseMove(MouseEventArgs e)
       à System.Windows.Controls.Control.OnMouseMove(Control ctrl, EventArgs e)
       à MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, String eventName)     

    Fichier Source : http://localhost:49232/Default.aspx
    Ligne : 60

    About Firefox modules, I've got :

    2007 Microsoft Office system 12.0.4518.1014
    getPlus for Adobe 16249
    Java deployment toolkit 6.0.170.4
    Java(TM) platform SE 6 U17
    Mozilla Default Plug-in 1.0.0.15
    Shockwave Flash 10.0.32.18
    Silverlight Plug-in 3.0.40818.0

    Firefox Extensions :
    Adoble DLM 1,6,2,49
    Java Console 6.0.17

    Firefox Theme :
    Default 3.6b4

    I was running the debugger on Visual Studio 2008, here's the faulty code :

                    RadWindow CubeWindow = new RadWindow(); 
                    CubeWindow.Height = 480; 
                    CubeWindow.Width = 640; 
                    CubeWindow.WindowStartupLocation = WindowStartupLocation.Manual; 
                    CubeWindow.Top = 35; 
                    CubeWindow.Left = App.Current.Host.Content.ActualWidth - 640; 
                    CubeWindow.Content = new SilverCube.CubePage(env.Id_Contact, env.Id_societe, false, _wsApplicationClient); 
                    CubeWindow.Show(); 

    And the xaml of the content of the RadWindow

    <qsf:Example 
            x:Name="CubeControl" 
            xmlns:qsf="clr-namespace:Telerik.Windows.QuickStart;assembly=Telerik.Windows.QuickStart" 
            xmlns="http://schemas.microsoft.com/client/2007" 
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
            x:Class="SilverCube.CubePage" 
            xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data" 
            xmlns:telerikGridCell="clr-namespace:Telerik.Windows.Controls.GridView;assembly=Telerik.Windows.Controls.GridView" 
            xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation" 
            xmlns:telerikGrid="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView" 
            xmlns:telerikInput="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input" 
            xmlns:telerikChart="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Charting" 
            xmlns:telerikMediaPlayer="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.MediaPlayer" 
            xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls" 
            xmlns:local="clr-namespace:SilverCube.Converters"
         
        <Canvas Width="Auto" Height="Auto"
            <Canvas.Background> 
                <LinearGradientBrush MappingMode="RelativeToBoundingBox" SpreadMethod="Pad" EndPoint="0.5,1" StartPoint="0.5,0"
                    <GradientStop Color="#FFD1D1D1" Offset="0"/> 
                    <GradientStop Color="#FFFFFFFF" Offset="0.5"/> 
                    <GradientStop Color="#FFD1D1D1" Offset="1"/> 
                </LinearGradientBrush> 
            </Canvas.Background>         
            <Grid HorizontalAlignment="Center" VerticalAlignment="Center" Canvas.Left="50" Canvas.Top="10">  
                <Grid.ColumnDefinitions> 
                    <ColumnDefinition Width="66" /> 
                    <ColumnDefinition Width="*" /> 
                    <ColumnDefinition Width="66" /> 
                </Grid.ColumnDefinitions> 
                <Grid.RowDefinitions> 
                    <RowDefinition Height="400" /> 
                    <RowDefinition Height="53" /> 
                </Grid.RowDefinitions> 
             
            <Image x:Name="Previous" VerticalAlignment="Center" HorizontalAlignment="Center" Source="./fleche-gauche.png" Grid.Column="0" Grid.Row="0" MouseLeftButtonDown="Image_MouseEnter" OpacityMask="White" Opacity="10"/> 
                <telerikNavigation:RadCube x:Name="RadCube1" IsRotateOnStart="false" IsRotateOnClickEnabled="False"  SelectedIndex="2"  RotateSpeed="0.2" Grid.Row="0" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="1" MouseEnter="RadCube1_MouseEnter" IsRotateXAxisOnly="True" XWidth="400" YWidth="400" ZWidth="400" > 
                     
                    <Grid x:Name="Frame1"
                        <Grid.RowDefinitions> 
                            <RowDefinition Height="200"></RowDefinition> 
                            <RowDefinition Height="200"></RowDefinition> 
                        </Grid.RowDefinitions> 
                        <Grid.ColumnDefinitions> 
                            <ColumnDefinition Width="200"></ColumnDefinition> 
                            <ColumnDefinition Width="200"></ColumnDefinition> 
                        </Grid.ColumnDefinitions> 
                        <Grid x:Name="GridInfo" Grid.Column="0" Grid.Row="0"
                            <Grid.RowDefinitions> 
                                <RowDefinition Height="30"></RowDefinition> 
                                <RowDefinition Height="*"></RowDefinition> 
                            </Grid.RowDefinitions> 
                            <telerikNavigation:RadWindow x:Name="windowsGrid"
     
                            </telerikNavigation:RadWindow> 
     
                        </Grid> 
                    </Grid> 
                    <Grid x:Name="Frame2"
                        <Grid.RowDefinitions> 
                            <RowDefinition Height="30"></RowDefinition> 
                            <RowDefinition Height="*"></RowDefinition> 
                        </Grid.RowDefinitions> 
                         
                    </Grid> 
                    <Grid> 
                        <Grid.RowDefinitions> 
                            <RowDefinition Height="30" /> 
                            <RowDefinition Height="370" />                         
                        </Grid.RowDefinitions> 
                        <Grid.Resources> 
     
                            <LinearGradientBrush x:Key="Office_BlackPictureFrame" EndPoint="0.491356224416577,0.974451988955925" StartPoint="0.777113682471078,-0.027352265088688"
                                <GradientStop Color="#FF7D7D7D" Offset="0.032501"/> 
                                <GradientStop Color="#FF4D4D4D" Offset="0.036112000000000033"/> 
                                <GradientStop Color="#FF656565" Offset="0.065002"/> 
                                <GradientStop Color="#FF454545" Offset="0.068613000000000035"/> 
                                <GradientStop Color="#FF353535" Offset="0.72841"/> 
                                <GradientStop Color="#FF050505" Offset="0.987361"/> 
                                <GradientStop Color="#FF9F9F9F" Offset="0.54500001668930054"/> 
                                <GradientStop Color="#FF454545" Offset="0.381"/> 
                                <GradientStop Color="#FF1C1C1C" Offset="0.66"/> 
                            </LinearGradientBrush> 
     
                            <LinearGradientBrush x:Key="Office_BlackRowBackground" EndPoint="0.5,1" StartPoint="0.5,0"
                                <GradientStop Color="#FF343639" Offset="1"/> 
                                <GradientStop Color="#FF373737" Offset="0"/> 
                                <GradientStop Color="#FF3A3B3D" Offset="0.35"/> 
                                <GradientStop Color="#FF121212" Offset="0.35"/> 
                            </LinearGradientBrush> 
     
                            <local:ByteArrayToImageConverter x:Key="ByteArrayToImageConverter" /> 
                            <local:ElementMenuImageConverter x:Key="ElementMenuImageConverter" /> 
                            <ControlTemplate x:Key="ImageCellTemplate" TargetType="telerikGridCell:GridViewCell"
                                <Image Margin="0,0,0,0" Source="{Binding id_type_information, Converter={StaticResource ByteArrayToImageConverter}}" /> 
                            </ControlTemplate> 
                            <ControlTemplate x:Key="ImageElementMenu" TargetType="telerikGridCell:GridViewCell"
                                <Image Margin="0,0,0,0" Source="{Binding element_menu, Converter={StaticResource ElementMenuImageConverter}}" /> 
                            </ControlTemplate> 
     
     
                            <ControlTemplate x:Key="MyCustomRowTemplate" TargetType="telerikGridCell:GridViewRow"
                                <Border x:Name="rowsContainer" Background="#FF525252" Padding="2,8,2,0"
                                    <Border Background="{StaticResource Office_BlackRowBackground}" x:Name="selectedRow" BorderThickness="1" BorderBrush="#FF000000"
     
                                        <Grid> 
                                            <Grid.RowDefinitions> 
                                                <RowDefinition Height="20" /> 
                                                <RowDefinition Height="32" /> 
                                            </Grid.RowDefinitions> 
                                            <Grid.ColumnDefinitions> 
                                                <ColumnDefinition Width="32"/> 
                                                <ColumnDefinition Width="*" /> 
                                                <ColumnDefinition Width="32" /> 
                                            </Grid.ColumnDefinitions> 
     
                                            <Border BorderThickness="1,1,1,1" Margin="3" CornerRadius="1,1,1,1" BorderBrush="Black" Grid.Row="1" Grid.Column="0">                                            
                                                   <telerikGridCell:GridViewCell Value="{Binding id_type_information}" Width="32" Height="32" Template="{StaticResource ImageCellTemplate}" />                                             
                                            </Border> 
     
                                            <telerikGridCell:GridViewCell Value="{Binding date_heure}" Foreground="LightGray" FontSize="10" TextAlignment="Left" TextWrapping="Wrap" 
                                                      Grid.ColumnSpan="2" 
                                                      Background="Transparent" BorderThickness="0" VerticalAlignment="Top" HorizontalAlignment="Left"  /> 
     
                                            <telerikGridCell:GridViewCell BorderThickness="0" Grid.Column="1" Grid.Row="1" Foreground="White" Value="{Binding lib1}" Margin="15,0,0,0" VerticalAlignment="Center" HorizontalAlignment="Left"
                                                <telerikGridCell:GridViewCell.Template> 
                                                    <ControlTemplate> 
                                                        <TextBlock TextWrapping="Wrap" Text="{TemplateBinding Content}" /> 
                                                    </ControlTemplate> 
                                                </telerikGridCell:GridViewCell.Template> 
                                            </telerikGridCell:GridViewCell> 
                                            <Border Margin="3" Grid.Row="1" Grid.Column="2"
                                                <telerikGridCell:GridViewCell Value="{Binding element_menu}" Width="32" Height="32" MouseLeftButtonDown="GridViewCell_MouseLeftButtonDown" Template="{StaticResource ImageElementMenu}" /> 
                                            </Border> 
                                        </Grid> 
                                    </Border> 
                                </Border> 
                            </ControlTemplate> 
                            <Style x:Key="rowStyle" TargetType="telerikGridCell:GridViewRow"
                                <Setter Property="Template" Value="{StaticResource MyCustomRowTemplate}" /> 
                            </Style> 
                        </Grid.Resources> 
                        <TextBlock Grid.Row="0" x:Name="TextBlock1" Foreground="White" FontSize="12" HorizontalAlignment="Center" VerticalAlignment="Center"/> 
                        <telerikGrid:RadGridView x:Name="RadGridView1" RowStyle="{StaticResource rowStyle}" ShowGroupPanel="False" Background="#FF525252" ScrollMode="RealTime"  
                                 ShowColumnHeaders="False" VerticalGridlinesVisibility="Collapsed" 
                                 VerticalGridlinesBrush="Transparent" ScrollViewer.HorizontalScrollBarVisibility="Auto" UseAlternateRowStyle="False" Grid.Row="1" Width="400"
                        </telerikGrid:RadGridView> 
                    </Grid> 
                    <Grid> 
                        <Grid.RowDefinitions> 
                            <RowDefinition Height="30" /> 
                            <RowDefinition Height="370" /> 
                        </Grid.RowDefinitions> 
                        <Grid.Resources> 
     
                            <LinearGradientBrush x:Key="Office_BlackPictureFrame" EndPoint="0.491356224416577,0.974451988955925" StartPoint="0.777113682471078,-0.027352265088688"
                                <GradientStop Color="#FF7D7D7D" Offset="0.032501"/> 
                                <GradientStop Color="#FF4D4D4D" Offset="0.036112000000000033"/> 
                                <GradientStop Color="#FF656565" Offset="0.065002"/> 
                                <GradientStop Color="#FF454545" Offset="0.068613000000000035"/> 
                                <GradientStop Color="#FF353535" Offset="0.72841"/> 
                                <GradientStop Color="#FF050505" Offset="0.987361"/> 
                                <GradientStop Color="#FF9F9F9F" Offset="0.54500001668930054"/> 
                                <GradientStop Color="#FF454545" Offset="0.381"/> 
                                <GradientStop Color="#FF1C1C1C" Offset="0.66"/> 
                            </LinearGradientBrush> 
     
                            <LinearGradientBrush x:Key="Office_BlackRowBackground" EndPoint="0.5,1" StartPoint="0.5,0"
                                <GradientStop Color="#FF343639" Offset="1"/> 
                                <GradientStop Color="#FF373737" Offset="0"/> 
                                <GradientStop Color="#FF3A3B3D" Offset="0.35"/> 
                                <GradientStop Color="#FF121212" Offset="0.35"/> 
                            </LinearGradientBrush> 
     
                            <local:ByteArrayToImageConverter x:Key="ByteArrayToImageConverter" /> 
                            <ControlTemplate x:Key="ImageCellTemplate" TargetType="telerikGridCell:GridViewCell"
                                <Image Margin="0,0,0,0" Source="{Binding id_type_information, Converter={StaticResource ByteArrayToImageConverter}}" /> 
                            </ControlTemplate> 
                            <ControlTemplate x:Key="ImageElementMenu" TargetType="telerikGridCell:GridViewCell"
                                <Image Margin="0,0,0,0" Source="{Binding element_menu, Converter={StaticResource ElementMenuImageConverter}}" /> 
                            </ControlTemplate> 
     
     
                            <ControlTemplate x:Key="MyCustomRowTemplate" TargetType="telerikGridCell:GridViewRow"
                                <Border x:Name="rowsContainer" Background="#FF525252" Padding="2,8,2,0"
                                    <Border Background="{StaticResource Office_BlackRowBackground}" x:Name="selectedRow" BorderThickness="1" BorderBrush="#FF000000"
     
                                        <Grid Width="350"
                                            <Grid.RowDefinitions> 
                                                <RowDefinition Height="20" /> 
                                                <RowDefinition Height="32" /> 
                                            </Grid.RowDefinitions> 
                                            <Grid.ColumnDefinitions> 
                                                <ColumnDefinition Width="32"/> 
                                                <ColumnDefinition Width="*" /> 
                                                <ColumnDefinition Width="32" /> 
                                            </Grid.ColumnDefinitions> 
     
                                            <Border BorderThickness="1,1,1,1" Margin="3" CornerRadius="1,1,1,1" BorderBrush="Black" Grid.Row="1" Grid.Column="0"
                                                <telerikGridCell:GridViewCell Value="{Binding id_type_information}" Width="32" Height="32" Template="{StaticResource ImageCellTemplate}" /> 
                                            </Border> 
     
                                            <telerikGridCell:GridViewCell Value="{Binding date_heure}" Foreground="LightGray" FontSize="10" TextAlignment="Left" TextWrapping="Wrap" 
                                                      Grid.ColumnSpan="2" 
                                                      Background="Transparent" BorderThickness="0" VerticalAlignment="Top" HorizontalAlignment="Left"  /> 
     
                                            <telerikGridCell:GridViewCell BorderThickness="0" Grid.Column="1" Grid.Row="1" Foreground="White" Value="{Binding lib1}" Margin="15,0,0,0" VerticalAlignment="Center" HorizontalAlignment="Left"
                                                <telerikGridCell:GridViewCell.Template> 
                                                    <ControlTemplate> 
                                                        <TextBlock TextWrapping="Wrap" Text="{TemplateBinding Content}" /> 
                                                    </ControlTemplate> 
                                                </telerikGridCell:GridViewCell.Template> 
                                            </telerikGridCell:GridViewCell> 
                                            <Border Margin="3" Grid.Row="1" Grid.Column="2"
                                                <telerikGridCell:GridViewCell Value="{Binding element_menu}" Width="32" Height="32" MouseLeftButtonDown="GridViewCell_MouseLeftButtonDown" Template="{StaticResource ImageElementMenu}" /> 
                                            </Border> 
                                        </Grid> 
                                    </Border> 
                                </Border> 
                            </ControlTemplate> 
                            <Style x:Key="rowStyle" TargetType="telerikGridCell:GridViewRow"
                                <Setter Property="Template" Value="{StaticResource MyCustomRowTemplate}" /> 
                            </Style> 
                        </Grid.Resources> 
                        <TextBlock Grid.Row="0" x:Name="TextBlock2" Foreground="White" FontSize="12" HorizontalAlignment="Center"/> 
                        <telerikGrid:RadGridView x:Name="RadGridView2" RowStyle="{StaticResource rowStyle}" ShowGroupPanel="False" Background="#FF525252" ScrollMode="RealTime" 
                                 ShowColumnHeaders="False" VerticalGridlinesVisibility="Collapsed" ScrollViewer.HorizontalScrollBarVisibility="Auto" 
                                 VerticalGridlinesBrush="Transparent"  UseAlternateRowStyle="False" Grid.Row="1" Width="400"></telerikGrid:RadGridView> 
                    </Grid> 
                    <Grid> 
                        <Grid.RowDefinitions> 
                            <RowDefinition Height="30" /> 
                            <RowDefinition Height="370" /> 
                        </Grid.RowDefinitions> 
                        <Grid.Resources> 
     
                            <LinearGradientBrush x:Key="Office_BlackPictureFrame" EndPoint="0.491356224416577,0.974451988955925" StartPoint="0.777113682471078,-0.027352265088688"
                                <GradientStop Color="#FF7D7D7D" Offset="0.032501"/> 
                                <GradientStop Color="#FF4D4D4D" Offset="0.036112000000000033"/> 
                                <GradientStop Color="#FF656565" Offset="0.065002"/> 
                                <GradientStop Color="#FF454545" Offset="0.068613000000000035"/> 
                                <GradientStop Color="#FF353535" Offset="0.72841"/> 
                                <GradientStop Color="#FF050505" Offset="0.987361"/> 
                                <GradientStop Color="#FF9F9F9F" Offset="0.54500001668930054"/> 
                                <GradientStop Color="#FF454545" Offset="0.381"/> 
                                <GradientStop Color="#FF1C1C1C" Offset="0.66"/> 
                            </LinearGradientBrush> 
     
                            <LinearGradientBrush x:Key="Office_BlackRowBackground" EndPoint="0.5,1" StartPoint="0.5,0"
                                <GradientStop Color="#FF343639" Offset="1"/> 
                                <GradientStop Color="#FF373737" Offset="0"/> 
                                <GradientStop Color="#FF3A3B3D" Offset="0.35"/> 
                                <GradientStop Color="#FF121212" Offset="0.35"/> 
                            </LinearGradientBrush> 
     
                            <local:ByteArrayToImageConverter x:Key="ByteArrayToImageConverter" /> 
                            <ControlTemplate x:Key="ImageCellTemplate" TargetType="telerikGridCell:GridViewCell"
                                <Image Margin="0,0,0,0" Source="{Binding id_type_information, Converter={StaticResource ByteArrayToImageConverter}}" /> 
                            </ControlTemplate> 
                            <ControlTemplate x:Key="ImageElementMenu" TargetType="telerikGridCell:GridViewCell"
                                <Image Margin="0,0,0,0" Source="{Binding element_menu, Converter={StaticResource ElementMenuImageConverter}}" /> 
                            </ControlTemplate> 
     
     
                            <ControlTemplate x:Key="MyCustomRowTemplate" TargetType="telerikGridCell:GridViewRow"
                                <Border x:Name="rowsContainer" Background="#FF525252" Padding="2,8,2,0"
                                    <Border Background="{StaticResource Office_BlackRowBackground}" x:Name="selectedRow" BorderThickness="1" BorderBrush="#FF000000"
     
                                        <Grid Width="350"
                                            <Grid.RowDefinitions> 
                                                <RowDefinition Height="20" /> 
                                                <RowDefinition Height="32" /> 
                                            </Grid.RowDefinitions> 
                                            <Grid.ColumnDefinitions> 
                                                <ColumnDefinition Width="32"/> 
                                                <ColumnDefinition Width="*" /> 
                                                <ColumnDefinition Width="32" /> 
                                            </Grid.ColumnDefinitions> 
     
                                            <Border BorderThickness="1,1,1,1" Margin="3" CornerRadius="1,1,1,1" BorderBrush="Black" Grid.Row="1" Grid.Column="0"
                                                <telerikGridCell:GridViewCell Value="{Binding id_type_information}" Width="32" Height="32" Template="{StaticResource ImageCellTemplate}" /> 
                                            </Border> 
     
                                            <telerikGridCell:GridViewCell Value="{Binding date_heure}" Foreground="LightGray" FontSize="10" TextAlignment="Left" TextWrapping="Wrap" 
                                                      Grid.ColumnSpan="2" 
                                                      Background="Transparent" BorderThickness="0" VerticalAlignment="Top" HorizontalAlignment="Left"  /> 
     
                                            <telerikGridCell:GridViewCell BorderThickness="0" Grid.Column="1" Grid.Row="1" Foreground="White" Value="{Binding lib1}" Margin="15,0,0,0" VerticalAlignment="Center" HorizontalAlignment="Left"
                                                <telerikGridCell:GridViewCell.Template> 
                                                    <ControlTemplate> 
                                                        <TextBlock TextWrapping="Wrap" Text="{TemplateBinding Content}" /> 
                                                    </ControlTemplate> 
                                                </telerikGridCell:GridViewCell.Template> 
                                            </telerikGridCell:GridViewCell> 
                                            <Border Margin="3" Grid.Row="1" Grid.Column="2"
                                                <telerikGridCell:GridViewCell Value="{Binding element_menu}" Width="32" Height="32" MouseLeftButtonDown="GridViewCell_MouseLeftButtonDown" Template="{StaticResource ImageElementMenu}" /> 
                                            </Border> 
                                        </Grid> 
                                    </Border> 
                                </Border> 
                            </ControlTemplate> 
                            <Style x:Key="rowStyle" TargetType="telerikGridCell:GridViewRow"
                                <Setter Property="Template" Value="{StaticResource MyCustomRowTemplate}" /> 
                            </Style> 
                        </Grid.Resources> 
                        <TextBlock Grid.Row="0" x:Name="TextBlock3" Foreground="White" FontSize="12" HorizontalAlignment="Center"/> 
                        <telerikGrid:RadGridView x:Name="RadGridView3" RowStyle="{StaticResource rowStyle}" ScrollViewer.HorizontalScrollBarVisibility="Auto" ShowGroupPanel="False" Background="#FF525252" ScrollMode="RealTime" 
                                 ShowColumnHeaders="False" VerticalGridlinesVisibility="Collapsed" 
                                 VerticalGridlinesBrush="Transparent"  UseAlternateRowStyle="False" Grid.Row="1" Width="400"></telerikGrid:RadGridView> 
                    </Grid> 
                    <Grid> 
                        <Grid.RowDefinitions> 
                            <RowDefinition Height="30" /> 
                            <RowDefinition Height="370" /> 
                        </Grid.RowDefinitions> 
                        <Grid.Resources> 
     
                            <LinearGradientBrush x:Key="Office_BlackPictureFrame" EndPoint="0.491356224416577,0.974451988955925" StartPoint="0.777113682471078,-0.027352265088688"
                                <GradientStop Color="#FF7D7D7D" Offset="0.032501"/> 
                                <GradientStop Color="#FF4D4D4D" Offset="0.036112000000000033"/> 
                                <GradientStop Color="#FF656565" Offset="0.065002"/> 
                                <GradientStop Color="#FF454545" Offset="0.068613000000000035"/> 
                                <GradientStop Color="#FF353535" Offset="0.72841"/> 
                                <GradientStop Color="#FF050505" Offset="0.987361"/> 
                                <GradientStop Color="#FF9F9F9F" Offset="0.54500001668930054"/> 
                                <GradientStop Color="#FF454545" Offset="0.381"/> 
                                <GradientStop Color="#FF1C1C1C" Offset="0.66"/> 
                            </LinearGradientBrush> 
     
                            <LinearGradientBrush x:Key="Office_BlackRowBackground" EndPoint="0.5,1" StartPoint="0.5,0"
                                <GradientStop Color="#FF343639" Offset="1"/> 
                                <GradientStop Color="#FF373737" Offset="0"/> 
                                <GradientStop Color="#FF3A3B3D" Offset="0.35"/> 
                                <GradientStop Color="#FF121212" Offset="0.35"/> 
                            </LinearGradientBrush> 
     
                            <local:ByteArrayToImageConverter x:Key="ByteArrayToImageConverter" /> 
                            <ControlTemplate x:Key="ImageCellTemplate" TargetType="telerikGridCell:GridViewCell"
                                <Image Margin="0,0,0,0" Source="{Binding id_type_information, Converter={StaticResource ByteArrayToImageConverter}}" /> 
                            </ControlTemplate> 
                            <ControlTemplate x:Key="ImageElementMenu" TargetType="telerikGridCell:GridViewCell"
                                <Image Margin="0,0,0,0" Source="{Binding element_menu, Converter={StaticResource ElementMenuImageConverter}}" /> 
                            </ControlTemplate> 
     
     
                            <ControlTemplate x:Key="MyCustomRowTemplate" TargetType="telerikGridCell:GridViewRow"
                                <Border x:Name="rowsContainer" Background="#FF525252" Padding="2,8,2,0"
                                    <Border Background="{StaticResource Office_BlackRowBackground}" x:Name="selectedRow" BorderThickness="1" BorderBrush="#FF000000"
     
                                        <Grid Width="350"
                                            <Grid.RowDefinitions> 
                                                <RowDefinition Height="20" /> 
                                                <RowDefinition Height="32" /> 
                                            </Grid.RowDefinitions> 
                                            <Grid.ColumnDefinitions> 
                                                <ColumnDefinition Width="32"/> 
                                                <ColumnDefinition Width="*" /> 
                                                <ColumnDefinition Width="32" /> 
                                            </Grid.ColumnDefinitions> 
     
                                            <Border BorderThickness="1,1,1,1" Margin="3" CornerRadius="1,1,1,1" BorderBrush="Black" Grid.Row="1" Grid.Column="0"
                                                <telerikGridCell:GridViewCell Value="{Binding id_type_information}" Width="32" Height="32" Template="{StaticResource ImageCellTemplate}" /> 
                                            </Border> 
     
                                            <telerikGridCell:GridViewCell Value="{Binding date_heure}" Foreground="LightGray" FontSize="10" TextAlignment="Left" TextWrapping="Wrap" 
                                                      Grid.ColumnSpan="2" 
                                                      Background="Transparent" BorderThickness="0" VerticalAlignment="Top" HorizontalAlignment="Left"  /> 
     
                                            <telerikGridCell:GridViewCell BorderThickness="0" Grid.Column="1" Grid.Row="1" Foreground="White" Value="{Binding lib1}" Margin="15,0,0,0" VerticalAlignment="Center" HorizontalAlignment="Left"
                                                <telerikGridCell:GridViewCell.Template> 
                                                    <ControlTemplate> 
                                                        <TextBlock TextWrapping="Wrap" Text="{TemplateBinding Content}" /> 
                                                    </ControlTemplate> 
                                                </telerikGridCell:GridViewCell.Template> 
                                            </telerikGridCell:GridViewCell> 
                                            <Border Margin="3" Grid.Row="1" Grid.Column="2"
                                                <telerikGridCell:GridViewCell Value="{Binding element_menu}" Width="32" Height="32" MouseLeftButtonDown="GridViewCell_MouseLeftButtonDown" Template="{StaticResource ImageElementMenu}" /> 
                                            </Border> 
                                        </Grid> 
                                    </Border> 
                                </Border> 
                            </ControlTemplate> 
                            <Style x:Key="rowStyle" TargetType="telerikGridCell:GridViewRow"
                                <Setter Property="Template" Value="{StaticResource MyCustomRowTemplate}" /> 
                            </Style> 
                        </Grid.Resources> 
                        <TextBlock Grid.Row="0" x:Name="TextBlock4" Foreground="White" FontSize="12" HorizontalAlignment="Center" /> 
                        <telerikGrid:RadGridView x:Name="RadGridView4" RowStyle="{StaticResource rowStyle}" ScrollViewer.HorizontalScrollBarVisibility="Auto" ShowGroupPanel="False" Background="#FF525252" ScrollMode="RealTime" 
                                 ShowColumnHeaders="False" VerticalGridlinesVisibility="Collapsed" 
                                 VerticalGridlinesBrush="Transparent"  UseAlternateRowStyle="False" Grid.Row="1" Width="400"></telerikGrid:RadGridView> 
                    </Grid> 
                </telerikNavigation:RadCube> 
                <Image x:Name="Next" VerticalAlignment="Center" HorizontalAlignment="Center" Source="./fleche-droite.png" MouseLeftButtonDown="Next_MouseEnter" Grid.Column="2" Grid.Row="0"/> 
                <Image x:Name="shade" VerticalAlignment="Center" HorizontalAlignment="Center" Source="./ombre.png" Grid.Column="1" Grid.Row="1"/> 
             </Grid> 
        </Canvas> 
    </qsf:Example> 
     


    And finally, the constructors of the class CubePage

     public CubePage() 
            { 
                InitializeComponent(); 
            } 
     
            public CubePage(int id_contact, int id_societe, Boolean rotation, ApplicationServiceClient service) 
            { 
                this.id_contact = id_contact; 
                test = service; 
                this.id_societe = id_societe; 
                InitializeComponent(); 
     
                if (rotation) 
                { 
                    RadCube1.IsRotateOnStart = rotation; 
                } 
                //Récupération des thèmes 
                test.GetThemeAsync(this.id_contact); 
                test.GetThemeCompleted += new EventHandler<GetThemeCompletedEventArgs>(test_GetThemeCompleted); 
     
            } 
     
            public CubePage(String query) 
            { 
     
                InitializeComponent(); 
                this.query = query; 
            } 


    I really hope you can do something with that







    Reply

  • Subileau Pascal Intermediate avatar

    Posted on Nov 30, 2009 (permalink)

    Hello

    I might have a lead related to the problem described above.

    I was fighting with a "value does not fall within the expected range" on one of my radwindow when, searching the stacktrace on google, I found a post similar to my problem.

    Do you think it might be possible that when the RadWindow closes (through the UI or the Close method), that a reference to the object RadWindow could still be retained by Silverlight. If that was the case, if someone tried to open a radwindow with the same name before the GC collected the memory, then, the Parent property of the initial radwindow would still be set.

    Since a child can only have one parent at any time during runtime, that case would raise a "Value does not fall within the expected range" in the NodeKeyValueCollection.

    I've managed to work around this exception by never recreate the window, only change its content and then Hide and Show it at will.

    Reply

  • Telerik Admin admin's avatar

    Posted on Dec 1, 2009 (permalink)

    Hello Subileau,

    It's good to hear that you solved the problem. Anyway we will continue investigating what caused it.

    Sincerely yours,
    Miroslav Nedyalkov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.

    Reply

  • Subileau Pascal Intermediate avatar

    Posted on Dec 1, 2009 (permalink)

    Well, I'm not saying that I've been completely able to work around it, as long as the open and close operations are handled in code, I can, but if the user close the radwindow from the UI (top right close button), there still is a chance that the exception could occur.

    Reply

  • Subileau Pascal Intermediate avatar

    Posted on Jan 16, 2010 (permalink)

    This RadWindow problem is driving me mad, I can't solve it.

    I tried everything I could think of, but I can't seem to be able to handle the error when the user closes the RadWindow through the UI.FYI
    This "Value does not fall within the expected range" is always coming up randomly at some point during the runtime and crashes the whole thing.

    Damn this is frustrating.

    The thing is, I can also reproduce my problem directly in your demo. With a few manipulation of the radwindow of the demo (the radwindow and usercontrol example), the demo ends up crashing on Firefox.

    FYI : I open Visual Studio and launch any project in debug mode, and then open and close repeteadly the RadWindow. Eventually, the demo crashes with the same error message as I get on my own application.

    I can't release my application until this problem is solve, I really need a fix for this, or at least a hint on what's going wrong there.

    I'm pretty sure it has something to do with two child controls with the same name on the same namescope, but I can't find it.

    Reply

  • Telerik Admin admin's avatar

    Posted on Jan 19, 2010 (permalink)

    Hi Subileau,

     The problem here is that we are unable to reproduce the problem at our side and it is really hard to debug an issue that cannot reproduce and if reproduced it doesn't happen every time. I'm really sorry that we cannot help with this.

    Just as a suggestion - could you please try to install the latest versions of Firefox (if this is the browser in which the issue happens) and Silverlight 3 runtime. This might fix the issue as we are using the latest versions.

    Best wishes,
    Miroslav Nedyalkov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.

    Reply

  • Subileau Pascal Intermediate avatar

    Posted on Jan 19, 2010 (permalink)

    Well, unfortunately, so am I, I'm running FF 3.6 beta RC2 and Silverlight 3 runtime

    Have you tried running your demo whilste VS2008 debug mode is active ?

    Reply

  • Telerik Admin admin's avatar

    Posted on Jan 21, 2010 (permalink)

    Hi Subileau,

     I installed the RC2 version of Firefox 3.6 and couldn't reproduce the problem on the live demos site (http://demos.telerik.com/silverlight/#Window/Configurator), but I was able to reproduce it in debug mode. After that I started the application without debugging (Ctrl+F5) and the problem didn't happen again.

    As this problem exists only in FF 3.6 RC2 and happens only in debug mode I guess it is a bug in FF and as it doesn't happen if you are not debugging I might be caused by the VS debugger.

    Sincerely yours,
    Miroslav Nedyalkov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.

    Reply

  • Subileau Pascal Intermediate avatar

    Posted on Jan 21, 2010 (permalink)

    This was the easiest way I could think of the reproduce the problem, the thing is that, in my application, this problem occurs (rarely I admit) during production runtime.

    What bothers me is that I can't manage it or prevent application crash.

    Reply

  • Telerik Admin admin's avatar

    Posted on Jan 22, 2010 (permalink)

    Hello Subileau,

     We will continue investigating the problem and as soon as we have progress we will let you know.

    Regards,
    Miroslav Nedyalkov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.

    Reply

Back to Top

Skip Navigation LinksHome / Community / Forums / Silverlight > Window > The screen turns blank when window closed
Related resourses for "The screen turns blank when window closed"

Silverlight Window Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]

Powered by Sitefinity ASP.NET CMS

Contact Us | Site Feedback | Terms of Use | Privacy Policy
Copyright © 2002-2010 Telerik. All rights reserved.