Telerik Forums
UI for WPF Forum
2 answers
107 views

- Please see attached screenshot -


The toolbar on the right side of the screen (blue line above "toolbar" buttons) should always have the same height as the HeaderSelectedItem element of the OutlookBar on the left. So when a user switches his theme at runtime, the toolbars height should adjust with the new selected theme. For example "Office 2013" and "Windows 8" themes use different heights. I tried that with the following code where "MyOutlookBar" is the key of my RadOutlookBar:



<!-- ToolBar Area -->
<StackPanel Orientation="Horizontal" Height="{Binding ElementName=MyOutlookBar, Path=HeaderSelectedItem.Height}">
    <Image Source="{Binding ToolBarIcon}" Stretch="None" />
    <TextBlock Text="{Binding ToolBarTitle}" />
</StackPanel>




Sadly there is no "HeaderSelectedItem" property which I can refer to. How is that element accessible?







Johannes
Top achievements
Rank 1
 answered on 17 Jan 2014
13 answers
301 views
Hello,

When AutoGeneratePropertyDefinitions="true", how to use custom made templates for error handling on properties that where auto generated?
Custom editors for values and tooltips ?

Thank you,
Regards,
Branko
Ivan Ivanov
Telerik team
 answered on 17 Jan 2014
0 answers
112 views
Dear Telerik Team!

Can you please help me getting custom drag cue please? I searched everywhere but without success. This is my xaml:

<telerikControls:RadGridView Grid.ColumnSpan="2"  ...
                
                                    
           <telerikControls:RadGridView.Resources>
                <DataTemplate x:Key="DraggedItemTemplate">
                    <StackPanel Orientation="Horizontal" Margin="2">
                        <TextBlock Text="test" FontWeight="Bold" />
                    </StackPanel>
                </DataTemplate>
            </telerikControls:RadGridView.Resources>
 
            <planerView:RadGridViewDragDrop.DragVisualProvider>
                <!--<planerView:RadGridViewItemDragVisualProvider>                 
                </planerView:RadGridViewItemDragVisualProvider>-->
                <telerikDragDropBehaviors:ScreenshotDragVisualProvider></telerikDragDropBehaviors:ScreenshotDragVisualProvider>
            </planerView:RadGridViewDragDrop.DragVisualProvider>
 
        </telerikControls:RadGridView>

and that is my RadGridViewItemDragVisualProvider code:

public class RadGridViewItemDragVisualProvider : DependencyObject, IDragVisualProvider
    {
        public DataTemplate DraggedItemTemplate
        {
            get
            {
                return (DataTemplate)GetValue(DraggedItemTemplateProperty);
            }
            set
            {
                SetValue(DraggedItemTemplateProperty, value);
            }
        }
 
        public static readonly DependencyProperty DraggedItemTemplateProperty =
        DependencyProperty.Register("DraggedItemTemplate", typeof(DataTemplate), typeof(RadGridViewItemDragVisualProvider), new PropertyMetadata(null));
 
        public FrameworkElement CreateDragVisual(DragVisualProviderState state)
        {
            var visual = new DragVisual();
 
            visual.Content = state.DraggedItems.OfType<object>().FirstOrDefault();
            visual.ContentTemplate = this.DraggedItemTemplate;
 
            return visual;
        }
 
        public Point GetDragVisualOffset(DragVisualProviderState state)
        {
            return state.RelativeStartPoint;
        }
 
        public bool UseDefaultCursors { get; set; }
    }

But it doesn't work. DraggedItemTemplate is always null. I would be very grateful for any help in that matter.

Very best regards
Krzysztof Kaźmierczak

Krzysztof
Top achievements
Rank 1
 asked on 17 Jan 2014
4 answers
281 views
Hi,

I try to change the telerik theme at runtime following the thread about implicit theme. It's work well but for the treeView control I lost the background color of selected item when switching from one theme to another. This behavior occurs only if i set a ItemContainerStyle.

My style is declared like this :

<Style x:Key="FolderItemStyle" TargetType="{x:Type telerik:RadTreeViewItem}" BasedOn="{StaticResource RadTreeViewItemStyle}">

<Setter Property="Foreground" Value="Blue"/>

<Setter Property="FontStyle" Value="Normal"/>

</Style>


and my treeview is declare to use this style

<telerik:RadTreeView Grid.Row="1" Grid.Column="0" ItemContainerStyle="{StaticResource FolderItemStyle}">


The first time, when the MergedDictionaries is built, all work fine but when i clear and load new theme at runtime the background color of selected item disappear, if i re-switch to original theme it's working again.

A sample project can be foundhere : https://drive.google.com/file/d/0B6ihaOKSuZdBeVdNVnlqVFVXWkk/edit?usp=sharing.

Thanks
luc
Top achievements
Rank 1
 answered on 17 Jan 2014
1 answer
54 views

I've got a simple chart with 2 Bar3DSeriesDefinitions and 2 y axes.  I set the axis names appropriately & both series draw, but the additional y axis is not visible.  Any clue why?  The XAML in the designer shows the second y axis at design time, but that is before the series are added at run time & so the axes are shown as 2D.


Thanks - Mitch

Petar Marchev
Telerik team
 answered on 17 Jan 2014
2 answers
111 views
Hi,
is it possible to have a book as combination of my custom defined pages(cover page and last page) and in between to have pdf content (like in pdf radbook integration example).
best regards
Nebojsa Danilovic 
Nebojsa
Top achievements
Rank 1
 answered on 16 Jan 2014
6 answers
414 views

Hi,


I'd like to have fixed y/x-axis 0 to 1. Values above and below don't make sense.

There are values exactly at (0,0.5) and by using a point series they are only partially within the plotable area

and become very hard to select. Is there a margin/padding property I can set?

Changing the axis minimum helps, but then my axis annotation don't make sense anymore.



Markus

Markus
Top achievements
Rank 1
 answered on 16 Jan 2014
3 answers
258 views
Hi ya,

How can I load my RadGridView in my XAML view showing one row selected by default?

Thanks in advance for any hint or input related to!!

I mean,how to set focus on a particular row in my RadGridView?

Enric
Hristo
Telerik team
 answered on 16 Jan 2014
1 answer
298 views
Hi,

I have a usercontrol chart imbedded in a dock panel.

Everytime I resize the main window, the panel, and hence chart control resizes as well. This causes the chart's scale to change. How do I disable this feature?

Than is, I would like the chart to remain the same size as the main window resizes, forcing the user to scroll the chart to see the hidden parts.

Thanks.
Jonathan
Top achievements
Rank 1
 answered on 16 Jan 2014
9 answers
604 views
Dear telerik-team,

I want to highlight and scroll to parts of a text inside a readonly RichTextBox via code. Is that possible?

For example: I've a RichtextBox with three pages. First page content is "one", second content is "two" and third content is "three". I want to highlight "two" and scroll to the content.

Kind regards,
Philipp
Petya
Telerik team
 answered on 16 Jan 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?