I am trying to get the telerik WPF controls to load during design time with the no binaries setup. I have managed to get the main window to show up once by linking directly to the theme dll, but that did not work for any of the modules. I am trying to get the structure of the application nailed down before we get deep into development, and having the theme/ui consistent is important.
The theme files are placed in core project and are referenced by the main application.
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:core="clr-namespace:Insight.Core">
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/Insight.Core;component/Themes/FluentLight/System.Windows.xaml"/>
<ResourceDictionary Source="/Insight.Core;component/Themes/FluentLight/Telerik.Windows.Controls.Data.xaml"/>
<ResourceDictionary Source="/Insight.Core;component/Themes/FluentLight/Telerik.Windows.Controls.Docking.xaml"/>
<ResourceDictionary Source="/Insight.Core;component/Themes/FluentLight/Telerik.Windows.Controls.GridView.xaml"/>
<ResourceDictionary Source="/Insight.Core;component/Themes/FluentLight/Telerik.Windows.Controls.Input.xaml"/>
<ResourceDictionary Source="/Insight.Core;component/Themes/FluentLight/Telerik.Windows.Controls.Navigation.xaml"/>
<ResourceDictionary Source="/Insight.Core;component/Themes/FluentLight/Telerik.Windows.Controls.VirtualGrid.xaml"/>
<ResourceDictionary Source="/Insight.Core;component/Themes/FluentLight/Telerik.Windows.Controls.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
The main app
<prism:PrismApplication x:Class="Insight.Shell.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:prism="http://prismlibrary.com/"
xmlns:views="clr-namespace:Insight.Shell.Views"
xmlns:srch="clr-namespace:Insight.Shell.Modules.ItemSearch.Navigation;assembly=Insight.Shell.Modules.ItemSearch"
xmlns:bom="clr-namespace:Insight.Shell.Modules.Bom.Navigation;assembly=Insight.Shell.Modules.Bom">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/Insight.Core;component/Themes/Generic.xaml"/>
This set of instructions was for the linked theme binary
<!--<ResourceDictionary Source="/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Data.xaml" />-->
<ResourceDictionary Source="/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.xaml" />
<ResourceDictionary Source="/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.Navigation.xaml" />-->
</ResourceDictionary.MergedDictionaries>
<Style TargetType="views:MainWindow" BasedOn="{StaticResource RadWindowStyle}" />
<Style TargetType="srch:ItemSearchNavigationCommand" BasedOn="{StaticResource RadNavigationViewItemStyle}" />
<Style TargetType="bom:BomNavigationCommand" BasedOn="{StaticResource RadNavigationViewItemStyle}" />
</ResourceDictionary>
</Application.Resources>
</prism:PrismApplication>
The application works correctly, and the theme is applied at run time, but during the design phase, the UI is not present at all and it makes the layout with the designer difficult if not impossible since you cant see any of the controls on the page.
Thanks for your help.
-Sean
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.
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.
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
Hello,
Please tell me how to hide resizable scrollbar or disabled? I don't want to change the time span of the TimeBar.
Thanks.
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.
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?
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!
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
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.