Telerik Forums
UI for WPF Forum
1 answer
212 views

In our product we have some buttons in the RadTabControl.AdditionalContent.

These buttons can not be found by UI automation tool, also checking with Inspect.Objects these button and the AdditionalContent are not found.

Is this supported by Telerik or do we do something wrong.

We are running on Windows 7, using telerik WPF version Wpf.40.2014.2.0729.

 Snapshot of the code:

           <telerik:RadTabControl.AdditionalContent >
                <StackPanel Grid.Row="2" Margin="10,2" Orientation="Horizontal" HorizontalAlignment="Right">

                    <!-- Help -->
                    <Button Name="btnHelp" 
                            HorizontalAlignment="Right" 
                            VerticalAlignment="Top" 
                            Margin="0,0,10,0"
                            Command="{Binding Path=ShowHelpCommand}" 
                            Style="{StaticResource HelpButtonStyle}" 
                            Visibility="{Binding HelpButtonVisibility}"
                            ToolTip="{Binding Source={x:Static frameworkResources:XmlTextProvider.Content},XPath=Help/@Header}" />

                    <!-- Logout -->
                    <Button Name="btnLogout"
                            HorizontalAlignment="Right"
                            VerticalAlignment="Top"
                            Margin="0,0,0,0"
                            Command="{Binding Path=LogoutCommand}" 
                            Style="{StaticResource LogOutButtonStyle}" 
                            ToolTip="{Binding Source={x:Static frameworkResources:XmlTextProvider.Content},XPath=Logout/@Header}" />

                </StackPanel>
            </telerik:RadTabControl.AdditionalContent>​

 

 

 

Peshito
Telerik team
 answered on 12 Sep 2015
3 answers
546 views

Hi, i'm trying to make application similar to ms.visio. I'm using RadDocking and make two RadPaneGroup in leftside and rightside. the leftside is for the list of drag&drop elements like shape,image or anything. the rightside is for the layout and i can save the layout.

the leftside is like an icon with text and when we drag it, it will show the original image/shape.

what is the best way to do that? is using RadDocking good enough? any specific controls or feature that can be used? 

Thanks,

Mirza

 

Nasko
Telerik team
 answered on 11 Sep 2015
1 answer
122 views

Hi,

why can't i use RadDiagramToolbox? RadDiagram is fine, but everytime i use RadDiagramToolbox, there is an error message 'System.Windows.Media.Animation.DoubleAnimation' animation object cannot be used to animate property 'RenderTransform' because it is of incompatible type 'System.Windows.Media.Transform'.

i'm using VS2010 and free trial Telerik

Regards,

Mirza


Martin Ivanov
Telerik team
 answered on 11 Sep 2015
3 answers
274 views

Hi,

I want to generate TreeListView Columns dynamically and populate them with data.

 Regards

Stefan
Telerik team
 answered on 11 Sep 2015
5 answers
381 views

I am using the Visual Studio 2013 Dark Theme (using Implicit styles) and for the most part everything looks great out of the box.  One issue that I have run across is that the Context Menu that shows up for a TextBox (Cut, Copy, Paste) is not themed at all.  Additionally, using the RadRibbonWindow, when clicking on the Icon, the Context Menu that shows up (Restore, Move, Size, Minimize, Maximize, Close) is not themed at all.  I have to think that I am missing a setting somewhere for these to be themed but I cannot find it anywhere.  

 Can you help me out?

 

Jon

Evgenia
Telerik team
 answered on 11 Sep 2015
4 answers
176 views

Hi,

When the value in a cell containing a formula gets updated the text alignment is incorrect. See cell D2 in attachment after I put a 1 in cell B2. There is plenty of room for the value to be displayed correctly. The formula in D2 is =B2*C2.

I have tested this on the Telerik demos and can get the same thing to happen on there so it has nothing to do with my code.

This makes this control very unusable and I have customers complaining about this.

Thanks

Anthony

Tanya
Telerik team
 answered on 11 Sep 2015
1 answer
175 views

Hello everyone,

 We created a Custom Control which has a GridView as a part of it. We use the AutoGeneratingColumns functionality and the DisplayAttribute to define the header text. That works perfect. We want to set the Columns to a fixed width, and it would be great to do this with an Attribute or some sort of other way.

 Does anyone have a suggestion? We don't want to change the fact that the columns are auto generated.

Thanks for any help...

Ivan Ivanov
Telerik team
 answered on 11 Sep 2015
1 answer
339 views
I need to take pictures and store them on a Windows 8.1 machine.  Do you have a Camera control for WPF?  If not, what do you recommend?
Tanya
Telerik team
 answered on 11 Sep 2015
1 answer
177 views

I need to add values to the dropdown list of Duration so that they are 10 seconds, 20 seconds, 45 seconds, etc.  So I am able to add them okay to the list:

 

 var durationPicker = sender as DurationPicker;
            durationPicker.Items.Add("5 seconds");
            durationPicker.Items.Add("10 seconds");
            durationPicker.Items.Add("0.5 minutes");
            durationPicker.Items.Add("2 minutes");
            durationPicker.Items.Add("7 minutes");

 

However, picking any seconds doesn't update the End Time like if I picked 2 minutes.  It seems to ignore anything that is seconds.  Could you show me how to make seconds increments work on the Duration so it effects the End Date?   We often schedule items every 60 seconds. Or 30.

 

 

 

Nasko
Telerik team
 answered on 11 Sep 2015
5 answers
217 views

Hi Telerik:

I believe I have found a bug relating to how the RadRibbonTab handles things when its ItemsSource is set.

 Please see the attached demo app.

 Am I doing something wrong?  If so, please advise.


<Window
        xmlns:local="clr-namespace:WpfApplication5"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" x:Class="WpfApplication5.MainWindow"
        mc:Ignorable="d"
        Title="MainWindow" Height="659" Width="1131.575">
    <Grid>
        <ListBox x:Name="List1" HorizontalAlignment="Left" Width="483" Height="73" VerticalAlignment="Top" Margin="30,77,0,0"/>
        <ListBox x:Name="List2" Margin="30,223,0,0" HorizontalAlignment="Left" Width="483" Height="84" VerticalAlignment="Top"/>
        <Button x:Name="btnBindList1" Content="Bind List 1" HorizontalAlignment="Left" Margin="513,77,0,0" VerticalAlignment="Top" Width="102" Click="btnBindList1_Click"/>
        <Button x:Name="btnBindList2" Content="Bind List 2" HorizontalAlignment="Left" Margin="518,223,0,0" VerticalAlignment="Top" Width="102" Click="btnBindList2_Click"/>
        <Label x:Name="label" Content="First - Click "Bind List 1".  The items will bind.  This is what I expect to happen." HorizontalAlignment="Left" Margin="30,43,0,0" VerticalAlignment="Top"/>
        <telerik:RadRibbonView x:Name="radRibbonView" VerticalAlignment="Top" Margin="30,385,108,0">
            <telerik:RadRibbonTab Header="RibbonTab" x:Name="radRibbonTab"/>
        </telerik:RadRibbonView>
        <Button x:Name="btnBindRibbon" Content="Bind Ribbon to New Tab" HorizontalAlignment="Left" Margin="518,360,0,0" VerticalAlignment="Top" Width="158" Click="btnBindRibbon_Click"/>
        <Button x:Name="btnBindRibbon_Copy" Content="Bind Ribbon Again" HorizontalAlignment="Left" Margin="518,571,0,0" VerticalAlignment="Top" Width="193" Click="btnBindRibbon_Click"/>
        <Label x:Name="label_Copy" Content="Second - Click "Bind List 2".  The list is bound and visual items jump to List2.  This is what I expect to happen." HorizontalAlignment="Left" Margin="30,192,0,0" VerticalAlignment="Top"/>
        <Label x:Name="label_Copy1" Content="Third - Click "Bind Ribbon to New Tab".  The list is bound and visual items jump into the ribbon.  This is also what I expect to happen." HorizontalAlignment="Left" Margin="30,321,0,0" VerticalAlignment="Top" Width="799" Height="27"/>
        <Label x:Name="label_Copy2" Content="Last - Click "Bind Ribbon Again" (it calls the same code as above).  When I do this, I get an error.  I expect items to jump like they did the first time." HorizontalAlignment="Left" Margin="30,537,0,0" VerticalAlignment="Top" Width="799" Height="27"/>
    </Grid>
</Window>

 

using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
 
namespace WpfApplication5 {
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window {
         
 
        System.Collections.ObjectModel.ObservableCollection<object> items;
 
        public MainWindow() {
            InitializeComponent();
            items = new System.Collections.ObjectModel.ObservableCollection<object> { "a", "b", "c" };
 
            items.Add(new Button() { Content = "Test Button" });
            items.Add(new TextBox() { Text = "Test Textbox!" });
        }
 
        private void Button_Click_1(object sender, RoutedEventArgs e) {
            Button button = sender as Button;
            string clickedString = button.DataContext as string;
            items.Remove(clickedString);
 
        }
 
        private void btnBindList1_Click(object sender, RoutedEventArgs e) {
            e.Handled = true;
            List1.ItemsSource = items;
 
        }
 
        private void btnBindList2_Click(object sender, RoutedEventArgs e) {
            e.Handled = true;
            List2.ItemsSource = items;
        }
 
        private void btnBindRibbon_Click(object sender, RoutedEventArgs e) {
            e.Handled = true;
            var Tab = new Telerik.Windows.Controls.RadRibbonTab() { Header = "New Tab" };
            radRibbonView.Items.Add(Tab);
            radRibbonView.SelectedItem = Tab;
 
            Tab.ItemsSource = items;
 
             
             
        }
    }
}

Petar Marchev
Telerik team
 answered on 11 Sep 2015
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
InlineAIAssistant
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?