Telerik Forums
UI for WPF Forum
4 answers
123 views

Hello,

This Static Resource appears to be missing in the implicit Navigation.XAML or any other files ->LayoutControlSplitter_Foreground.

Searched all XAML files and do not see it.

Let me know if I overlooked something here.

Thanks,

Mark.

 

 

MarkInTexas
Top achievements
Rank 1
 answered on 19 Feb 2020
3 answers
369 views

Hello there, I have two questions in here :

 

I've been trying for some time to keep the header of my RadPanes when i make them float but nothing seems to work.

As you can see on the attached files :

   - IMG1 : How it looks like originally ;

   - IMG2 : When I make a single Pane float, the PaneHeader disappears,

   - IMG3 : When I move a second pane to the floating window, both PaneHeaders appear, but then the ToolWindow has none.

 

My assumption is that my PaneHeader is shown only if the RadPane is contained in a RadPaneGroup, and that it is otherwise used to generated the ToolWindow's one, loosing its style on the way.

So as soon as I add another RadPane, a RadPaneGroup is generated and PaneHeaders are restored, but then the ToolWindow has nothing to use as its Header.

It looks like modifying the ToolWindow's ControlTemplate isn't enough, though (even without the fact that it randomly crashes when launched).

 

If you have any solution for this please let me know.

 

The second question is this one :

Is it possible to change the behavior of the ToolWindow's generation by directly modifying the method that is called at this moment ? I couldn't find any documentation about this, neither did I manage to find which function is doing it. 

But my guess is that there is a method somewhere that either directly casts the RadPane into a ToolWindow (which would explain the messy stuff I get) or translates only certain attributes from the Pane to the Window.

Either way, if it is possible to change it, that's how I would prefer to do it.

 

That's it, thank you in advance for your help.

Dilyan Traykov
Telerik team
 answered on 19 Feb 2020
2 answers
130 views

Hi,

 

we are in the process of creating an app meant for touch input using the RadTileView. We have Selection enabled (Mode=Single) and bound the SelectedItem and the MaximizedItem to their corresponding properties. The SelectedItem gets maximized and its template applied. The template contains a text box and a button. The problem occurs when we try to select the textbox or click the button using touch. The SelectedItem gets deselected and is being minimized again, which makes it impossible to enter something into the textbox.

When using the mouse everythings working fine.  

 

Any advice on how to properly deal with touch input?

 

Regards Sebastian 

Sebastian
Top achievements
Rank 1
 answered on 19 Feb 2020
1 answer
91 views

Hello,

Please tell me how to hide resizable scrollbar or disabled? I don't want to change the time span of the TimeBar.

Thanks.

Martin Ivanov
Telerik team
 answered on 19 Feb 2020
11 answers
562 views

Using VisualStudio2013 theme with the dark palette, a RadComboBox shows up in a RadWindow with the selected edit text color as black on a dark background, which is hard to read.

The drop-down part text color is white, so all good there. Just the textbox part.

 

Dilyan Traykov
Telerik team
 answered on 18 Feb 2020
2 answers
211 views

We're generating a busy and complicated map with a lot of custom controls within an InformationLayer. Eventually after interacting with the custom controls (within the Information Layer) we're getting a NullReferenceException within -

Telerik.Windows.Controls.Map.MapCanvas.MeasureOverride(Size availableSize)

The full stack trace is:

System.NullReferenceException
  HResult=0x80004003
  Message=Object reference not set to an instance of an object.
  Source=Telerik.Windows.Controls.DataVisualization
  StackTrace:
   at Telerik.Windows.Controls.Map.MapCanvas.MeasureOverride(Size availableSize)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.ContextLayoutManager.UpdateLayout()
   at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
   at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
   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.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
   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 System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
   at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.Run(Form mainForm)

It's hard to reproduce, or reproduce in a repeatitive fashion, but is there anyway we can either use a different pattern/place to have the controls or catch this exception? 

Petar Mladenov
Telerik team
 answered on 18 Feb 2020
3 answers
375 views

Due to the RtfFormatProvider not respecting the existence or lack of a newline Inline at the end of the last Paragraph of the RadDocument, copying sth that does not end with a newline adds an extra final newline marker ("\par") at the end of the copied RTF.

While RadRichTextBox handles this gracefully when pasting (by ignoring the extra "\par"), other applications, e.g. Wordpad, include that newline with the pasted contents.

For example, copying a single letter "L" from the middle of a sentence in a RadRichTextBox and pasting it in Wordpad, one will get "L" followed by an extra Paragraph.

 

Short of creating another RTF provider and filtering out that last "\par", can you suggest another way to avoid adding extra newlines when exporting non-closed paragraphs to RTF? I may have missed something, but there is no option to control that in the RtfFormatProvider code.

 

Thanks in advance!

Tanya
Telerik team
 answered on 18 Feb 2020
3 answers
576 views

I don't know how to wrap columns header using just a style. I cannot use code behind because we don't have code behind. We use MVVM and CaliburnMicro so we don't have code behind the view. So I was trying to apply style to the grid and wrap all the headers every time I add grid to the form but I cannot accomplish this task. I don't want to do wrap to every column every time I add the grid. So my Idea was but it doesn't work. Please advice.

<Style TargetType="telerik:GridViewDataColumn" >
        <Setter Property="Header">
            <Setter.Value>
                <DataTemplate>
                    <TextBlock TextWrapping="Wrap" Text="{Binding}"></TextBlock>
                </DataTemplate>
            </Setter.Value>
      </Setter>
 </Style>

 Thank you,

Grazyna

 

 

Yoan
Telerik team
 answered on 17 Feb 2020
3 answers
536 views

Is it possible to have both virtualization and smooth scrolling in TreeView. Application freezes when Treeview contains more items(nearly 500) and virtualized when scrolling. TreeView item template has more controls. If we disable virtualization, Loading Treeview takes more time (in minutes) and sometimes application crashes.

Need solution to have both virtualization(for fast initial loading) and smooth scrolling.

 

Dinko | Tech Support Engineer
Telerik team
 answered on 17 Feb 2020
0 answers
606 views

I have a popup shown below which has a ContentControl using a Template. In the ContentControl I want to concatenate two strings in the xaml.  I am using similar popups in different screens where only the Content varies with control name of the screen.I want to split this content into two static resources(static resource1=Plate Name , static resource2=can't contain special characters ) and want to use it in xaml as concatenated.

Is there any way to achieve this ? Any small help would be appreciated!

                        <Popup Name="PlateNameInvalidPopup" VerticalOffset="4">
                            <ContentControl Template="{StaticResource InvalidCharPopupTemplate}" 
                                Content="Plate Name can't contain special characters">
                            </ContentControl>
                        </Popup>

Dhanya
Top achievements
Rank 1
 asked on 17 Feb 2020
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
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
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
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?