Telerik Forums
UI for WPF Forum
3 answers
157 views
I have a contextual tab, which I show using

Contextualgroup.IsActive = true;

This has the effect of displaying the tab and changing the current active tab, which is very annoying.  I was under the impression that this was against Microsoft's guidelines.  If you draw a rectangle in PowerPoint 2010 the Format tab appears, but the active tab remains on whatever you had selected.

Is there a way to simulate the same functionality?  I have tried IsVisible, but that seems to be just a getter.

Thanks
John
Viktor Tsvetkov
Telerik team
 answered on 14 Oct 2011
7 answers
631 views
Hi,

I'm trying to get the Office 2010 look & feel so i'd like to apply glass effect on the RadRibbonWindow, wich works fine with a standard window (http://msdn.microsoft.com/en-us/library/ms748975.aspx).

Have you already set a handler that would prevent that feature to work ?

Regards.
<telerik:RadRibbonWindow xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"  x:Class="TestRibbon.MainWindow"
        Title="MainWindow" Height="350" Width="525"
        Loaded="Window_Loaded" Background="Transparent">
</telerik:RadRibbonWindow>

public partial class MainWindow : RadRibbonWindow
{
    public MainWindow()
    {
        InitializeComponent();
    }
 
    private void Window_Loaded(object sender, RoutedEventArgs e)
    {
        try
        {
            IntPtr mainWindowPtr = new WindowInteropHelper(this).Handle;
            HwndSource mainWindowSrc = HwndSource.FromHwnd(mainWindowPtr);
            mainWindowSrc.CompositionTarget.BackgroundColor = Color.FromArgb(0, 0, 0, 0);
 
            System.Drawing.Graphics desktop = System.Drawing.Graphics.FromHwnd(mainWindowPtr);
            float DesktopDpiX = desktop.DpiX;
            float DesktopDpiY = desktop.DpiY;
 
            MARGINS margins = new MARGINS();
            margins.cxLeftWidth = Convert.ToInt32(0 * (DesktopDpiX / 96));
            margins.cxRightWidth = Convert.ToInt32(this.Width * (DesktopDpiX / 96));
            margins.cyTopHeight = Convert.ToInt32(0 * (DesktopDpiX / 96));
            margins.cyBottomHeight = Convert.ToInt32(this.Height * (DesktopDpiX / 96));
 
            int hr = DwmExtendFrameIntoClientArea(mainWindowSrc.Handle, ref margins);
            if (hr < 0)
            {
                MessageBox.Show("Can't apply glass...");
            }
        }
        catch (DllNotFoundException)
        {
            Application.Current.MainWindow.Background = Brushes.White;
        }
    }
 
    [StructLayout(LayoutKind.Sequential)]
    public struct MARGINS
    {
        public int cxLeftWidth;
        public int cxRightWidth;
        public int cyTopHeight;
        public int cyBottomHeight;
    };
 
    [DllImport("DwmApi.dll")]
    public static extern int DwmExtendFrameIntoClientArea(
        IntPtr hwnd,
        ref MARGINS pMarInset);
}

Tina Stancheva
Telerik team
 answered on 14 Oct 2011
1 answer
254 views
Hey, I'm not sure if this is possible, but can a RadTreeView handle being inside a ScrollViewer and letting it be in control of the scrolling??

I seem to have lost 2 abilities that i did before,

1) the ability to scroll up with an item when dragging
2) the ability to use the scroll wheel when my mouse is over the TreeView

you can see what i mean in this screen capture, the first part shows the not being able to drag an item upto the top, and the second part shows the ability to use the scroll wheel when i mouse over the scrollbar but not the scroll wheel..

also note, i have totally customised the look and feel of the RadTreeViewItem's... but it is indeed a RadTreeView.

http://www.youtube.com/watch?v=iE1rbqdDlmA

The reason we need the scroll viewer to work now, instead of using the RadTreeView's control is because we have the small panel that is pinned to the bottom of it, but when there are only a few items it appears directly below them, rather than being constantly pinned to the bottom of the screen.. its almost a "Traveling" toolbar.

Any help with this issue would be appreciated.
Tina Stancheva
Telerik team
 answered on 14 Oct 2011
0 answers
117 views
Hi,

I would like to know the latest status of telerik controls support for UI automation. We are currently using version '2011.1.315.35' WPF controls. Most of the controls are not visible through Spy++ tool or Inspect object.

Thanks.
Baiju
Top achievements
Rank 1
 asked on 14 Oct 2011
8 answers
149 views
Hi guys,
In our project we are using RadTreeListView. It is works perfect we can show the data create our datatemplates etcetera..., instead of Automation Testing. We can't access the control, event find them by using UISpy.

Actually it is little bit funny, because UISpy tell us that there are some header with the columns and that's it.

I gave the name for the control, event Automation Id...and can't find them in a UI Automation tree at all.
This is not really clear for us.

Could you please support us
Yordanka
Telerik team
 answered on 14 Oct 2011
1 answer
942 views
Hi -

I am currently using a trial of the Telerik WPF products and so far I am impressed.

I'm using a RichTextBox and I am data binding it into my ViewModel using the subclass I found on your forums which uses the HtmlFormatProvider and a RichText dependency property. This particular text box has text added to it regularly. I would like to keep the scroll bar scrolled to the bottom so you can always see the last line of text added to the text box and I'd like to do it with data binding if possible so that I don't break my MVVM. What would be the best approach?

Thanks!
Boby
Telerik team
 answered on 14 Oct 2011
1 answer
108 views
Hello,
I am working with PersistenceFramework saving the data in SQL Server.
The issue is that my application works with tabs and MVVM. The MainWindow contains a ribbon and a rabTabControl, when the user clicks on a button opens a tab with a given user control depending on the button clicked.
When working with only one tab, everything works ok!
But when I open different tabs and navigate between them, saving the stream of my control, I realize that 
PersistenceManager.GetStorage()
is empty.

They know that may be happening?

Thank you in advance and sorry for my English.
Alex Fidanov
Telerik team
 answered on 14 Oct 2011
2 answers
69 views
Hi

I have two treelistview and I selected 4 row in 1st tree and drop on 2nd tree. But in payload it is showing only one that has focus in tree.

Please help me soon.

Regards
Vijay
Vijay
Top achievements
Rank 1
 answered on 14 Oct 2011
4 answers
116 views

Hi!

Is there a buildin Drag&Drop functionality (Drop-Inside, Drop-Above, Drop-Below) like in the TreeView control? I downloaded the trail version of the control but couldn’t spot something like that.


Kind Regards,

Dominik

Vijay
Top achievements
Rank 1
 answered on 14 Oct 2011
1 answer
119 views
Am I right in thinking the RadGridView does not support IsTextSearchEnabled?

I have a read-only grid of data.
I want my users to be able to put the focus on the grid and start typing.

I want the selected row to change according to what they type.

Clearly, I'll need to set the text search path.

The native Listview.GridView does this, but I can't seem to make it work with the RadGridView?

Any suggestions?

Thanks,
Vlad
Telerik team
 answered on 14 Oct 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?