Telerik Forums
UI for WPF Forum
5 answers
240 views
I have the following chart as seen in the attachment image.

How can I synchronize the Y Axis so that they both have 0 at the same horizontal line ?
Martin Ivanov
Telerik team
 answered on 03 Jun 2019
4 answers
258 views

This control has been working fine until today, but now it cannot be displayed for some reason.  This occurred after I added an empty WPF Custom Control Library project to the solution, which I have since removed...

 

The element "acbSelectPerson" could not be displayed because of a problem with Telerik.Controls.RadAutoCompleteBox:

InvalidCastException:

[A]Telerik.Windows.Controls.RadListBox cannot be cast to [B]Telerik.Windows.Controls.RadListBox. Type A originates from 'Telerik.Windows.Controls, Version=2016.2.613.45, Culture=neutral, PublicKeyToken=5803cfa389c90ce7' in the context 'LoadFrom' at location 'C:\Program Files (x86)\Telerik\UI for WPF Q2 2016\Binaries\WPF45\Telerik.Windows.Controls.dll'. Type B originates from 'Telerik.Windows.Controls, Version=2016.2.613.45, Culture=neutral, PublicKeyToken=5803cfa389c90ce7' in the context 'LoadNeither' at location 'C:\Users\000105261\AppData\Local\Microsoft\VisualStudio\14.0\Designer\ShadowCache\13qxpo3c.c3s\4xmqqihl.1si\Telerik.Windows.Controls.dll'.

Stack Trace:

   at Telerik.Windows.Controls.RadAutoCompleteBox.InitializeItemsControlPart()
   at Telerik.Windows.Controls.RadAutoCompleteBox.OnApplyTemplate()
   at System.Windows.FrameworkElement.ApplyTemplate()
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.DockPanel.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Border.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean& hasDesiredSizeUChanged)
   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
   at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Border.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Control.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean& hasDesiredSizeUChanged)
   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Control.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)

Magdalena
Top achievements
Rank 1
 answered on 03 Jun 2019
2 answers
137 views

Is there a sample of using guage as aircraft horizon that supported roll and pitch values?

Thanks

Martin Ivanov
Telerik team
 answered on 31 May 2019
0 answers
114 views

I'm using the RadGridView with a dynamic object binding in order to show a grid of business objects (rows), each with properties (columns). The properties are not known before the business objects are selected.

Each property has its own viewmodel and related DataTemplate.

The GridCellPropertyContainerViewModel we are using for each grid cell encapsulates the relevant PropertyContent, so its DataTemplate uses a ContentControl, like so:

<DataTemplate DataType="{x:Type local:GridCellPropertyContainerViewModel}">
   <ContentControl Content="{Binding PropertyContent, ValidatesOnExceptions=True, ValidatesOnNotifyDataErrors=True, NotifyOnValidationError=True}" />
</DataTemplate>     
Ryan
Top achievements
Rank 1
 asked on 30 May 2019
4 answers
223 views

In my code-behind for the following XAML fragment, I would like to do "MyTextBox.Focus()", but MyTextBox is not accessible. Is there a way I can access it?

 

    <Grid>
        <telerik:RadPropertyGrid Item="{Binding}"
                                 RenderMode="Flat"
                                 AutoGeneratePropertyDefinitions="False"
                                 DescriptionPanelVisibility="Collapsed"
                                 SearchBoxVisibility="Collapsed"
                                 SortAndGroupButtonsVisibility="Collapsed"
                                 FieldIndicatorVisibility="Collapsed"
                                 Loaded="RadPropertyGrid_Loaded"
                                 LabelColumnWidth="150">
            <telerik:RadPropertyGrid.PropertyDefinitions>
                <telerik:PropertyDefinition DisplayName="Text"
                                            GroupName="Text Properties"
                                            OrderIndex="0">
                    <telerik:PropertyDefinition.EditorTemplate>
                        <DataTemplate>
                            <TextBox x:Name="MyTextBox"
                                     TextWrapping="Wrap"
                                     AcceptsReturn="True"
                                     AcceptsTab="True"
                                     Height="60"
                                     VerticalContentAlignment="Top"
                                     Text="{Binding Text, UpdateSourceTrigger=PropertyChanged}"/>
                        </DataTemplate>
                    </telerik:PropertyDefinition.EditorTemplate>
                </telerik:PropertyDefinition>
            </telerik:RadPropertyGrid.PropertyDefinitions>
        </telerik:RadPropertyGrid>
    </Grid>

Martin Ivanov
Telerik team
 answered on 30 May 2019
2 answers
240 views

Hey,

how can I adjust position of pasted element on diagram? Currently it's exactly in the same place as the copied element and it should be better to slightly move it to the right and down, so user will see the copy-paste action actually completed.

Any ideas?

 

Jakub

Jakub
Top achievements
Rank 1
Iron
 answered on 30 May 2019
1 answer
57 views

Hi, i have massive problem.

If you only run the image editor, it works fine.

However, when i load an image editor from another program, i can not see the component values. Please check attached file.

Please i need your help. 

I look forward to your feedback.

Thanks

Martin Ivanov
Telerik team
 answered on 29 May 2019
3 answers
396 views

Few of our customers sometimes experience the exception above (I assume it doesn't always happen to them), and we get the crash report through our diagnostics system.

The stack trace is:

  at System.Windows.Freezable.RemoveContextInformation(DependencyObject context, DependencyProperty property)\r\n   at System.Windows.Freezable.RemoveInheritanceContext(DependencyObject context, DependencyProperty property)\r\n   at System.Windows.DependencyObject.RemoveSelfAsInheritanceContext(DependencyObject doValue, DependencyProperty dp)\r\n   at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)\r\n   at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)\r\n   at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)\r\n   at Telerik.Windows.Controls.RadRibbonWindow.SetThemeTemplate(RadRibbonWindow ribWin)\r\n   at Telerik.Windows.Controls.RadRibbonWindow.OnApplyTemplate()\r\n   at System.Windows.FrameworkElement.ApplyTemplate()\r\n   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)\r\n   at System.Windows.UIElement.Measure(Size availableSize)\r\n   at System.Windows.Interop.HwndSource.Process_WM_SIZE(UIElement rootUIElement, IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam)\r\n   at System.Windows.Interop.HwndSource.LayoutFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)\r\n   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)\r\n   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)\r\n   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)\r\n   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

 

The problem looks like coming from:

RadRibbonWindow.SetThemeTemplate

Are you aware of issues that can cause it?

 

Thanks.

Martin Ivanov
Telerik team
 answered on 29 May 2019
2 answers
1.0K+ views

I've got a slider bound to a double property.  The double property controls the opacity of a shape right next to my control

When I drag the center thumb with the mouse, everything works perfectly.  The opacity changes in 0.01 increments, the tooltip updates and the opacity changes.  It does all of this smoothly.

When I try to drag that same thumb via touch, it just doesn't work.  It basically seems to go from 0 to 1.  Even if I set both small and large change to 0.01 and disable SnapToTicks (it has no effect). It won't drag smoothly.  I've even tried styling the thumb to make it use a very large size (just to be sure it's not me missing it with touch).  Still doesn't work.

What property do I have to set to make the slider change smoothly with touch as it does with the mouse?

I've attached an image of me dragging the center slider with the mouse where it's working perfectly.  

Here is my XAML

<tk:RadSlider Grid.Row="8" Grid.Column="2" Grid.ColumnSpan="3"
              AutoToolTipPlacement="BottomRight"
              Minimum="0.0"
              Maximum="1.0"
              IsDeferredDraggingEnabled="False"
              Orientation="Horizontal"
              HorizontalAlignment="Center"
              SmallChange="0.01"
              Width="300"
              Margin="2 2 2 5"
              HandlesVisibility="Visible"
              Value="{Binding Source={x:Static core:Settings.Default}, Path=ShapeHandleOpacity, Mode=TwoWay}"
            />

 

 

Joe
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 29 May 2019
1 answer
209 views

Hello

I use the RadScheduleView (Version 19.2.510) and have two questions regarding the appointment-editing window.

1) Can the window for the definition of the rule of an appointment repetition be called independently of the ScheduleView (for example, if you want to call the menu item "Edit rule" in a list of appointments)?

2) Is it possible to use your own window to edit an appointment, independent of the ScheduleView and with your own ViewModel?

 

Thanks

Vladimir Stoyanov
Telerik team
 answered on 29 May 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?