Telerik Forums
UI for WPF Forum
6 answers
233 views

Hi

I'm currently fixed to version 2016_3_1024 of UI for WPF.

I'd like to build a protected set of assemblies using the batch build targetting .NET 4.0.

My computer has VS 2017 Community and I have installed the Windows 10 SDK and Windows 8.1 SDK.

If I try to build the Telerik assemblies using the Build_WPF40.Bat file I get errors:-

C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(2863,5): error MSB3086: Task could not find "AL.exe" using the SdkToolsPath "" or the registry key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v8.0A\WinSDK-NetFx40Tools-x86". Make sure the SdkToolsPath is set and the tool exists in the correct processor specific location under the SdkToolsPath and that the Microsoft Windows SDK is installed

I've tried setting the MSBUILD environment in the batch file to use Visual Studio's MSBUILD but that fails too.

AL.EXE is in the Windows 10 SDK folders.

Any suggestions how I can resolve this?

 

 

 

Martin Ivanov
Telerik team
 answered on 08 Oct 2019
1 answer
75 views

Hi,

Currently, the row details are shown when any cells in the row is selected. However, I would like to only show my row details only when cells in (eg column A &C) is selected and the row details are different when selecting cells in the same row (but in column A&C).

Thank you.

Dilyan Traykov
Telerik team
 answered on 08 Oct 2019
1 answer
126 views

Hi,

I'd like to position a Shape's text outside of the shape itself. Can this be accomplished in WPF? I found a similar issue in the WinForms forum but the solution is not applicable.

Martin Ivanov
Telerik team
 answered on 08 Oct 2019
1 answer
125 views

I've got a RadCartesianChart3D chart that looks and works great.   (You fine folks have helped me out with it quite a bit on some recent threads here).  I use the Chart3DCameraBehavior upon it to zoom and rotate.  Although that is great, I now have a customer request for my user to be able to have their mouse moves (or touch moves) pan the chart instead of rotating it.  How may I do this?

I was thinking that I could make this into some sort of mode, but the Chart3DCameraBehavior does not seem to have any facility for panning at all that I can.  Is there another behavior that might do this for me? 

I would not be averse to writing my own code to adjust some sort of TranslateTransform when in some specific "mode", but the problem is that if I were to do that to the whole chart, the axes would pan with the surface and that wouldn't help me at all.

 

-Joe

Martin Ivanov
Telerik team
 answered on 08 Oct 2019
3 answers
521 views

Hi,

We're including the NoXaml Telerik DLLs and the Office 2016 theme DLL in our application. We've merged the resources from the various DLLs, including the Themes/System.Windows.xaml resource, as described in Setting a Theme Using Implicit Styles. We've found that this affects the appearance of some non-Telerik controls, such as TextBox, PasswordBox and ScrollViewer. For example, sometimes there are extra borders and sometimes rounded corners are missing (see attached screenshot).

At the bottom of that same page is a short section called Does a Theme Affect All WPF Controls? that confirms that some native WPF controls are affected by Telerik themes. We would like to avoid this. Could you help by answering the following questions:

  • How exactly do Telerik themes affect the appearance of native WPF controls, and why? Is this expected?
  • What is the best way to avoid this? Setting a Theme on MS Controls says that if we want to style one of the affected WPF controls we should merge the System.Windows.xaml resource dictionary when defining our styles. Will this ensure that everything looks the same as it does without the Telerik theme?
  • We've tried removing just the Themes/System.Windows.xaml resource (while keeping the other Telerik resources) and this seems to fix the appearance of native WPF controls. Is this recommended? What side-effects might this have.

Thanks.

Martin Ivanov
Telerik team
 answered on 08 Oct 2019
2 answers
433 views

On my development, each navigationView Item will display a page which is defined by an User control. When user click items on left-hand side, corresponding page is displayed on right-hand side.

Now considering following case:

  • User is working on a page (let's call it GRID page) which shows a few grids and some input editors. User rearranges columns of a grid; user selects a few rows of a grid; user inputs some texts on editor
  • User clicks another NavigationView item to look for some information on another page;
  • User switches back to GRID page, and he will discover that all the changes he just made are gone. Every thing goes back to initial state.

Debugging told me that the user control of GRID page is re-created whe user switched back to GRID page

My questions:

  1. Instead of destroying/creating pages, is that a way to hide/show pages when use switch pages?
  2. If this is impossible, how can I perserve the status of a page so that user can go back and continue working on it.

Thanks.

zigzag
Top achievements
Rank 1
 answered on 07 Oct 2019
2 answers
160 views

I need to pass multiple values into the i value converter but since multibinding isn't an option for DataMemberBinding I decided to pass the whole type into the converter as seen below: (I tried to only put the relevent code here)

                <telerik:GridViewDataColumn Header="{x:Static properties:Resources.Value}" DataMemberBinding="{Binding Converter={StaticResource myConverterSelector}}" TextAlignment="Center" HeaderTextAlignment="Center"  DataType="{x:Type sys:Double}" UniqueName="Value">

 

        public class MyConverterSelector : IValueConverter
    {
        public object Convert(object item, Type targetType, object parameter,
            System.Globalization.CultureInfo culture)
        {
            TabularTag tag = item as TabularTag;
            if (tag != null)
            {
                if (tag.Format == "Float" || tag.Format.Contains("REAL") || tag.Format == "")
                {

                    double parsedVal;
                    if (Double.TryParse(tag.Value.ToString(), out parsedVal))
                    {
                        return parsedVal.ToString("f3", CultureInfo.InvariantCulture);
                    }
                }
                else
                {
                    double parsedVal;
                    if (Double.TryParse(tag.Value.ToString(), out parsedVal))
                        return parsedVal.ToString("f0", CultureInfo.InvariantCulture);
                }
            }
            return null;
        }

        public object ConvertBack(object item, Type targetType,
            object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotSupportedException();
        }
    }

 

This works great on the cell data but the filter for this column ends up empty (I attached a snapshot of this) I tried using CellTemplate instead to edit the data but this doesn't affect the filter, which needs to match.

Jessica
Top achievements
Rank 1
 answered on 07 Oct 2019
4 answers
720 views

Hello, I want to use WebBrowser in RadWindow. I know that I need to set AllowTransparency="False". With Fluent theme it works good but with Crystal theme it looks ugly. I tried to set CrystalPalette.Palette.CornerRadius = new CornerRadius(0) but there is still some border around window. How to make it fill all the window like in some other theme like Fluent?

Vicky
Telerik team
 answered on 07 Oct 2019
3 answers
300 views

Hi,

I'm trying to get a simple test app up and running with the following functionality:

A main window with an empty docking container.

A dockable view pane that is created on the fly.  (Where multiple panes are created as needed.)

So far I have this for my main window:

<telerik:RadDocking x:Name="radDocking" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="0,22,0,0">
    <telerik:RadDocking.DocumentHost>
        <telerik:RadSplitContainer>
            <telerik:RadPaneGroup x:Name="PrimaryGroup">
            </telerik:RadPaneGroup>
        </telerik:RadSplitContainer>
    </telerik:RadDocking.DocumentHost>
</telerik:RadDocking>

And this for my dockable pane:

<telerik:RadPane Header="Test View">
</telerik:RadPane>

Where my main window is a <Window> and my view is a <UserControl>.

This gives me an empty window, and I can create views through the main window's main menu.  The views are created and docked as follows:

AquaView view = new AquaView();
PrimaryGroup.Items.Add( view );

Which gives me almost what I want - the views are created and docked in the main window by default.  (The text on the tab is missing, but I can figure that out later.)  The problem I am having now is any attempt to undock one of those views by dragging its tab results in a crash with the following callstack:

>   PresentationFramework.dll!System.Windows.Window.GetWindow(System.Windows.DependencyObject dependencyObject) + 0x76 bytes    
    Telerik.Windows.Controls.dll!Telerik.Windows.Controls.ApplicationHelper.TransformToScreenRoot(System.Windows.UIElement target) Line 251 + 0x8 bytes C#
    Telerik.Windows.Controls.Docking.dll!Telerik.Windows.Controls.RadDocking.GetElementPositionAtScreenRoot(System.Windows.UIElement element) Line 1456 + 0x8 bytes C#
    Telerik.Windows.Controls.Docking.dll!Telerik.Windows.Controls.RadDocking.OnDockingElementDragged(System.Windows.Point globalPosition, object draggedElement) Line 607 + 0x25 bytes  C#
    Telerik.Windows.Controls.Docking.dll!Telerik.Windows.Controls.RadDocking.OnDockingElementDragged(object sender, Telerik.Windows.Controls.Docking.DragInfoEventArgs e) Line 955  C#
    Telerik.Windows.Controls.Docking.dll!Telerik.Windows.Controls.Docking.DragInfoEventArgs.InvokeEventHandler(System.Delegate genericHandler, object genericTarget) Line 49    C#
    PresentationCore.dll!System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate handler, object target) + 0x29 bytes  
    PresentationCore.dll!System.Windows.RoutedEventHandlerInfo.InvokeHandler(object target, System.Windows.RoutedEventArgs routedEventArgs) + 0x3e bytes    
    PresentationCore.dll!System.Windows.EventRoute.InvokeHandlersImpl(object source, System.Windows.RoutedEventArgs args, bool reRaised) + 0xbe bytes   
    PresentationCore.dll!System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject sender, System.Windows.RoutedEventArgs args) + 0x79 bytes  
    PresentationCore.dll!System.Windows.UIElement.RaiseEvent(System.Windows.RoutedEventArgs e) + 0x17 bytes 
    Telerik.Windows.Controls.Docking.dll!Telerik.Windows.Controls.Docking.DraggableItemHelper.OnDragDelta(System.Windows.Point globalMousePosition, System.Windows.Rect initialRect, System.Windows.Rect destinationRect, bool isResize) Line 32    C#
    Telerik.Windows.Controls.Navigation.dll!Telerik.Windows.Controls.InternalWindow.DragBehavior.OnElementMouseMove(object sender, System.Windows.Input.MouseEventArgs e) Line 149 + 0xa3 bytes C#
    PresentationCore.dll!System.Windows.Input.MouseEventArgs.InvokeEventHandler(System.Delegate genericHandler, object genericTarget) + 0x34 bytes  
    PresentationCore.dll!System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate handler, object target) + 0x29 bytes  
    PresentationCore.dll!System.Windows.RoutedEventHandlerInfo.InvokeHandler(object target, System.Windows.RoutedEventArgs routedEventArgs) + 0x3e bytes    
    PresentationCore.dll!System.Windows.EventRoute.InvokeHandlersImpl(object source, System.Windows.RoutedEventArgs args, bool reRaised) + 0xbe bytes   
    PresentationCore.dll!System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject sender, System.Windows.RoutedEventArgs args) + 0x79 bytes  
    PresentationCore.dll!System.Windows.UIElement.RaiseTrustedEvent(System.Windows.RoutedEventArgs args) + 0x41 bytes   
    PresentationCore.dll!System.Windows.UIElement.RaiseEvent(System.Windows.RoutedEventArgs args, bool trusted) + 0x2c bytes    
    PresentationCore.dll!System.Windows.Input.InputManager.ProcessStagingArea() + 0x1ff bytes   
    PresentationCore.dll!System.Windows.Input.InputManager.ProcessInput(System.Windows.Input.InputEventArgs input) + 0x45 bytes 
    PresentationCore.dll!System.Windows.Input.InputProviderSite.ReportInput(System.Windows.Input.InputReport inputReport) + 0x62 bytes  
    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) + 0x2c2 bytes 
    PresentationCore.dll!System.Windows.Interop.HwndMouseInputProvider.FilterMessage(System.IntPtr hwnd, MS.Internal.Interop.WindowMessage msg, System.IntPtr wParam, System.IntPtr lParam, ref bool handled) + 0x1d3 bytes 
    PresentationCore.dll!System.Windows.Interop.HwndSource.InputFilterMessage(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam, ref bool handled) + 0x75 bytes   
    WindowsBase.dll!MS.Win32.HwndWrapper.WndProc(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam, ref bool handled) + 0xbe bytes    
    WindowsBase.dll!MS.Win32.HwndSubclass.DispatcherCallbackOperation(object o) + 0x7d bytes    
    WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate callback, object args, int numArgs) + 0x53 bytes 
    WindowsBase.dll!MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(object source, System.Delegate method, object args, int numArgs, System.Delegate catchHandler) + 0x42 bytes    
    WindowsBase.dll!System.Windows.Threading.Dispatcher.InvokeImpl(System.Windows.Threading.DispatcherPriority priority, System.TimeSpan timeout, System.Delegate method, object args, int numArgs) + 0xb4 bytes    
    WindowsBase.dll!MS.Win32.HwndSubclass.SubclassWndProc(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam) + 0x104 bytes    
    [Native to Managed Transition]  
    [Managed to Native Transition]  
    WindowsBase.dll!System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame frame) + 0xc1 bytes  
    WindowsBase.dll!System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame frame) + 0x49 bytes  
    PresentationFramework.dll!System.Windows.Application.RunDispatcher(object ignore) + 0x5b bytes  
    PresentationFramework.dll!System.Windows.Application.RunInternal(System.Windows.Window window) + 0x74 bytes 
    PresentationFramework.dll!System.Windows.Application.Run(System.Windows.Window window) + 0x2b bytes 
    PresentationFramework.dll!System.Windows.Application.Run() + 0x1b bytes 
    AquaViewPro.exe!AquaViewPro.App.Main() + 0x5e bytes C#
    [Native to Managed Transition]  
    [Managed to Native Transition]  
    mscorlib.dll!System.AppDomain.ExecuteAssembly(string assemblyFile, System.Security.Policy.Evidence assemblySecurity, string[] args) + 0x6d bytes    
    Microsoft.VisualStudio.HostingProcess.Utilities.dll!Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() + 0x2a bytes  
    mscorlib.dll!System.Threading.ThreadHelper.ThreadStart_Context(object state) + 0x63 bytes   
    mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool ignoreSyncCtx) + 0xb0 bytes    
    mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) + 0x2c bytes    
    mscorlib.dll!System.Threading.ThreadHelper.ThreadStart() + 0x44 bytes   
    [Native to Managed Transition]  

The output window of Visual Studio has the following (extremely unhelpful) message:

An unhandled exception of type 'System.ArgumentNullException' occurred in PresentationFramework.dll
Additional information: Value cannot be null.

So, I'm wondering what it is I'm missing, or does the WPF docking library not support creating views dynamically?  (All the samples and examples I've seen do only seem to build static GUIs where all the components are known at compile time.)

Regards,

James

Hans
Top achievements
Rank 1
Veteran
 answered on 07 Oct 2019
2 answers
56 views

Hello,

I need some assistance identifying one last piece that I would like to remove.  I'm not really sure what this is (I'm new to Telerik), so I included a screenshot.  Whatever this is, it can be dragged to each of the columns.  I would like to remove it.

Thanks!

Scott
Top achievements
Rank 1
 answered on 04 Oct 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
PersistenceFramework
DataPager
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
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
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?