Telerik Forums
UI for WPF Forum
0 answers
128 views

Hello everyone,

we need for a project the possibility to define the TimelineViewDefinition DayStartTime at 6 o'clock DayEndTime also at 6 o'clock. If we set start to 6 and end to 22, the time period from 22 to 6 o'clock is missing. We work from 10 pm to 6 am on night shift and need the possibility to enter appointments. 
With the following settings:

            var timelineView = new TimelineViewDefinition()
            {
                ApplyStartEndTimeToEachDay = true,
                MinorTickLength = new FixedTickProvider(new DateTimeInterval(0, 8, 0, 0, 0)),
                MajorTickLength = new FixedTickProvider(new DateTimeInterval(0, 0, 2, 0, 0)),
                GroupTickLength = new FixedTickProvider(new DateTimeInterval(2, 0, 0)),
                DayStartTime = new TimeSpan(6, 0, 0),
                DayEndTime = new TimeSpan(6, 0, 0)
                
            };

The default time is used except for the first day.
Can anyone help me with this?

Thanks!

Stefan
Top achievements
Rank 1
 asked on 20 Apr 2020
1 answer
230 views

Hi,

How can I disable the F4 shortcut on the NavView. I'm using F1-F8 in my App already. 

Thanks,

Richard

Kalin
Telerik team
 answered on 20 Apr 2020
1 answer
103 views

Hello, I used UniformGrid in custom shape1 to add an indefinite number of custom shape2, and then added several connectors in shape1. However, the position displayed by the connector and the position of the connection line are inconsistent, what should I do, thank you.

 

shape1 :

<Style TargetType="{x:Type local:Residential2}">
        <Setter Property="BorderThickness" Value="4" />
        <Setter Property="BorderBrush" Value="#6C666666" />
        <Setter Property="Width" Value="500" />
        <Setter Property="Height" Value="200" />
        <Setter Property="HorizontalAlignment" Value="Center" />
        <Setter Property="Margin" Value="0" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type local:Residential2}">
                    <Grid   VerticalAlignment="Top" Name="root">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="ConnectorsAdornerVisibilityStates">
                                <VisualState x:Name="ConnectorsAdornerCollapsed"/>
                                <VisualState x:Name="ConnectorsAdornerVisible">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="ConnectorsControl" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Grid.Background>
                            <DrawingBrush  Stretch="Uniform" AlignmentY="Top">
                                <DrawingBrush.Drawing>
                                    <DrawingGroup>
                                        <DrawingGroup.Children>
                                            <GeometryDrawing Brush="#FFFFFFFF" Geometry="F1 M 252.102,0.750854L 468.17,0.750854">
                                                <GeometryDrawing.Pen>
                                                    <Pen LineJoin="Round" Brush="#FF000000"/>
                                                </GeometryDrawing.Pen>
                                            </GeometryDrawing>
                                            <GeometryDrawing Brush="#FFFFFFFF" Geometry="F1 M 0.5,0.75061L 216.568,0.75061">
                                                <GeometryDrawing.Pen>
                                                    <Pen LineJoin="Round" Brush="#FF000000"/>
                                                </GeometryDrawing.Pen>
                                            </GeometryDrawing>
                                            <GeometryDrawing Brush="#FFFFFFFF" Geometry="F1 M 216.05,32.7709L 216.05,0.770874">
                                                <GeometryDrawing.Pen>
                                                    <Pen LineJoin="Round" Brush="#FF000000"/>
                                                </GeometryDrawing.Pen>
                                            </GeometryDrawing>
                                            <GeometryDrawing Brush="#FFFFFFFF" Geometry="F1 M 216.281,32.5712L 226.959,43.2485">
                                                <GeometryDrawing.Pen>
                                                    <Pen LineJoin="Round" Brush="#FF000000"/>
                                                </GeometryDrawing.Pen>
                                            </GeometryDrawing>
                                            <GeometryDrawing Brush="#FFFFFFFF" Geometry="F1 M 215.958,32.6797L 205.28,43.3569">
                                                <GeometryDrawing.Pen>
                                                    <Pen LineJoin="Round" Brush="#FF000000"/>
                                                </GeometryDrawing.Pen>
                                            </GeometryDrawing>
                                            <GeometryDrawing Brush="#FFFFFFFF" Geometry="F1 M 216.311,38.1578L 226.988,48.8352">
                                                <GeometryDrawing.Pen>
                                                    <Pen LineJoin="Round" Brush="#FF000000"/>
                                                </GeometryDrawing.Pen>
                                            </GeometryDrawing>
                                            <GeometryDrawing Brush="#FFFFFFFF" Geometry="F1 M 215.986,38.2665L 205.309,48.9437">
                                                <GeometryDrawing.Pen>
                                                    <Pen LineJoin="Round" Brush="#FF000000"/>
                                                </GeometryDrawing.Pen>
                                            </GeometryDrawing>
                                            <GeometryDrawing Brush="#FFFFFFFF" Geometry="F1 M 216.05,60.4674L 216.05,37.5924">
                                                <GeometryDrawing.Pen>
                                                    <Pen LineJoin="Round" Brush="#FF000000"/>
                                                </GeometryDrawing.Pen>
                                            </GeometryDrawing>
                                            <GeometryDrawing Brush="#FFFFFFFF" Geometry="F1 M 209.036,53.5631L 223.178,67.7052">
                                                <GeometryDrawing.Pen>
                                                    <Pen LineJoin="Round" Brush="#FF000000"/>
                                                </GeometryDrawing.Pen>
                                            </GeometryDrawing>
                                            <GeometryDrawing Brush="#FFFFFFFF" Geometry="F1 M 223.178,53.5629L 209.035,67.7051">
                                                <GeometryDrawing.Pen>
                                                    <Pen LineJoin="Round" Brush="#FF000000"/>
                                                </GeometryDrawing.Pen>
                                            </GeometryDrawing>
                                            <GeometryDrawing Brush="#FFFFFFFF" Geometry="F1 M 216.815,109.857L 216.815,141.857">
                                                <GeometryDrawing.Pen>
                                                    <Pen LineJoin="Round" Brush="#FF000000"/>
                                                </GeometryDrawing.Pen>
                                            </GeometryDrawing>
                                            <GeometryDrawing Brush="#FFFFFFFF" Geometry="F1 M 216.584,110.057L 205.907,99.3799">
                                                <GeometryDrawing.Pen>
                                                    <Pen LineJoin="Round" Brush="#FF000000"/>
                                                </GeometryDrawing.Pen>
                                            </GeometryDrawing>
                                            <GeometryDrawing Brush="#FFFFFFFF" Geometry="F1 M 216.911,109.949L 227.588,99.2714">
                                                <GeometryDrawing.Pen>
                                                    <Pen LineJoin="Round" Brush="#FF000000"/>
                                                </GeometryDrawing.Pen>
                                            </GeometryDrawing>
                                            <GeometryDrawing Brush="#FFFFFFFF" Geometry="F1 M 216.555,104.47L 205.877,93.7931">
                                                <GeometryDrawing.Pen>
                                                    <Pen LineJoin="Round" Brush="#FF000000"/>
                                                </GeometryDrawing.Pen>
                                            </GeometryDrawing>
                                            <GeometryDrawing Brush="#FFFFFFFF" Geometry="F1 M 216.881,104.362L 227.559,93.6846">
                                                <GeometryDrawing.Pen>
                                                    <Pen LineJoin="Round" Brush="#FF000000"/>
                                                </GeometryDrawing.Pen>
                                            </GeometryDrawing>
                                            <GeometryDrawing Brush="#FFFFFFFF" Geometry="F1 M 216.815,82.1608L 216.815,105.036">
                                                <GeometryDrawing.Pen>
                                                    <Pen LineJoin="Round" Brush="#FF000000"/>
                                                </GeometryDrawing.Pen>
                                            </GeometryDrawing>
                                            <GeometryDrawing Brush="#FFFFFFFF" Geometry="F1 M 207.16,72.4357L 216.804,82.08">
                                                <GeometryDrawing.Pen>
                                                    <Pen LineJoin="Round" Brush="#FF000000"/>
                                                </GeometryDrawing.Pen>
                                            </GeometryDrawing>
                                            <GeometryDrawing Brush="#FFFFFFFF" Geometry="F1 M 252.55,32.5L 252.55,0.5">
                                                <GeometryDrawing.Pen>
                                                    <Pen LineJoin="Round" Brush="#FF000000"/>
                                                </GeometryDrawing.Pen>
                                            </GeometryDrawing>
                                            <GeometryDrawing Brush="#FFFFFFFF" Geometry="F1 M 252.781,32.3004L 263.458,42.9777">
                                                <GeometryDrawing.Pen>
                                                    <Pen LineJoin="Round" Brush="#FF000000"/>
                                                </GeometryDrawing.Pen>
                                            </GeometryDrawing>
                                            <GeometryDrawing Brush="#FFFFFFFF" Geometry="F1 M 252.457,32.4088L 241.779,43.0861">
                                                <GeometryDrawing.Pen>
                                                    <Pen LineJoin="Round" Brush="#FF000000"/>
                                                </GeometryDrawing.Pen>
                                            </GeometryDrawing>
                                            <GeometryDrawing Brush="#FFFFFFFF" Geometry="F1 M 252.81,37.8871L 263.487,48.5643">
                                                <GeometryDrawing.Pen>
                                                    <Pen LineJoin="Round" Brush="#FF000000"/>
                                                </GeometryDrawing.Pen>
                                            </GeometryDrawing>
                                            <GeometryDrawing Brush="#FFFFFFFF" Geometry="F1 M 252.485,37.9956L 241.808,48.6729">
                                                <GeometryDrawing.Pen>
                                                    <Pen LineJoin="Round" Brush="#FF000000"/>
                                                </GeometryDrawing.Pen>
                                            </GeometryDrawing>
                                            <GeometryDrawing Brush="#FFFFFFFF" Geometry="F1 M 252.948,103.659L 252.948,37.7872">
                                                <GeometryDrawing.Pen>
                                                    <Pen LineJoin="Round" Brush="#FF000000"/>
                                                </GeometryDrawing.Pen>
                                            </GeometryDrawing>
                                            <GeometryDrawing Brush="#FFFFFFFF" Geometry="F1 M 253.314,109.587L 253.314,141.587">
                                                <GeometryDrawing.Pen>
                                                    <Pen LineJoin="Round" Brush="#FF000000"/>
                                                </GeometryDrawing.Pen>
                                            </GeometryDrawing>
                                            <GeometryDrawing Brush="#FFFFFFFF" Geometry="F1 M 253.083,109.786L 242.406,99.109">
                                                <GeometryDrawing.Pen>
                                                    <Pen LineJoin="Round" Brush="#FF000000"/>
                                                </GeometryDrawing.Pen>
                                            </GeometryDrawing>
                                            <GeometryDrawing Brush="#FFFFFFFF" Geometry="F1 M 253.41,109.678L 264.088,99.0005">
                                                <GeometryDrawing.Pen>
                                                    <Pen LineJoin="Round" Brush="#FF000000"/>
                                                </GeometryDrawing.Pen>
                                            </GeometryDrawing>
                                            <GeometryDrawing Brush="#FFFFFFFF" Geometry="F1 M 253.054,104.2L 242.377,93.5223">
                                                <GeometryDrawing.Pen>
                                                    <Pen LineJoin="Round" Brush="#FF000000"/>
                                                </GeometryDrawing.Pen>
                                            </GeometryDrawing>
                                            <GeometryDrawing Brush="#FFFFFFFF" Geometry="F1 M 253.38,104.091L 264.058,93.4137">
                                                <GeometryDrawing.Pen>
                                                    <Pen LineJoin="Round" Brush="#FF000000"/>
                                                </GeometryDrawing.Pen>
                                            </GeometryDrawing>
                                            <GeometryDrawing Brush="#FFFFFFFF" Geometry="F1 M 217.305,141.292L 253.505,141.292">
                                                <GeometryDrawing.Pen>
                                                    <Pen LineJoin="Round" Brush="#FF000000"/>
                                                </GeometryDrawing.Pen>
                                            </GeometryDrawing>
                                        </DrawingGroup.Children>
                                    </DrawingGroup>
                                </DrawingBrush.Drawing>
                            </DrawingBrush>
                        </Grid.Background>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition></ColumnDefinition>
                            <ColumnDefinition Width="0.17*"></ColumnDefinition>
                            <ColumnDefinition></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                        <Viewbox>
                            <UniformGrid Name="a" Rows="1"   MinWidth="230">
                            </UniformGrid>
                        </Viewbox>
                        <Viewbox  Width="NaN" Height="NaN" Grid.Column="2" >
                            <UniformGrid Name="a1" Rows="1"  MinWidth="230"></UniformGrid>
                        </Viewbox>
                        <StackPanel  Grid.Column="1" Name="sp" Background="AliceBlue"></StackPanel>
                        <primitives:ConnectorsControl x:Name="ConnectorsControl" ItemsSource="{TemplateBinding Connectors}" Visibility="Collapsed" ItemContainerStyle="{TemplateBinding ConnectorStyle}"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

shape1 code:

private void Residential1_Loaded(object sender, RoutedEventArgs e)
       {
 
           ugLeft = this.ChildrenOfType<UniformGrid>().FirstOrDefault();
           ugRight = this.ChildrenOfType<UniformGrid>().LastOrDefault();
           sp = this.ChildrenOfType<StackPanel>().FirstOrDefault();
 
           //ugRight.MinWidth = ugLeft.MinWidth = (this.Width - sp.ActualWidth) / 2;
 
           //var avgWidth = (this.ActualWidth - spWidth) / (count1 + count2);//100
 
           //var avgWidth1 = (this.Width / 2 - spWidth / 2) / count1;
           //var avgWidth2 = (this.Width / 2 - spWidth / 2) / count2;
 
           this.Connectors.Clear();
 
           //var connector = new RadDiagramConnector() { Offset = new Point(0.5, 0.98), Name = $"connector1{this.Id.Replace("-", "")}{1}" };
           //this.Connectors.Add(connector);
 
           for (int i = 0; i < count1; i++)
           {
               var ajs = new AdjacentSpace6();
               ajs.Loaded += Ajs_Loaded;
               ajs.Tag = $"cl{this.Id.Replace("-", "")}-{i}";
               ugLeft.Children.Add(ajs);
               //var offsetx = (avgWidth1 / 2 + i * avgWidth1) / this.Width;
               //var connector = new RadDiagramConnector() { Offset = new Point(offsetx, 0.98), Name = $"connector1{this.Id.Replace("-", "")}{i}" };
               //this.Connectors.Add(connector);
 
 
           }
 
 
 
           //for (int i = 0; i < count2; i++)
           //{
           //    var ajs1 = new AdjacentSpace6();
           //    ug1.Children.Add(ajs1);
           //    var offsetx = (ug.Width + sp.Width + (avgWidth2 / 2 + i * avgWidth2)) / this.Width;
           //    var connector1 = new RadDiagramConnector() { Offset = new Point(offsetx, 0.98), Name = $"connector2{this.Id.Replace("-", "")}{i}" };
           //    this.Connectors.Add(connector1);
           //}
 
       }
 
       private void Ajs_Loaded(object sender, RoutedEventArgs e)
       {
           var ajs = sender as AdjacentSpace6;
           UniformGrid ug = null;
           double offset = 0d;
           if (ajs.Tag.ToString().StartsWith("cl"))
           {
               ug = ugLeft;
           }
           else
           {
               ug = ugRight;
           }
           var avgWidth1 = (this.Width / 2 - sp.ActualWidth / 2) / count1;
           int index = int.Parse(ajs.Tag.ToString().Split('-')[1]);
           offset = (avgWidth1 / 2 + index * avgWidth1) / this.Width;
           var connector = new RadDiagramConnector() { Offset = new Point(offset, 0.98), Name = ajs.Tag.ToString().Replace("-", "") };
           this.Connectors.Add(connector);
 
 
       }
Li
Top achievements
Rank 1
 answered on 19 Apr 2020
6 answers
154 views
Somehow, pasting content from MS Excel seems to mess up something. For testing purposes, I set up a Window, using the Wizard for the RadRichTextBox, selecting "Word Processor", leaving all other choices at their defaults. Additionally, I added an event handler for the "CommandError" event of the RadRichTextBox.

If I try to paste from Excel, the CommandError event is triggered (except, when only one cell is copied) and the Exception in it has this StackTrace:

System.NullReferenceException: Object reference not set to an instance of an object.
   at Telerik.Windows.Documents.Model.RadDocument.SplitCurrentParagraph(DocumentPosition position, Paragraph paragraphToCopyPropertiesFrom) in c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Documents\Core\Model\RadDocument.cs:line 5251
   at Telerik.Windows.Documents.Model.RadDocument.InsertFragmentInternal(DocumentPosition position, DocumentFragment fragment) in c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Documents\Core\Model\RadDocument.cs:line 5318
   at Telerik.Windows.Documents.Model.RadDocument.InsertFragment(DocumentFragment fragment, DocumentPosition position) in c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Documents\Core\Model\RadDocument.cs:line 1463
   at Telerik.Windows.Documents.Model.RadDocument.InsertFragment(DocumentFragment fragment) in c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Documents\Core\Model\RadDocument.cs:line 1425
   at Telerik.Windows.Documents.Commands.InsertFragmentCommand.ExecuteInsertCore(InsertFragmentCommandContext context) in c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Documents\Core\Commands\InsertFragmentCommand.cs:line 10
   at Telerik.Windows.Documents.Commands.InsertCommandBase`1.ExecuteOverride(T context) in c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Documents\Core\Commands\InsertCommandBase.cs:line 22
   at Telerik.Windows.Documents.Commands.DocumentCommandBase`1.Execute(DocumentCommandContextBase context) in c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Documents\Core\Commands\DocumentCommandBase.cs:line 50

The pasted content is not visible. But after for example resizing the window, or scrolling the document, it gets visible. But from now on the editor is more or less unusable:
  • The visible caret stays at the last position, no matter where I click in the document (but the "real position" moves)
  • All changes, made in the editor, like typing text, inserting images, get only visible, after the again the window is resized or the document is scrolled.
  • Those changes are made, where the "real position" of the caret is, but the caret is shown still either at the original position before the paste or not at all.
The same happens with the demo application!
Is this a bug or am I missing some special requirements to paste from Excel?
John
Top achievements
Rank 1
 answered on 17 Apr 2020
2 answers
97 views
Hi,
after we created a new element in our binded List<> for the GridView this elemt doesn't show up in the UI. How can we trigger a refresh or something? Does this need to do manually, or should this work automatically? After reloading the complete page the missing elements show upcorrently.

Best regards,
Thomas
Thomas
Top achievements
Rank 1
 answered on 17 Apr 2020
4 answers
158 views

Hi, i'm using PdfViewer and an unhandled ArgumentNullException exception appears periodically on some files.

I saw that there was a already similar error, written in this post   https://www.telerik.com/forums/argumentnullexception-after-scrolling-pdf-document   and that error has been fixed. But i'm using the new version of telerik - 2019.2.618. This error is reproduced in the examples from "xaml-sdk", on FirstLook project.

The error can be reproduced by downloading the file from this link   https://beginners.re/RE4B-EN.pdf. On the 39 page below there is a link that does not have a destination   -   "29 STMFD 30". The 30 link does not link anywhere, and when PdfViewer try to create destination, it falls with exception.
I check the Destination property in GoToActionOld object before create object Destination. It helped for me.

private static GoToAction CreateGoToAction(GoToActionOld source, PdfFormatProvider provider)
{
    Guard.ThrowExceptionIfNull(source, "source");
    if (source.Destination == null)
    {
        return null;
    }
    return new GoToAction
    {
        Destination = CreateDestination(source.Destination, provider)
    };
}

Here is a StackTrace:
System.ArgumentNullException
  HResult=0x80004003
  Сообщение = Значение не может быть неопределенным.
Имя параметра: source
  Источник = Telerik.Windows.Documents.Fixed
  Трассировка стека:
   at Telerik.Windows.Documents.Fixed.FormatProviders.Old.Pdf.PdfElementToFixedElementTranslator.CreateDestination(DestinationOld source, PdfFormatProvider provider)
   at Telerik.Windows.Documents.Fixed.FormatProviders.Old.Pdf.PdfElementToFixedElementTranslator.CreateGoToAction(GoToActionOld source, PdfFormatProvider provider)
   at Telerik.Windows.Documents.Fixed.FormatProviders.Old.Pdf.PdfElementToFixedElementTranslator.CreateLinkAnnotation(LinkOld source, PdfFormatProvider provider)
   at Telerik.Windows.Documents.Fixed.FormatProviders.Old.Pdf.PdfElementToFixedElementTranslator.CreateAnnotation(AnnotationOld source, PageOld page, PdfFormatProvider provider)
   at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.PdfFormatProvider.CopyAnnotationsFromPageSource(PageOld source, AnnotationCollection annotations)
   at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.PdfFormatProvider.LoadPageAnnotations(RadFixedPage page)
   at Telerik.Windows.Documents.Fixed.Model.RadFixedPage.LoadAnnotations()
   at Telerik.Windows.Documents.Fixed.Model.Internal.RadFixedPageInternal.Arrange()
   at Telerik.Windows.Documents.Fixed.FormatProviders.Old.Pdf.PdfReader.ThreadSafePageContentManagerOld.LoadPageContent(RadFixedPage page)
   at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Import.LoadOnDemandPagesCacheManager.BeginUsingPage(RadFixedPage page)
   at Telerik.Windows.Documents.Fixed.UI.VisiblePagesCacheManager.UpdateCachedPages(IEnumerable`1 visiblePages)
   at Telerik.Windows.Documents.UI.FixedDocumentPagesPresenter.ArrangeOverride(Size arrangeBounds)
   at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
   at System.Windows.UIElement.Arrange(Rect finalRect)
   at System.Windows.ContextLayoutManager.UpdateLayout()
   at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.DispatcherOperation.InvokeImpl()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Threading.DispatcherOperation.Invoke()
   at System.Windows.Threading.Dispatcher.ProcessQueue()
   at System.Windows.Threading.Dispatcher.WndProcHook(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 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, 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.RunDispatcher(Object ignore)
   at System.Windows.Application.RunInternal(Window window)
   at FirstLook.App.Main()

Please check and correct the error, because I have to keep a separate fixed library.

Martin
Telerik team
 answered on 17 Apr 2020
1 answer
191 views

Telerik version 2020.1.218.45
App.config
dpiAware set true.

ToolWindow AllowTransparency = false.

1.Create the ToolWindow with owner MainWindow on the main monitor with dpi 125.
2. Drag the window onto the second monitor with 100 DPI.
3. I remove the Owner (set null).

Result issue:
Changes the size and position (applies the setting of the monitor DPI)

If you enable the setting dpiAwareness PerMonitor, (after window owner set null) a black square flickers.

boris
Top achievements
Rank 1
 answered on 16 Apr 2020
1 answer
116 views
Hello, I set the font of the paragraph in the richbox to  FangSong(仿宋).But when I save it as docx and opened it  in Word,  it became SimSun(宋体). What do I need to set ? Help me Please,Thanks
Tanya
Telerik team
 answered on 16 Apr 2020
7 answers
266 views

Hi,

 

I am using RadScheduleView for WPF. I have a requirement where I have to set a warning icon for overlapping appointments only. I tried with AppointmentItemContentTemplate="{StaticResource AppointmentTemplate}". However the icon gets displayed in all appointments. Is there any way to set style in such a way that only slots with multiple appointments have warning icon. Please help. 

Attaching the image.

Divya
Top achievements
Rank 1
 answered on 16 Apr 2020
8 answers
424 views
I would like the RadPane to stay the same size when the users drags it to make it go from being docked to being floating, currently it resizes itself. I've seen this thread, but that does not cover how to actually keep it the same size as when it was docked. Possibly another technique would be to use the attached property RadDocking.FloatingSize and bind it to something rather than setting an absolute value, I don't know how this would work though.

thanks
Dinko | Tech Support Engineer
Telerik team
 answered on 16 Apr 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?