Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[UFT] [WPF] DataGrid: check if vertical and horizontal scrollbars are visible
#1
Not Solved
Hi,
i have a DataGrid, this is the source code:
Code:
<DataGrid x:Name="commonStepGrid" AutoGenerateColumns="False" HeadersVisibility="Column"  
               Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="2" Margin="2"
               SelectionChanged="commonStepGrid_SelectionChanged"  CanUserAddRows="False" CanUserDeleteRows="False" CanUserResizeColumns="True"
               SelectionUnit="FullRow" SelectionMode="Extended"                     
               ScrollViewer.CanContentScroll="True" IsReadOnly="True"
               HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto"
               AlternationCount="2" >

I have to check is vertical or horizontal scrollbars are visible.

I use this code fro get the properties of DataGrid, but it not works:
Code:
cc = WpfWindow("myApp").WpfTable("commonStepGrid").Object.HorizontalScrollBarVisibility
bb = WpfWindow("myApp").WpfTable("commonStepGrid").Object.VerticalScrollBarVisibility

Thanks for the support.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  no action on click for particular wpf button jlavrecka 1 1,409 05-21-2020, 11:33 PM
Last Post: jlavrecka
  Issue in QTP WPF vimal_selvam 5 14,247 06-26-2018, 05:40 PM
Last Post: rateebhatt
  Exist and Visible Are True When Objects Aren't There - Is there A Better Way? zunebuggy 3 3,127 04-24-2018, 02:12 PM
Last Post: Ankur
  UFT 14.01 - identifying wpf objects. but not performing action. chinmoyee 1 2,485 11-15-2017, 03:42 PM
Last Post: Ankur
  [UFT] [WPF] Verify if the cell contains an image robertosalemi 0 1,892 10-25-2016, 06:57 PM
Last Post: robertosalemi

Forum Jump:


Users browsing this thread: 1 Guest(s)