RadCalculator causing problems

3 posts, 0 answers
  1. Enric
    Enric avatar
    32 posts
    Member since:
    Apr 2013

    Posted 11 Sep 2013 Link to this post

    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. Enric
    Enric avatar
    32 posts
    Member since:
    Apr 2013

    Posted 11 Sep 2013 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. Enric
    Enric avatar
    32 posts
    Member since:
    Apr 2013

    Posted 16 Sep 2013 Link to this post

    have you got any solution?
    thanks in advance,
Back to Top