or
Hi Telerik Team!
I’m evaluating your WPF control bundle for one of our new applications and have some problems regarding the backstage tab in combination with a WebBrowser control in the content area of my prototype. Although the backstage tab is active, the WebBrowser control is visible and overlaps my backstage-content. Is there a way how I can solve this problem?
Best regards,
Dominik
{
#region Variable Declarations
WpfButton uIBtnButton = this.UINAFTAWindow.UINAFTAExporterGroup.UITxtExporterCustom.UIBtnButton;
#endregion
// Click 'btn' button
Mouse.Click(uIBtnButton, new Point(15, 8));
}
Please let me know what and all references to be added to get RADControlls using coded ui tests
-Sandeep
<telerik:RadGridView AutoExpandGroups="False" AutoGenerateColumns="False" CanUserDeleteRows="False" CanUserFreezeColumns="False" CanUserInsertRows="False" CanUserResizeColumns="True" CanUserSortColumns="True" DataLoadMode="Synchronous" EnableColumnVirtualization="True" EnableRowVirtualization="True" FontSize="16" FontWeight="Bold" Grid.Column="0" Grid.Row="0" IsReadOnly="True" ItemsSource="{Binding Path=HotLists, RelativeSource={RelativeSource AncestorType={x:Type cs:HotListManager}}}" Name="HotListGrid" RowIndicatorVisibility="Collapsed" ScrollViewer.CanContentScroll="True" ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto" SelectionChanged="HotListGrid_SelectionChanged" SelectionUnit="FullRow" ShowColumnFooters="True" ShowGroupPanel="False" ToolTip="Hot Lists"> <telerik:RadGridView.Columns> <telerik:GridViewDataColumn DataMemberBinding="{Binding Name , Mode=OneWay}" Header="Hot List" Width="*"> <telerik:GridViewDataColumn.AggregateFunctions> <telerik:CountFunction Caption="Count: " ResultFormatString="{}{0:n0}" /> </telerik:GridViewDataColumn.AggregateFunctions> </telerik:GridViewDataColumn> <telerik:GridViewDataColumn DataMemberBinding="{Binding ListType , Mode=OneWay}" Header="List Type" Width="Auto" /> <telerik:GridViewDataColumn DataMemberBinding="{Binding LastUpdate, Mode=OneWay, Converter={StaticResource DateConverter}}" Header="Last Update" MinWidth="160" Width="Auto" /> <telerik:GridViewImageColumn DataMemberBinding="{Binding Status , Mode=OneWay, Converter={StaticResource DeviceStatuses}}" Header="Status" ImageStretch="None" Width="95" /> <telerik:GridViewDataColumn Header="Entries" TextAlignment="Right" MinWidth="125" Width="Auto"> <telerik:GridViewDataColumn.DataMemberBinding> <Binding Path="EntryCount" Mode="OneWay" Converter="{StaticResource LongConverter}" ConverterParameter="#,##0" /> </telerik:GridViewDataColumn.DataMemberBinding> <telerik:GridViewDataColumn.AggregateFunctions> <telerik:SumFunction ResultFormatString="{}{0:n0}" /> </telerik:GridViewDataColumn.AggregateFunctions> </telerik:GridViewDataColumn> </telerik:RadGridView.Columns></telerik:RadGridView>The specified value cannot be assigned to the collection. The following type was expected: "AggregateFunction".using System.Windows;namespace DropDownButtonKeyBehavior{ /// <summary> /// Interaction logic for MainWindow.xaml /// </summary> public partial class MainWindow : Window { public MainWindow() { InitializeComponent(); DataContext = new ViewModel(); } }}<Window x:Class="DropDownButtonKeyBehavior.MainWindow" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" xmlns:commands="clr-namespace:Microsoft.Practices.Prism.Commands;assembly=Microsoft.Practices.Prism" Title="MainWindow" Height="400" Width="200"> <Window.Resources> <DataTemplate x:Key="DropDownContent"> <Grid Background="Orange" Height="300" Width="300"> <Grid Margin="5"> <Grid.RowDefinitions> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> </Grid.RowDefinitions> <telerik:RadDatePicker /> <Button Name="Save" Grid.Row="1" Content="OK" HorizontalAlignment="Right" Width="105" /> </Grid> </Grid> </DataTemplate> </Window.Resources> <Grid x:Name="LayoutRoot"> <Grid.RowDefinitions> <RowDefinition/> <RowDefinition/> </Grid.RowDefinitions> <telerik:RadDropDownButton Content="Click Me For Popup" IsOpen="{Binding IsExpanded}" Background="Gray" HorizontalAlignment="Center" VerticalAlignment="Center" Height="90" Width="90" commands:Click.Command="{Binding ExpandCommand}" commands:Click.CommandParameter="{Binding}"> <telerik:RadDropDownButton.DropDownContent> <ContentControl ContentTemplate="{StaticResource DropDownContent}" DataContext="{Binding}" Content="{Binding}" /> </telerik:RadDropDownButton.DropDownContent> </telerik:RadDropDownButton> <TextBox x:Name="FocusHolder" Grid.Row="1"/> </Grid></Window>using System;using System.ComponentModel;using Microsoft.Practices.Prism.Commands;namespace DropDownButtonKeyBehavior{ public class ViewModel : INotifyPropertyChanged { #region ViewModel Members private DelegateCommand<object> mExpandCommand; public DelegateCommand<object> ExpandCommand { get { return mExpandCommand ?? ( mExpandCommand = new DelegateCommand<object>( _OnExpandCommandExecuted ) ); } } private bool mIsExpanded; public bool IsExpanded { get { return mIsExpanded; } set { if( mIsExpanded != value ) { mIsExpanded = value; OnPropertyChanged( "IsExpanded" ); } } } #endregion ViewModel Members #region Ëvents public event PropertyChangedEventHandler PropertyChanged; #endregion Ëvents #region Private Members private void _OnExpandCommandExecuted( object obj ) { IsExpanded = true; } #endregion Private Members #region Protected Members protected virtual void OnPropertyChanged( string propertyName ) { PropertyChangedEventHandler handler = PropertyChanged; if( handler != null ) { handler( this, new PropertyChangedEventArgs( propertyName ) ); } } #endregion Protected Members }}class DataListViewModel : ViewModelBase{ private RadObservableCollection<int> dataList; private Random random = new Random((int) DateTime.Now.Ticks); public DataListViewModel() { this.Data = this.FillRandomlyList(); } public RadObservableCollection<int> Data { get { return dataList; } set { if (value != dataList) { dataList = value; this.OnPropertyChanged("Data"); } } } private RadObservableCollection<int> FillRandomlyList() { var res = new RadObservableCollection<int>(); for (int i = 0; i < 10000; i++) { res.Add(random.Next(500)); } return res; }}<Window x:Class="PerfTest.MainWindow" Title="MainWindow" Height="350" Width="525" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"> <Grid> <telerik:RadCartesianChart Margin="12,12,270,12"> <telerik:RadCartesianChart.Grid> <telerik:CartesianChartGrid MajorLinesVisibility="XY" MajorXLineDashArray="5, 5" MajorYLineDashArray="5, 5"> <telerik:CartesianChartGrid.MajorXLineStyle> <Style TargetType="Line"> <Setter Property="Shape.Stroke" Value="Gray" /> </Style> </telerik:CartesianChartGrid.MajorXLineStyle> <telerik:CartesianChartGrid.MajorYLineStyle> <Style TargetType="Line"> <Setter Property="Shape.Stroke" Value="Gray" /> </Style> </telerik:CartesianChartGrid.MajorYLineStyle> </telerik:CartesianChartGrid> </telerik:RadCartesianChart.Grid> <telerik:RadCartesianChart.HorizontalAxis> <telerik:LinearAxis Visibility="Hidden"/> </telerik:RadCartesianChart.HorizontalAxis> <telerik:RadCartesianChart.VerticalAxis> <telerik:CategoricalAxis Title="Test2" Visibility="Visible" IsInverse="True" /> </telerik:RadCartesianChart.VerticalAxis> <telerik:RadCartesianChart.Behaviors> <telerik:ChartPanAndZoomBehavior /> <telerik:ChartSelectionBehavior /> </telerik:RadCartesianChart.Behaviors> <telerik:RadCartesianChart.Series> <telerik:LineSeries Stroke="IndianRed" CategoryBinding="X" ValueBinding="Y" ItemsSource="{Binding Path=Data}" RenderMode="Light" > <telerik:LineSeries.PointTemplate> <DataTemplate> <Ellipse Fill="DeepPink" Height="5" Width="5" /> </DataTemplate> </telerik:LineSeries.PointTemplate> </telerik:LineSeries> </telerik:RadCartesianChart.Series> </telerik:RadCartesianChart> </Grid></Window>
Dim dt As datatable dt = getdatatable.defaultview Me.radDataPager.Source = dt radDataPager.MoveToLastPage() Dim row As Telerik.Windows.Controls.GridView.GridViewRow row = Me.radGridView.ItemContainerGenerator.ContainerFromIndex(radGridView.Items.Count - 1) row.DetailsVisibility = Visibility.Visible