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.
23 Answers, 1 is accepted
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.
Any status on this?
Thanks,
Tim Lucia
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.
Tim
====================================================================================
Node was not found" code: "8
====================================================================================
====================================================================================
Error calling method on NPObject!
====================================================================================
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.
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
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.
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
Tim
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.
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 ?
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.
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
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.
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.
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.
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.
Have you tried running your demo whilste VS2008 debug mode is active ?
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.
What bothers me is that I can't manage it or prevent application crash.
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.