Telerik Forums
UI for WPF Forum
2 answers
1.0K+ views

Hi ,

I am new to the Telerik, exploring it for desktop application automation for my company.

I am not able to run the recorded steps for WPF application.

When i try to run its showing below compiler error

'ERROR' > C:\Users\localuser\Documents\Test Studio Projects\TestProject_desktop\Pages.g.vb(46,0) : error BC30201: Expression expected.

below is the code generated

Imports Telerik.WebAii.Controls.Xaml.Wpf
Imports System
Imports System.Collections.Generic
Imports System.Text
Imports System.Linq

Imports ArtOfTest.Common.UnitTesting
Imports ArtOfTest.WebAii.Core
Imports ArtOfTest.WebAii.Controls.HtmlControls
Imports ArtOfTest.WebAii.Controls.HtmlControls.HtmlAsserts
Imports ArtOfTest.WebAii.Design
Imports ArtOfTest.WebAii.Design.Execution
Imports ArtOfTest.WebAii.ObjectModel
Imports ArtOfTest.WebAii.Silverlight
Imports ArtOfTest.WebAii.Silverlight.UI
Imports ArtOfTest.WebAii.Wpf

Namespace TestProject_desktop

    Public Class WPFTest
        Inherits BaseWebAiiTest

#Region "[ Dynamic Pages Reference ]"

        Private _applications As Applications
        
        '''<summary>
        ''' Gets the Applications object that has references
        ''' to all the elements, windows or regions
        ''' in this project.
        '''</summary>
        Public ReadOnly Property Applications() As Applications
            Get
                If (_applications Is Nothing) Then
                    _applications = New Applications(Manager.Current)
                End If
                Return _applications
            End Get
        End Property
        
#End Region
        
        ' Add your test methods here...


        <CodedStep("LeftClick on ImgGenerateLoginImage")> 
        Public Sub WPFTest_CodedStep()
            'LeftClick on ImgGenerateLoginImage
            Applications.iRIScopeexe.iRIScope.ImgGenerateLoginImage.User.Click(ArtOfTest.WebAii.Core.MouseClickType.LeftClick, 34, 52, ArtOfTest.Common.OffsetReference.TopLeftCorner, ArtOfTest.Common.ActionPointUnitType.Percentage, CType(0,System.Windows.Forms.Keys))
            
        End Sub

        <CodedStep("Set windowstate of 'Debug Window' to 'Minimized'.")> _
        Public Sub WPFTest_CodedStep1()
            'Set windowstate of 'Debug Window' to 'Minimized'.
            Manager.ActiveApplication.WaitForWindow("Debug Window").Window.Minimize
            
        End Sub

        <CodedStep("LeftClick on ImgGenerateLoginImage")> _
        Public Sub WPFTest_CodedStep2()
            'LeftClick on ImgGenerateLoginImage
            Applications.iRIScopeexe.iRIScope.ImgGenerateLoginImage.User.Click(ArtOfTest.WebAii.Core.MouseClickType.LeftClick, 61, 45, ArtOfTest.Common.OffsetReference.TopLeftCorner, ArtOfTest.Common.ActionPointUnitType.Percentage, CType(0,System.Windows.Forms.Keys))
            
        End Sub

        <CodedStep("Click BtnReasontestButton")> _
        Public Sub WPFTest_CodedStep3()
            'Click BtnReasontestButton
            Applications.iRIScopeexe.iRIScope.BtnReasontestButton.User.Click(ArtOfTest.WebAii.Core.MouseClickType.LeftClick, 154, 30, ArtOfTest.Common.OffsetReference.TopLeftCorner, ArtOfTest.Common.ActionPointUnitType.Pixel)
            
        End Sub
    End Class
End Namespace

Elena
Telerik team
 answered on 25 Oct 2019
3 answers
421 views

Hi Team,

We have prepared a sample for DeferRefresh issue. While creating a Appointment, changing the currentdate(View Refresh) for scheduler, it is thrown "Deferrefresh is not allowed during an addnew or edit item transaction" exception. 

In our application, we have refresh the scheduler view (Changing current date) continuously through bindable property and immediately creating the appointment. Here we are getting this exception.

Sample : https://drive.google.com/file/d/1IL_fqyugJDj2VMX7lqxGXbro1rtRU7sM/view?usp=sharing

Please suggest how to handle this issue?

Thanks,
Srinivasan

Dilyan Traykov
Telerik team
 answered on 25 Oct 2019
22 answers
2.2K+ views
i want to use with any maskedInput control for binding to nullable int bussiness property but:
1 i don't want the underline at all
2. i don't want the X image that exists inside the textbox

i just want to prevent from user to press not-digit char.

what the recommended control for this?

thanks
Petar Mladenov
Telerik team
 answered on 25 Oct 2019
2 answers
158 views

Hi 

    I am working on a DragAndDrop about RadTreeListView.There are two screens that use this RadTreeListView, one that requires the draganddrop function, and one that needs to disable the draganddrop function.The screen with the drag function disabled sets the following property to false:

RadTreeListViewDropBehavior.IsEnabled="{Binding CanDragFlag}".But, When this screen is dragged, the content set in DragVisual Content will be displayed. What is going on? I don't want to have any drag effects

    

Yuanhong
Top achievements
Rank 1
 answered on 25 Oct 2019
1 answer
143 views

Hello,

If the RadSyntax editor is in read-only mode and you press Ctr+F, the find/replace dialog is displayed. If I enter text in Find and Replace and press the Replace button, the text is replaced!

The Replace and Replace All buttons must be disabled in read-only mode.

Dilyan Traykov
Telerik team
 answered on 24 Oct 2019
1 answer
874 views

Hello,

Or at least provide a way for developpers to define a new syntax highlighter.

Vladimir Stoyanov
Telerik team
 answered on 24 Oct 2019
4 answers
163 views

Hi there,

 

Is there anyway to get rid of time and just show date (ex: 10/08/2019) in Start and End columns? I don't need to see time, I just want to see date.

Please assist me.

 

 

Thanks,

Bahram Afsharipoor

Bahram
Top achievements
Rank 1
 answered on 23 Oct 2019
2 answers
973 views

Hi there,

 

I have a requirement which is implementing a horizontally infinite scrolling on a GridView. Basically, I want to be able to add new columns to my GridView and see them as I am end of scrolling(either side). I know how to add and bind new columns to my GridView at run-time, but I don't know if there is any event or trick that I can use to detect if I am end of scrolling or not(so I can add new columns...).

Can someone please help me with this?

 

 

Thanks,

Bahram Afsharipoor

Bahram
Top achievements
Rank 1
 answered on 23 Oct 2019
13 answers
510 views
Hi!

I was very pleased using radmulticolumncombobox in winforms and now using WPF there is not such component. I would like to know why isn't into? and we could expect further release? or is it possible make a custom control? so, I appreciate so much your guide about it.

thanks
Dilyan Traykov
Telerik team
 answered on 23 Oct 2019
3 answers
189 views

Hello,

The API Reference documentation doesn't have any information about SyntaxEditor...

Dilyan Traykov
Telerik team
 answered on 23 Oct 2019
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?