This is a migrated thread and some comments may be shown as answers.

RadCalculator causing problems

2 Answers 46 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Enric
Top achievements
Rank 1
Enric asked on 11 Sep 2013, 09:29 AM
hi ya,

Framework 4.5. VS 2012 Ultimate Update 3.

Telerik WPF 2013 Q1 NET 45

I embedded that control in a Window in my WPF desktop project and sometimes everything is stuck and I need to close my IDE throught Task Manager.

xaml:
<Window x:Class="Calculadoreta" ResizeMode="NoResize"
         xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
         KeyDown="Window_KeyDown"
    Title="Calculadora" Height="350" Width="443"><Grid x:Name="Calculadora">
    <Grid.Background>
        <LinearGradientBrush EndPoint="0.985,0.415" StartPoint="0.053,0.415">
            <GradientStop Color="#FF99B4D1" Offset="0"/>
            <GradientStop Color="White" Offset="1"/>
        </LinearGradientBrush>
    </Grid.Background>
    <Grid.ColumnDefinitions>
        <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
    <Grid.RowDefinitions>
        <RowDefinition Height="*"/>
        <RowDefinition Height="*"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
    <telerik:RadCalculator Grid.RowSpan="3" Grid.ColumnSpan="2" Margin="115,25,117,29"/>
</Grid>
</Window>

code-behind:


Public Class Calculadoreta
 
    Private Sub Window_KeyDown(sender As Object, e As KeyEventArgs)
 
        If Key.Escape Then
 
            Me.DialogResult = True
            Me.Close()
 
        End If
 
 
    End Sub
End Class

Sometimes I can see this error:


"Error argument 9 NullReferenceException: Referencia a objeto no establecida como instancia de un objeto.
"Reference not established like object instance"

Thanks in advance,

2 Answers, 1 is accepted

Sort by
0
Enric
Top achievements
Rank 1
answered on 11 Sep 2013, 09:41 AM
It's an intermittent issue..

After these following changes, it seems work "better":

<telerik:RadCalculator x:Name="telecalcul" Visibility="Hidden" Grid.RowSpan="3" Grid.ColumnSpan="2" Margin="35,0,140,42" Height="Auto"/>

  Private Sub Window_Loaded(sender As Object, e As RoutedEventArgs)

        telecalcul.Visibility = Windows.Visibility.Visible


    End Sub
0
Enric
Top achievements
Rank 1
answered on 16 Sep 2013, 05:02 PM
have you got any solution?
thanks in advance,
Tags
General Discussions
Asked by
Enric
Top achievements
Rank 1
Answers by
Enric
Top achievements
Rank 1
Share this question
or