Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[UFT] [WPF] Trigger on TextBox
#1
Not Solved
Hi,
in my WPF application I have a TextBox, when it is cleared, there is applied a style with red border.

In WPF this should be a Triggers, right?

Can I check if this trigger is shown or no?

I see the property Triggers that returns me a TriggerCollection, but the count of it is always 0 (in each condition).
Reply
#2
Not Solved
I try with this code:
Code:
Set txtElem = WpfWindow("myApp").WpfEdit("ProcessCode")
Set objelem = txtElem.Object

'First test
Set triggerColl1 = objelem.Triggers
MsgBox triggerColl1.Count

'Second test
Set styleObj1 = objelem.Style
MsgBox styleObj1.Triggers

Set oo = styleObj1.Triggers
Msgbox oo.Count

In each case, count is equals to 0.

Why?
Reply
#3
Not Solved
Any suggestions....?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  no action on click for particular wpf button jlavrecka 1 1,422 05-21-2020, 11:33 PM
Last Post: jlavrecka
  Issue in QTP WPF vimal_selvam 5 14,256 06-26-2018, 05:40 PM
Last Post: rateebhatt
  UFT 14.01 - identifying wpf objects. but not performing action. chinmoyee 1 2,490 11-15-2017, 03:42 PM
Last Post: Ankur
  [UFT] [WPF] Verify if the cell contains an image robertosalemi 0 1,898 10-25-2016, 06:57 PM
Last Post: robertosalemi
  [UFT] [WPF] DataGrid: get items of ControlTemplate robertosalemi 0 3,487 07-14-2016, 07:52 PM
Last Post: robertosalemi

Forum Jump:


Users browsing this thread: 1 Guest(s)