Telerik Forums
UI for WPF Forum
3 answers
177 views

 

I have 4 machines 2 Dev with VS / Telerik and 2 Test both are clean Win 10 machines. When I run the project below in Dev it works perfectly but in Test the theme get's all screwed up and goes mostly transparent.

 

I have tried this with couple of other themes and it works fine and I have tried it with the Tab Control rather than the TabbedWindow and that also works. It looks like a combination of Fluent and TabbedWindow breaks.

 

To recreate, make a simple 1 page App, add the TabbedWindow and some content, then set the Fluent Theme in the code behind. 

You have to test this on a "clean" machine, without VS or Telerik installed for it to break.

 <Grid>
  <telerik:RadTabbedWindow >
     <telerik:RadTabbedWindow.Items>
          <telerik:RadTabItem Header="Test Tab">
                <telerik:RadGridView />
          </telerik:RadTabItem>
      </telerik:RadTabbedWindow.Items>
   </telerik:RadTabbedWindow >
 </Grid>

 

public MainWindow()
        {
            StyleManager.ApplicationTheme = new FluentTheme();
            InitializeComponent();
        }

 

Dinko | Tech Support Engineer
Telerik team
 answered on 26 Jun 2019
1 answer
175 views

Hey,

currently I'm trying to implement the RadExpressionEditor for creating custom Grid view groups. Everything is working fine besides the ExpressionChanged event of the RadExpressionEditor. The event is not called every time the expression changed. If I enter the following expression:

"Sample: " + GetFormattedField("1282", "N2")

Expression changed is called.

if I remove the last bracket ExpressionChanged gets fired and the expression is invalid (this behaviour is correct). If I add the bracket again, ExpressionChanged IS NOT fired. This behaviour occurse in different scenarios. This makes it difficult to trust the system, because we have a lot of invalid expressions, even a valid expression is entered.

Thank you!

Ivan Petrov
Telerik team
 answered on 26 Jun 2019
0 answers
158 views

As image attached ,when item is dragged for reorder,drag indicator is cover whole column(as red box shown) but not specific column and row(as green box shown).Is there are some workaround to fix that? 

<Window.Resources>
        <Style x:Key="DraggableListBoxItem" TargetType="telerik:RadListBoxItem">
            <Setter Property="telerik:DragDropManager.AllowCapturedDrag" Value="True"/>
        </Style>
    </Window.Resources>
 
<telerik:RadListBox x:Name="scanList" KeyboardNavigation.DirectionalNavigation="None" KeyboardNavigation.AcceptsReturn="False" ItemsSource="{Binding Path=Scans,Mode=TwoWay}" SelectionMode="Multiple"  ScrollViewer.VerticalScrollBarVisibility="Hidden" ScrollViewer.HorizontalScrollBarVisibility="Disabled" CanKeyboardNavigationSelectItems="False" ItemContainerStyle="{StaticResource DraggableListBoxItem}">
        <telerik:RadListBox.DragDropBehavior>
            <telerik:ListBoxDragDropBehavior telerik:TouchManager.DragStartTrigger="TouchMove"/>
        </telerik:RadListBox.DragDropBehavior>
        <telerik:RadListBox.ItemsPanel>
            <ItemsPanelTemplate>
                <telerik:VirtualizingWrapPanel/>
            </ItemsPanelTemplate>
        </telerik:RadListBox.ItemsPanel>
        <telerik:RadListBox.ItemTemplate>
            <DataTemplate>
                <Grid>
                    <Image Source="test.jpg" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                    <Image HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" Width="48" Height="48" Opacity="0.15" Source="/ePresort;component/Icon/edit.png" />
                    <Label Content="{Binding Path=ScanId,Mode=TwoWay}"/>
                </Grid>
            </DataTemplate>
        </telerik:RadListBox.ItemTemplate>
    </telerik:RadListBox>

PS: ItemHeight and ItemWidth of VirtualizingWrapPanel is set by C# code

     

David Yeung
Top achievements
Rank 1
 asked on 26 Jun 2019
5 answers
219 views
When drop the item into Expander-listbox, the indicator will show at the first row, however the item is insert into last row. Please have a look at the attached screenshot
Vladimir Stoyanov
Telerik team
 answered on 25 Jun 2019
1 answer
183 views

Hi. Not sure if this is the place to ask this.

I have a WPF scheduler app built around this scheduleview.

If I want to migrate it to .net core (asp.net), is there a migration path? 

Are the features equivalent? How can I find out how difficult could this be?

Thanks in advance.

Dinko | Tech Support Engineer
Telerik team
 answered on 25 Jun 2019
6 answers
233 views

Hello all,

How can I replace contents using RadRichTextBox/RadDocumentEditor without moving the RadDocument.Selection to the range I want to change?

Moving and restoring the selection seems to work will scroll the document to the new selection position, which is undesired.

After going through similar posts, I found that I can insert content at an arbitrary location using the InsertFragment(DocumentFragment, DocumentPosition) method, but no way to replace a whole range (e.g. defined by two DocumentPosition instances) or even delete the contents of an such a range.

Yiannis
Top achievements
Rank 1
 answered on 24 Jun 2019
2 answers
378 views

I am using the following AnnotationsProvider to generate annotations using data bindings:

<code>
<telerik:RadCartesianChart.AnnotationsProvider>

                                            <telerik:ChartAnnotationsProvider Source="{Binding LocationHistory}">
                                                <telerik:ChartAnnotationDescriptor>
                                                    <telerik:ChartAnnotationDescriptor.Style>
                                                        <Style TargetType="telerik:CartesianPlotBandAnnotation">
                                                            <Setter Property="Axis" Value="{Binding HorizontalAxis, RelativeSource={RelativeSource AncestorType=telerik:RadCartesianChart}}" />
                                                            <Setter Property="From" Value="{Binding Item2}" />
                                                            <Setter Property="To" Value="{Binding Item3}" />
                                                            <Setter Property="Fill" Value="{Binding Item1, Converter={StaticResource LocationToBrushConverter}}" />
                                                        </Style>
                                                    </telerik:ChartAnnotationDescriptor.Style>
                                                </telerik:ChartAnnotationDescriptor>
                                            </telerik:ChartAnnotationsProvider>
                                        </telerik:RadCartesianChart.AnnotationsProvider>
</code>

I have a bunch of LineSeries elements as well inside the RadCartesianChart element which is the parent of this AnnotationsProvider.

I am trying to get these annotations to render below all the LineSeries elements. But I am unable to set the ZIndex propery through ChartAnnotationDescriptor.Style. Could you please let me know if there is a workaround for this issue?

yoochul
Top achievements
Rank 1
 answered on 24 Jun 2019
14 answers
299 views

Hi, 

I would like to be able to begin typing the moment the MultiColumnComboBox has focus, which is not possible at the moment.  I need to click in the control or tap Tab a second time before I can begin typing.

Best Regards,
Hans

Ras Ran
Top achievements
Rank 2
Iron
Veteran
Iron
 answered on 22 Jun 2019
5 answers
309 views

Hi Team,

We are facing the below exception when scheduling an appointment. we are using "2017.2.503.45" version of Telerik.Windows.Controls and VS 2017.

System.InvalidOperationException:

   at System.Windows.Data.CollectionView.DeferRefresh (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
   at Telerik.Windows.Controls.ScheduleView.ScheduleViewDataConnection.SetGroupingAndFiltering (Telerik.Windows.Controls.ScheduleView, Version=2017.2.503.45, Culture=neutral, PublicKeyToken=5803cfa389c90ce7)
   at Telerik.Windows.Controls.ScheduleViewBase.RegenerateGroupHeaders (Telerik.Windows.Controls.ScheduleView, Version=2017.2.503.45, Culture=neutral, PublicKeyToken=5803cfa389c90ce7)
   at Telerik.Windows.Controls.ScheduleViewBase.OnResourceTypesSourcePropertyChanged (Telerik.Windows.Controls.ScheduleView, Version=2017.2.503.45, Culture=neutral, PublicKeyToken=5803cfa389c90ce7)
   at System.Windows.DependencyObject.OnPropertyChanged (WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
   at System.Windows.FrameworkElement.OnPropertyChanged (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
   at System.Windows.DependencyObject.NotifyPropertyChange (WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
   at System.Windows.DependencyObject.UpdateEffectiveValue (WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
   at System.Windows.DependencyObject.InvalidateProperty (WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
   at System.Windows.Data.BindingExpressionBase.Invalidate (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
   at System.Windows.Data.BindingExpression.TransferValue (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
   at MS.Internal.Data.PropertyPathWorker.UpdateSourceValueState (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
   at MS.Internal.Data.PropertyPathWorker.UpdateSourceValueState (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
   at MS.Internal.Data.ClrBindingWorker.OnSourcePropertyChanged (PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
   at System.Windows.WeakEventManager+ListenerList`1.DeliverEvent (WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
   at System.Windows.WeakEventManager.DeliverEventToList (WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
   at System.ComponentModel.PropertyChangedEventManager.OnPropertyChanged (WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
   at ViewModel.WorkerCompleted (SampleModules.Test, Version=2.132.18145.3, Culture=neutral, PublicKeyToken=null)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall (WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen (WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)

Please suggest as to handle this issue.

 

Thanks,

Parameswari

Vladimir Stoyanov
Telerik team
 answered on 21 Jun 2019
2 answers
469 views

Hi,

I have just strated creating a Telerik WPF application, added a RadButton in a RadWindow and whenever I click on any of the buttons on the Window(minimze, maximize or RadButton) the application crashes. The debugg mode throws System.NullReferenceException: 'Object reference not set to an instance of an object.'

I have added references, of which are Telerik.Windows.Controls, Telerik.Windows.Controls.Data, Telerik.Windows.Controls.Input, Telerik.Windows.Controls.Navigation, Telerik.Windows.Data, for Telerik to the project, version: 2019.1.220.45 (of all references).

The call stack shows this output: 

>Telerik.Windows.Controls.Navigation.dll!Telerik.Windows.Controls.WindowBase.OnGotKeyboardFocus(System.Windows.Input.KeyboardFocusChangedEventArgs e)Unknown
 PresentationCore.dll!System.Windows.UIElement.OnGotKeyboardFocusThunk(object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e)Unknown
 PresentationCore.dll!System.Windows.Input.KeyboardFocusChangedEventArgs.InvokeEventHandler(System.Delegate genericHandler, object genericTarget)Unknown
 PresentationCore.dll!System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate handler, object target)Unknown
 PresentationCore.dll!System.Windows.RoutedEventHandlerInfo.InvokeHandler(object target, System.Windows.RoutedEventArgs routedEventArgs)Unknown
 PresentationCore.dll!System.Windows.EventRoute.InvokeHandlersImpl(object source, System.Windows.RoutedEventArgs args, bool reRaised)Unknown
 PresentationCore.dll!System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject sender, System.Windows.RoutedEventArgs args)Unknown
 PresentationCore.dll!System.Windows.UIElement.RaiseTrustedEvent(System.Windows.RoutedEventArgs args)Unknown
 PresentationCore.dll!System.Windows.UIElement.RaiseEvent(System.Windows.RoutedEventArgs args, bool trusted)Unknown
 PresentationCore.dll!System.Windows.Input.InputManager.ProcessStagingArea()Unknown
 PresentationCore.dll!System.Windows.Input.InputManager.ProcessInput(System.Windows.Input.InputEventArgs input)Unknown
 PresentationCore.dll!System.Windows.Input.KeyboardDevice.ChangeFocus(System.Windows.DependencyObject focus, int timestamp)Unknown
 PresentationCore.dll!System.Windows.Input.KeyboardDevice.TryChangeFocus(System.Windows.DependencyObject newFocus, System.Windows.Input.IKeyboardInputProvider keyboardInputProvider, bool askOld, bool askNew, bool forceToNullIfFailed)Unknown
 PresentationCore.dll!System.Windows.Input.KeyboardDevice.Focus(System.Windows.DependencyObject focus, bool askOld, bool askNew, bool forceToNullIfFailed)Unknown
 PresentationCore.dll!System.Windows.Input.KeyboardDevice.Focus(System.Windows.IInputElement element)Unknown
 PresentationCore.dll!System.Windows.UIElement.Focus()Unknown
 PresentationFramework.dll!System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonDown(System.Windows.Input.MouseButtonEventArgs e)Unknown
 PresentationCore.dll!System.Windows.UIElement.OnMouseLeftButtonDownThunk(object sender, System.Windows.Input.MouseButtonEventArgs e)Unknown
 PresentationCore.dll!System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(System.Delegate genericHandler, object genericTarget)Unknown
 PresentationCore.dll!System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate handler, object target)Unknown
 PresentationCore.dll!System.Windows.RoutedEventHandlerInfo.InvokeHandler(object target, System.Windows.RoutedEventArgs routedEventArgs)Unknown
 PresentationCore.dll!System.Windows.EventRoute.InvokeHandlersImpl(object source, System.Windows.RoutedEventArgs args, bool reRaised)Unknown
 PresentationCore.dll!System.Windows.UIElement.ReRaiseEventAs(System.Windows.DependencyObject sender, System.Windows.RoutedEventArgs args, System.Windows.RoutedEvent newEvent)Unknown
 PresentationCore.dll!System.Windows.UIElement.OnMouseDownThunk(object sender, System.Windows.Input.MouseButtonEventArgs e)Unknown
 PresentationCore.dll!System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(System.Delegate genericHandler, object genericTarget)Unknown
 PresentationCore.dll!System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate handler, object target)Unknown
 PresentationCore.dll!System.Windows.RoutedEventHandlerInfo.InvokeHandler(object target, System.Windows.RoutedEventArgs routedEventArgs)Unknown
 PresentationCore.dll!System.Windows.EventRoute.InvokeHandlersImpl(object source, System.Windows.RoutedEventArgs args, bool reRaised)Unknown
 PresentationCore.dll!System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject sender, System.Windows.RoutedEventArgs args)Unknown
 PresentationCore.dll!System.Windows.UIElement.RaiseTrustedEvent(System.Windows.RoutedEventArgs args)Unknown
 PresentationCore.dll!System.Windows.UIElement.RaiseEvent(System.Windows.RoutedEventArgs args, bool trusted)Unknown
 PresentationCore.dll!System.Windows.Input.InputManager.ProcessStagingArea()Unknown
 PresentationCore.dll!System.Windows.Input.InputManager.ProcessInput(System.Windows.Input.InputEventArgs input)Unknown
 PresentationCore.dll!System.Windows.Input.InputProviderSite.ReportInput(System.Windows.Input.InputReport inputReport)Unknown
 PresentationCore.dll!System.Windows.Interop.HwndMouseInputProvider.ReportInput(System.IntPtr hwnd, System.Windows.Input.InputMode mode, int timestamp, System.Windows.Input.RawMouseActions actions, int x, int y, int wheel)Unknown
 PresentationCore.dll!System.Windows.Interop.HwndMouseInputProvider.FilterMessage(System.IntPtr hwnd, MS.Internal.Interop.WindowMessage msg, System.IntPtr wParam, System.IntPtr lParam, ref bool handled)Unknown
 PresentationCore.dll!System.Windows.Interop.HwndSource.InputFilterMessage(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam, ref bool handled)Unknown
 WindowsBase.dll!MS.Win32.HwndWrapper.WndProc(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam, ref bool handled)Unknown
 WindowsBase.dll!MS.Win32.HwndSubclass.DispatcherCallbackOperation(object o)Unknown
 WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate callback, object args, int numArgs)Unknown
 WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.TryCatchWhen(object source, System.Delegate callback, object args, int numArgs, System.Delegate catchHandler)Unknown
 WindowsBase.dll!System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority priority, System.TimeSpan timeout, System.Delegate method, object args, int numArgs)Unknown
 WindowsBase.dll!MS.Win32.HwndSubclass.SubclassWndProc(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam)Unknown
 [Native to Managed Transition]
 [Managed to Native Transition]
 WindowsBase.dll!System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame frame)Unknown
 WindowsBase.dll!System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame frame)Unknown
 PresentationFramework.dll!System.Windows.Application.RunDispatcher(object ignore)Unknown
 PresentationFramework.dll!System.Windows.Application.RunInternal(System.Windows.Window window)Unknown
 PresentationFramework.dll!System.Windows.Application.Run(System.Windows.Window window)Unknown
 PresentationFramework.dll!System.Windows.Application.Run()Unknown
 Project3.exe!Project3.App.Main()Unknown

 

I cannot find the stack trace since I don't have .pdb files(can't find them(except reporting.wpf.pdb) in the installation folder).

I'm attaching the solution.

I'm using Visual Studio 2017 Community Edition.

 

Hope you can solve the issue.

 

Sincerely,

Josip

 


Dimitar Dinev
Telerik team
 answered on 20 Jun 2019
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?