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

Hi,

I create UI tests for our WPF Desktop App.
For this I use the WinAppDriver from Microsoft.
Everything works fine, excepting "SendKeys" to AutoCompleteBox.

 

m_session.FindElementByAccessibilityId("AutoComlpleteBoxID").Click();   // Works ... I see the input cursor inside the box

m_session.FindElementByAccessibilityId("AutoComlpleteBoxID").SendKeys("12345"); // Works not !

Exception:
An unknown error occurred in the remote end while processing the command.

Any Idea why it happens.
With a standard WPF textbox it works.

Regards
Stefan

Vladimir Stoyanov
Telerik team
 answered on 19 Jun 2019
0 answers
83 views

Hi,

 

The buttons that needs to be available in the quick access toolbar are those buttons which are available in the ribbon view. Is there a way to get this thing done by just creating a single list of buttons and then bind them to both of them(ribbonView and QuickAccessToolbar).

 

Because right now, i have to hard code each and every button separately in both of them, which doesnt seem a good practice or a good solution for this.

 

Kindly provide me with a sample project in which the same list  of button is being binded with both in a MVVM architecture.

 

Regards,

Tayyaba Naz

Tayyaba
Top achievements
Rank 1
 asked on 19 Jun 2019
12 answers
185 views

Hello, 

I'm having a problem with RadDesktopAlertManager.
Since its position can't be changed after initialization, I have to re-assign it in order to change the position. But after doing that, adding of a new RadDesktopAlert item to the manager causes a "Closed" event to be raised for the alert immediately after that (I can see in the Call Stack that the item's adding caused the event raising). Actually the item is not being closed (which is good), but the unnecessary event effects my business logic.

David
Top achievements
Rank 1
 answered on 18 Jun 2019
1 answer
165 views

Hello great team,

I have the following issue.

I have a RadContextMenu with 5 menu items. Some of those items have children items too.

1 When I click on an item which doesn't have children - it performs the action and menu is closed which is great.

2 When I click on an item which have children - it just close the menu. I want when I click on a menu which have children just to expand and show those children.

So when I click on children menu to close again?

How can I achieve the second point above?

 

Thanks in Advance

Martin Ivanov
Telerik team
 answered on 18 Jun 2019
1 answer
193 views
Hi, i am creating an annotation dynamically using custom behavior (user set annotation points by clicking on scatter plot). The problem is to bound the annotation to categorical axis. I need to have annotation in any place user wants, not only in one of the CategoricalAxis values (for example in the middle of two categories). Can you help me with some ideas how can i do that?
Martin Ivanov
Telerik team
 answered on 18 Jun 2019
2 answers
871 views

My problem is simple: In my RadExpander header template, I am unable to access the properties of the data context of the expander itself.  Why does the header not have the same data context?

Here is a simple example:  A main Window with a label and a RadExpander (with HeaderTemplate).  The simple label easily accesses the "Name" property.  The RadExpander's HeaderTemplate cannot

 

<Window x:Class="TestTelerik.MainWindow"
                xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                xmlns:tk="http://schemas.telerik.com/2008/xaml/presentation"
                xmlns:testTelerik="clr-namespace:TestTelerik"
                Title="MainWindow" Height="350" Width="525"
                >
    <StackPanel>
 
        <!-- This shows up just fine -->
 
       <Label Content="{Binding HeaderTitle}"/>
 
        <tk:RadExpander>
            <tk:RadExpander.HeaderTemplate>
                <DataTemplate>
                     <!-- This does not show.  Why not? -->
                    <Label Content="{Binding HeaderTitle}"/>
                </DataTemplate>
            </tk:RadExpander.HeaderTemplate>
        </tk:RadExpander>
    </StackPanel>
</Window>

 

The DataContext of this window is just itself:

public partial class MainWindow : Window
{
    public MainWindow()
    {
        InitializeComponent();
        DataContext = this;
    }
 
    public string HeaderTitle => "Items!";
}

My real-world use case it actually quite a bit more complicated so it's not a viable solution for me to try to bind the "RadExpander.Header" property directly. 

Nor can I use the  "ElementName=" binding syntax.  Not in my case

What is the best way to make the RadExpander HeaderTemplate inherit its the RadExpander's  data context?

 

Martin Ivanov
Telerik team
 answered on 18 Jun 2019
1 answer
148 views

I just added a datapager to my project but it does not seem to be honoring the Windows8touch theme.

I have the window8touch dll referenced properly as everything else works.

==> Telerik.Windows.Themes.Windows8Touch

What do I have wrong.

<ResourceDictionary.MergedDictionaries>
    <ResourceDictionary Source="/Telerik.Windows.Themes.Windows8Touch;component/Themes/System.Windows.xaml" />
    <ResourceDictionary Source="/Telerik.Windows.Themes.Windows8Touch;component/Themes/Telerik.Windows.Controls.xaml" />
    <ResourceDictionary Source="/Telerik.Windows.Themes.Windows8Touch;component/Themes/Telerik.Windows.Controls.Chart.xaml" />
    <ResourceDictionary Source="/Telerik.Windows.Themes.Windows8Touch;component/Themes/Telerik.Windows.Controls.Input.xaml" />
    <ResourceDictionary Source="/Telerik.Windows.Themes.Windows8Touch;component/Themes/Telerik.Windows.Controls.Data.xaml" />
    <ResourceDictionary Source="/Telerik.Windows.Themes.Windows8Touch;component/Themes/Telerik.Windows.Controls.DataVisualization.xaml" />
    <ResourceDictionary Source="/Telerik.Windows.Themes.Windows8Touch;component/Themes/Telerik.Windows.Controls.Navigation.xaml" />
    <ResourceDictionary Source="/Telerik.Windows.Themes.Windows8Touch;component/Themes/Telerik.Windows.Controls.Docking.xaml" />
    <ResourceDictionary Source="/Telerik.Windows.Themes.Windows8Touch;component/Themes/Telerik.Windows.Documents.xaml" />
    <ResourceDictionary Source="/Telerik.Windows.Themes.Windows8Touch;component/Themes/Telerik.Windows.Documents.Proofing.xaml" />
    <ResourceDictionary Source="/Telerik.Windows.Themes.Windows8Touch;component/Themes/Telerik.Windows.Controls.GridView.xaml" />
</ResourceDictionary.MergedDictionaries>

 

David Ocasio
Top achievements
Rank 2
Iron
Veteran
Iron
 answered on 17 Jun 2019
2 answers
178 views

Hi all,

I am updating some code and it appears the use of InsertReadOnlyPage(DocumentPosition start, DocumentPosition end) from RadDocument is obselete and replaced by RadDocumentEditor.InsertReadOnlyPage().

 

The original call was the following (note the parameters):

1.editor.Document.InsertReadOnlyRange(start, end);

Would this be equivalent the equivalent update?

1.RadDocumentEditor _radDocEditor = new RadDocumentEditor(editor.Document);
2._radDocEditor.Document.Selection.AddSelectionStart(start);
3._radDocEditor.Document.Selection.AddSelectionEnd(end);
4._radDocEditor.InsertReadOnlyRange();
Pavel
Top achievements
Rank 1
 answered on 14 Jun 2019
1 answer
237 views

Hello, I am trying to convert my existing C# program from the real Microsoft WPF components to the Telerik components. Now I have the problem that I use the function DataGrid.Items.GetItemAt with the Microsoft components. What is the equivalent in Telerik RadGridView?

Thank you in advance

Ivan Ivanov
Telerik team
 answered on 14 Jun 2019
2 answers
205 views

When a user drags a tab out of a host TabbedWindow it creates a new TabbedWindow to host the Tab but this new TabbedWindow  doesn't inherit the configuration of the original parent. 

What would be the best way to get a handle on this new TabbedWindow and apply configuration style. E.g. disable the new tab button. 

Thanks,

Richard

(PS. I love this new control, it has really helped me)

Richard
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 14 Jun 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?