Telerik Forums
UI for WPF Forum
8 answers
242 views
Hi,

I have a poblem with your RichTextBox control. When i set render options in WPF application like this:

RenderOptions.EdgeMode(dependencyObject, EdgeMode.Aliased);

caret in richTextBox disappeared. To reproduce the problem font size should be set to less then 15 and font style should not be set to italic.

( I think that the problem is thickness of caret and the render of 1px width in this render mode)

Please let my know how to set visibility of caret.
Maciej
Top achievements
Rank 1
 answered on 17 Dec 2014
8 answers
259 views
Hi,

Is there a way to show the RadPanelBarItem header to the right instead of left when Orientation="Horizontal". I have only 1 RadPanelBarItem and using it to create a search panel on the left that can be collapsed/expanded.

Thanks

            <telerik:RadPanelBar Grid.Column="0" VerticalAlignment="Stretch" Orientation="Horizontal">
                <telerik:RadPanelBarItem Header="Search" IsExpanded="True" HorizontalContentAlignment="Center">
                            <StackPanel Orientation="Horizontal">
                                <telerik:RadComboBox>
                                    <telerik:RadComboBoxItem Content="Item 1" IsSelected="True" />
                                </telerik:RadComboBox>
                            </StackPanel>
                </telerik:RadPanelBarItem>
            </telerik:RadPanelBar>
Ram
Top achievements
Rank 1
 answered on 17 Dec 2014
1 answer
83 views
Hello,
in an application, I need to display a tool-tip for each column header.
To do so I have defined the column Header property to contain a special-made control that, amongst other, define tool-tip for the header.

Doing so has 2 problems:

  1. The button displayed when the user groups by the column only display a bitmap of the column header. This means, for example, that if the column is not wide enough, the displayed text is truncated.

  2. More important: if the column width is too small, the text is not displayed at all on the column header. But, when grouping by this column, the application crashes: ArgumentOutOfRangeException: The parameter value must be greater than zero.\r\nParameter name: pixelWidth.
The stack of this error is:
   at System.Windows.Media.Imaging.RenderTargetBitmap..ctor(Int32 pixelWidth, Int32 pixelHeight, Double dpiX, Double dpiY, PixelFormat pixelFormat)
   at Telerik.Windows.Controls.FrameworkElementToImageConverter.ToImage(FrameworkElement element)
   at Telerik.Windows.Controls.GridView.GridViewGroupPanel.ConvertFrameworkElementToImage(FrameworkElement frameworkElement)
   at Telerik.Windows.Controls.GridView.GridViewGroupPanel.GetEffectiveContentForDescriptor(IGroupDescriptor descriptor)
   at Telerik.Windows.Controls.GridView.GridViewGroupPanel.PrepareContainerForItemOverride(DependencyObject element, Object item)
   at System.Windows.Controls.ItemsControl.MS.Internal.Controls.IGeneratorHost.PrepareItemContainer(DependencyObject container, Object item)
   at System.Windows.Controls.Panel.AddChildren(GeneratorPosition pos, Int32 itemCount)
   at System.Windows.Controls.Panel.OnItemsChangedInternal(Object sender, ItemsChangedEventArgs args)
   at System.Windows.Controls.Panel.OnItemsChanged(Object sender, ItemsChangedEventArgs args)
   at System.Windows.Controls.ItemContainerGenerator.OnItemAdded(Object item, Int32 index)
   at System.Windows.Controls.ItemContainerGenerator.OnCollectionChanged(Object sender, NotifyCollectionChangedEventArgs args)
   at System.Windows.WeakEventManager.ListenerList`1.DeliverEvent(Object sender, EventArgs e, Type managerType)
   at System.Windows.WeakEventManager.DeliverEventToList(Object sender, EventArgs args, ListenerList list)
   at System.Windows.WeakEventManager.DeliverEvent(Object sender, EventArgs args)
   at System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)
   at System.Windows.Data.CollectionView.OnCollectionChanged(NotifyCollectionChangedEventArgs args)
   at System.Windows.WeakEventManager.ListenerList`1.DeliverEvent(Object sender, EventArgs e, Type managerType)
   at System.Windows.WeakEventManager.DeliverEventToList(Object sender, EventArgs args, ListenerList list)
   at System.Windows.WeakEventManager.DeliverEvent(Object sender, EventArgs args)
   at System.Windows.Data.CollectionView.OnCollectionChanged(NotifyCollectionChangedEventArgs args)
   at System.Windows.Data.ListCollectionView.ProcessCollectionChangedWithAdjustedIndex(NotifyCollectionChangedEventArgs args, Int32 adjustedOldIndex, Int32 adjustedNewIndex)
   at System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)
   at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
   at Telerik.Windows.Data.RadObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
   at Telerik.Windows.Data.ObservableItemCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
   at Telerik.Windows.Data.RadObservableCollection`1.InsertItem(Int32 index, T item)
   at Telerik.Windows.Controls.GridView.GridViewDataControl.PerformGrouping(IGroupDescriptor descriptor, Nullable`1 insertionIndex, GroupingEventAction action)
   at Telerik.Windows.Controls.GridView.GridViewDataControl.<>c__DisplayClass77.<RequestGrouping>b__76()
   at Telerik.Windows.Controls.CursorManager.PerformTimeConsumingOperation(FrameworkElement frameworkElement, Action action)
   at Telerik.Windows.Controls.GridView.GridViewDataControl.RequestGrouping(IGroupDescriptor descriptor, Nullable`1 insertionIndex, GroupingEventAction action)
   at Telerik.Windows.Controls.GridView.DragDropController.OnGroupPanelDrop(Object sender, DragEventArgs e)
   at Telerik.Windows.DragDrop.DragEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at Telerik.Windows.DragDrop.IInputElementExtensions.RaiseEvent(DependencyObject d, RoutedEventArgs routedEventArgs)
   at Telerik.Windows.DragDrop.DragDropManager.DelegateHelper.OnDragEventHandler(Object sender, DragEventArgs e)
   at Telerik.Windows.DragDrop.DragDropManager.DelegateHelper.OnDrop(Object sender, DragEventArgs e)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.OleDropTarget.RaiseDragEvent(RoutedEvent dragEvent, Int32 dragDropKeyStates, Int32& effects, DependencyObject target, Point targetPoint)
   at System.Windows.OleDropTarget.MS.Win32.UnsafeNativeMethods.IOleDropTarget.OleDrop(Object data, Int32 dragDropKeyStates, Int64 point, Int32& effects)
   at MS.Win32.UnsafeNativeMethods.DoDragDrop(IDataObject dataObject, IOleDropSource dropSource, Int32 allowedEffects, Int32[] finalEffect)
   at System.Windows.OleServicesContext.OleDoDragDrop(IDataObject dataObject, IOleDropSource dropSource, Int32 allowedEffects, Int32[] finalEffect)
   at System.Windows.DragDrop.DoDragDrop(DependencyObject dragSource, Object data, DragDropEffects allowedEffects)
   at Telerik.Windows.DragDrop.DragDropManager.DoDragDrop(DependencyObject dragSource, Object data, DragDropEffects allowedEffects, DragDropKeyStates initialKeyState, Object dragVisual, Point relativeStartPoint, Point dragVisualOffset)
   at Telerik.Windows.DragDrop.DragInitializer.StartDrag()
   at Telerik.Windows.DragDrop.DragInitializer.StartDragPrivate(UIElement sender)
   at Telerik.Windows.DragDrop.DragInitializer.DragSourceOnMouseMove(Object sender, MouseEventArgs e)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
   at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   at System.Windows.Application.RunInternal(Window window)
   at System.Windows.Application.Run()
   at Fivb.Vis.App.Main()
It seems that the bitmap snapshot has a negative width.

Both problems can be easily solved if we can define the text to display in the button grouping.
Or perhaps you have a better solution...
Nick
Telerik team
 answered on 17 Dec 2014
11 answers
230 views
Hi,

Does WPF RadGridView support gesturing (touch support)? I.e. will scrolling happen if we swipe our finder/stylus on the RadGridView?

In our application, the grid scrolls with mouse, but when we try to use touch (finger as well as stylus) for scrolling, the grid does not scroll.

Please advice.

Thanks.
Nick
Telerik team
 answered on 17 Dec 2014
0 answers
126 views
Hi,

c# .NET 4.5, WPF, RadGridView

I have a RadGridView in a UserControl. I bind an ItemsSource on my Grid, which uses a Template with a RadButton on it. The Button
use a command of the main DataContext and in the CommandParameter i send the name of the usercontrol which should be loaded on
the the next TabItem. So far so good.

But how do i get the item of the RadGridView where i pressed the RadButton, i want to send the item ID with my command to load the
Task on the next TabItem?

Thanks
Best Regards
Rene
ITA
Top achievements
Rank 1
 asked on 17 Dec 2014
1 answer
59 views
So I created a custom Itool that is implemented within the ImageEditor. When you attach a tool any other tool that was attached becomes Detached. I need to have the ability to  have multiple tools attached to the Image Editor at the same time.. so the user could see multiple Rectangles around areas of the image ,as my tool is similar to the crop tool but does not crop my image, at the same time. They would be distinguished by there color and if they have the ability to change the size via the mouse. so if 2 were up andthe user moused down within 1 of them that tool would be come the active tool and the user could modify it.

So when I try to attach another instance of my tool the first one becomes detached. there must be a way to override this behavior?

Any help is greatly appreciated.

-Traci
Todor
Telerik team
 answered on 17 Dec 2014
8 answers
269 views
Hello,

I've had the need to programmatically customize and lock the provided Styles Gallery to set of my choosing.

I need to do this in order to lock the users into a predefined set of styles.  I intend the result to be exported as html, and it would be nice on the design surface that what the user sees matches (as close as I can) preexisting css rules.  I like the existing WYSIWYG feature, but for the current project at hand that is irrelevant right now.

Are there any plans to expose the APIs for the styles gallery?  Am I missing something obvious if this is already doable?

Thanks,

Lester
Todor
Telerik team
 answered on 17 Dec 2014
1 answer
135 views
I am trying to get up and running with the ribbon view and cannot get it to render to the screen. Can you please let me know what I am doing wrong. My project source is attached and below is a the screen I get when I run the application..

<Window x:Class="TelerikWpfTest.MainWindow"
                xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                Title="Ribbon and Docking Test" Height="600" Width="800">
    <Grid>
        <telerik:RadRibbonView ApplicationName="Ribbon and Docking Test">
            <telerik:RadRibbonTab Header="Home">
                <telerik:RadRibbonGroup Header="Clipboard"/>
            </telerik:RadRibbonTab>
            <telerik:RadRibbonTab Header="View"/>
        </telerik:RadRibbonView>
    </Grid>
</Window>



Kiril Vandov
Telerik team
 answered on 17 Dec 2014
3 answers
229 views
Hi,

In my scenario the path of the application don't contains any dll.
The application overrides OnResolveAssembly granting that all work good and loading the dlls from others path.
Except the RadRichTextBox!

How to adopt a similar strategy with MEF and assign dinamically the dll positions?







Marcello
Top achievements
Rank 1
Iron
 answered on 17 Dec 2014
3 answers
195 views
Hi,

I am using a Timeline to show and edit Employee shift times (see attachment).

The user is able to use the TAB key to go through every Time in order and works great until the schedule is scrolled.

Once the user scrolls the schedule the TAB order is random and takes the user to random employees / days.

I am guessing this has got to do with virtualization and container reuse in the control.

Is there a way to turn off virtualization? My data set will always be small so the users will be able to cope with a less responsive control if they can use the TAB key properly.

Thanks
Anthony
Rosi
Telerik team
 answered on 16 Dec 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?