Hello!
I accidentally click the release button so that "https://www.telerik.com/forums/ribbonwindow-no-transparent", I want to help delete it.
I use the Material theme in my RibbonWindow.
When I Producing my program.The window has a White border.
I compare it to demo,It seems to be a shadow, but it's no transparent.
I tried to modify the transparency of the window. The window was not transparent, and all the colors were white.
I think the problem is that transparency is replaced by white, what should I do to correct this problem
When the PDFViewer is using FixedDocumentPagesPresenter it tends to change position (it jumps to different pages) when a page is rotated and the same thing can also occur when zooming in/out.
To see this, simply open any PDF with more than a few pages - the one I'm currently testing with has 18 pages, move away from the first few pages (e.g. go to page 12), and rotate the page. The position jumps several pages and is restored if you rotate 360 degs. In my test doc, it jumps to page 16 when rotated 90 / 270 degrees and back to page 12 when rotated 0 / 180 degrees.
There's a similar problem when zooming in, but I think you need a document with a few hundred pages to see this.
It all seems to be fine when using FixedDocumentSinglePageViewPresenter.
Any chance you can fix this?
Thanks.
It seems like there's a limitation to Cluster locations and a bug regarding its Bounds. I noticed that the location of a Cluster is always at the location of the first item added to it. I would expect that it actually would be at the center of all added items. Looking at the ClusterData.Add method it seems like it would be easy to update the Cluster-location there since the bounds are updated each time a new item is added. I tried solving it by overriding the DefaultClusterGenerator like the code below, but then I noticed that the calculation for the Bounds are actually wrong in the ClusterData.Add method. The last Math.Min should be a Math.Max. In the end I had to calculate the Bounds myself, and then update the Cluster Location.
public
class
ClusterGenerator : DefaultClusterGenerator
{
public
override
ClusterData CreateCluster(Location center,
object
item)
{
var clusterData =
base
.CreateCluster(center, item);
clusterData.AutoCalculateBounds =
true
;
clusterData.PropertyChanged +=
this
.ClusterDataOnPropertyChanged;
return
clusterData;
}
private
void
ClusterDataOnPropertyChanged(
object
sender, PropertyChangedEventArgs args)
{
// Check if an item has been added or removed
if
(args.PropertyName == nameof(ClusterData.Count))
{
var clusterData = sender
as
ClusterData;
if
(!clusterData.Bounds.IsEmpty)
{
clusterData.Location = clusterData.Bounds.Center;
}
}
}
}
Your Q1 2016 example references the "MyFilterDescriptorBindingBehavior" in the "Example.xaml" file of the "DataFilter.Default Filter Editors" example. However, that is nowhere to be found.
I need to add a FilterDescriptor using code that is displayed in the control for the user to interact with. This seems like the example that would cover the scenario but the documentation is incomplete. Can you help me with this?
Joel
I have a RadTreeView built using Hierarchical self-referenced data, positioned within a popup. There is an EventToCommandBehaviour built within the Tree exactly as:https://www.telerik.com/forums/doubleclick-in-mvvm-databound-treeview
I am getting no response at all from the event, if I change the control to a ListBox then the event triggers?
Can anyone shed any light on what could be happening.
I have tried various EventName's [Selected, MouseLeftButtonUp, ItemClick, ItemDoubleClick...] nothing triggers it on the RadTreeView
Positioning the Tree directly onto the Page, outside of the Popup - there is still no response to the Event.
Hello! Team,
We have a WPF window in which we're using multiple RichTextBoxes (RTB). We encountered an object reference error while editing text in one of the rtb. Stack trace log attached.
Date Time : 2/27/2018 2:22:12 PM ,
User Name : XXXXXXXX,
NameSpace : Telerik.Windows.Documents.UI ,
Class Name : Telerik.Windows.Documents.UI.DocumentWebLayoutPresenter ,
Method Name : UpdateCaretStyle ,
Exception Message : Object reference not set to an instance of an object. ,
Error Trace : at Telerik.Windows.Documents.UI.DocumentWebLayoutPresenter.UpdateCaretStyle()
at Telerik.Windows.Documents.UI.DocumentWebLayoutPresenter.UpdateCaretSize()
at Telerik.Windows.Documents.UI.DocumentWebLayoutPresenter.DoOnCaretLocationChanged()
at Telerik.Windows.Documents.Utils.SuspendChangingAndChangedActionCounter.InvokeChangedActionInternal()
at Telerik.Windows.Documents.Utils.SuspendChangingAndChangedActionCounter.InvokeChanged()
at Telerik.Windows.Documents.DocumentPosition.OnLocationChanged(Boolean changesCursorInitialLocation)
at Telerik.Windows.Documents.DocumentPosition.CallOnPositionChanged(Boolean changesCursorInitialLocation)
at Telerik.Windows.Documents.Selection.MouseSelectionHandler.SetDocumentPosition(DocumentPosition documentPosition, Point position, Boolean moveToNextIfOutOfBox)
at Telerik.Windows.Documents.Selection.MouseSelectionHandler.RegisterDocumentMouseDown(Boolean ctrlPressed, Boolean shiftPressed, Point position, UIElement originalSource, SourceType source)
at Telerik.Windows.Documents.UI.DocumentPresenterBase.HandleMouseLeftButtonDownOnPosition(Point position, UIElement originalSource, SourceType source)
at Telerik.Windows.Documents.UI.DocumentPresenterBase.Owner_MouseLeftButtonDown(Object sender, MouseButtonEventArgs 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.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
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) Inner Exception:
SourceFilePath: c:\Builds\13\AppPath\App.xaml.cs
RTB configuration:
<
telerik:RadRichTextBox
x:Name
=
"txtContent"
IsFocusable
=
"True"
PreviewKeyDown
=
"txtContent_PreviewKeyDown"
AutomationProperties.AutomationId
=
"{Binding TagValue,StringFormat=Comment_{0},RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}"
BorderThickness
=
"0"
BorderBrush
=
"White"
IsSpellCheckingEnabled
=
"True"
DocumentInheritsDefaultStyleSettings
=
"True"
GotFocus
=
"txtContent_GotFocus"
LostFocus
=
"txtContent_LostFocus"
DocumentContentChanged
=
"txtContent_DocumentContentChanged"
HorizontalContentAlignment
=
"Left"
IsContextMenuEnabled
=
"True"
MouseLeave
=
"txtContent_MouseLeave"
PreviewMouseRightButtonDown
=
"txtContent_PreviewMouseRightButtonDown"
KeyDown
=
"txtContent_KeyDown"
Background
=
"Transparent"
FontFamily
=
"Georgia (Body)"
IsSelectionMiniToolBarEnabled
=
"False"
AcceptsReturn
=
"True"
ScrollViewer.VerticalScrollBarVisibility
=
"Auto"
ScrollViewer.HorizontalScrollBarVisibility
=
"Auto"
Tag
=
"{Binding TagValue}"
MouseMove
=
"txtContent_MouseMove"
>
</
telerik:RadRichTextBox
>
Another issue with this exception is that we're not able to isolate exact steps to reproduce the issue.
As is seen in the logs the exception is not coming from any of our custom methods, its coming from some inbuild dll method of telerik. So, please suggest what could be causing this issue.
Regards
Tushar