Telerik Forums
UI for WPF Forum
3 answers
275 views

Hi,

 I'm regularly getting the following exception whenever I move around my Window with a RadBusyIndicator in it. There are multiple windows, each with their own busy indicator. (The Window is a template, and is filled dynamically at runtime.

01.No Title
02.System.NullReferenceException was unhandled
03.  HResult=-2147467261
04.  Message=Object reference not set to an instance of an object.
05.  Source=Telerik.Windows.Controls
06.  StackTrace:
07.       at Telerik.Windows.Automation.Peers.RadBusyIndicatorAutomationPeer.GetCustomPropertyValuesCore()
08.       at Telerik.Windows.Automation.Peers.RadBusyIndicatorAutomationPeer.GetItemStatusCore()
09.       at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
10.       at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
11.       at System.Windows.Automation.Peers.AutomationPeer.UpdatePeer(Object arg)
12.       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
13.       at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
14.       at System.Windows.Threading.DispatcherOperation.InvokeImpl()
15.       at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
16.       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
17.       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
18.       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
19.       at System.Windows.Threading.DispatcherOperation.Invoke()
20.       at System.Windows.Threading.Dispatcher.ProcessQueue()
21.       at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
22.       at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
23.       at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
24.       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
25.       at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
26.       at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
27.       at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
28.  InnerException: 

 

Any ideas?

Thanks!

 

 

Georgi
Telerik team
 answered on 02 Sep 2015
1 answer
87 views
I have identified a problem with the RadMaskedCurrencyInput controls handling of the backspace key.
I have set the following properties in code
 Mask = "";
 FormatString = "c";
 
The error scenario is
1. The control has the value "$0.00"
2. Place the cursor to the left of the period (between the '0' and the period).
3. Press the backspace key (The cursor ends up to the left of the left most '0')
4. Press the number '1' key to enter the value
 
Expected
The value in the control is "$1.00"
 
Actual
The value in the control is "$10.00"
 
At the moment this bug is preventing us from using the control. Is anyone able to provide a solution or workaround for this problem.
 
My client is running the latest version.
 
Petar Mladenov
Telerik team
 answered on 02 Sep 2015
4 answers
183 views

Hi,

Is it possible to not receive handled MouseDoubleClickEvent and MapMouseDoubleClickEvent in RadMap when the event is handled in a item of a map layer ? I've joined a sample that demonstrates the problematic behavior (for me).

Thank you,

Etienne

Etienne
Top achievements
Rank 1
 answered on 01 Sep 2015
1 answer
126 views

Is it possible with your controls to build a LinearGauge with a logarithmic scale and logarithmic tickmarks?

 

Sia
Telerik team
 answered on 01 Sep 2015
1 answer
201 views

After adding a handler, the next step is to set focus to the cell (if any) under the mouse click.

this.AddHandler(MouseLeftButtonDownEvent, new MouseButtonEventHandler(this.myRadGridView_MouseDown), true);

I can set the cell focus given row and column.

The goal is to find the UIElement under the mouse click, if any, and then attempt to set Focus to it.

Thank you for your assistance.

Petya
Telerik team
 answered on 01 Sep 2015
3 answers
262 views

Hi All,

I am trying to create a horizontal stacked bar to show data.  Below is the code I have so far.

 

The problems that I'm having are:

1.  It creates the chart but the data bar seems to be vertical.  I want it to go horizontal.

2.  I want each segment of the bar to have a different color automatically from the theme.

3.  I want each segment of the bar to have its own tooltip.

 What am I missing?

Thanks for your help!     

 

 this.Chart = new Telerik.Windows.Controls.RadCartesianChart() {
                MinHeight = 0,
                MinWidth = 0,
                HorizontalAxis = new Telerik.Windows.Controls.ChartView.CategoricalAxis() {
                    Visibility = System.Windows.Visibility.Collapsed,
                },
                VerticalAxis = new Telerik.Windows.Controls.ChartView.LinearAxis() {
                    Visibility = System.Windows.Visibility.Collapsed,
                }
            };

            Chart.Background = System.Windows.Media.Brushes.Green;

            Chart.HorizontalAlignment = System.Windows.HorizontalAlignment.Stretch;
            Chart.VerticalAlignment = System.Windows.VerticalAlignment.Stretch;

            var DataSeries = new Telerik.Windows.Controls.ChartView.BarSeries();
            DataSeries.CombineMode = Telerik.Charting.ChartSeriesCombineMode.Stack100;

            foreach (var item in e.Parameters) {
                DataSeries.DataPoints.Add(new Telerik.Charting.CategoricalDataPoint() { Value = item.Used, Category = "1" });
                DataSeries.DataPoints.Add(new Telerik.Charting.CategoricalDataPoint() { Value = item.Available, Category = "1" });
            }

            Chart.Series.Add(DataSeries);​

Martin Ivanov
Telerik team
 answered on 01 Sep 2015
5 answers
208 views

Hey all.

 I'm playing around with DragDrop behaviours, mainly dragging from other controls (or explorer), and dropping onto a TreeListView. I would like to set the drag visual in these instances (for example, detail how many files are being dragged), but currently, the only way to create a visual is when the item is the source of the drag operation, not the destination.

Does anyone have any pointers as to where I can go from here ?

Dimitrina
Telerik team
 answered on 01 Sep 2015
1 answer
159 views

Does the Cartesian chart support multiple labels for the crosshairs? What I am looking for is a label for all of the axes in the chart. I have a chart with 3 y-axes and the potential for 2 x-axes. I have been asked to provide crosshair labels for all 4-5 of the axes. Is there a way to do this?

Thank you.

Martin Ivanov
Telerik team
 answered on 01 Sep 2015
1 answer
117 views

Hello!

 I have a window which is splitted into 2 docking-controls (top/bottom).

Is there a way to move a RadPane, which is hosted by docking-control 1 (top) to docking-control 2 (bottom)?

 

kind regards

Nasko
Telerik team
 answered on 01 Sep 2015
1 answer
119 views

Hello,

In one of our project we used a WPF diagram control developed by me. It works well, but some features like printing, pagination, ... are missing so we plan to use RadDiagram control. I start a project for the migration (Q2 2015) and I have some questions. You can find attached my control based on a WPF canvas. We use MVVM in our software.

  • Is it possible to have a margin between a shape and the selection ? I try set the margin property but it doesn't work. The shape is moved vertically and horizontally but is too big even if I reduce the geometry, I didn't found Stretch property for the geometry.
    <Style TargetType="telerik:RadDiagramShape" x:Key="ProcedureStepFinalStyle">
                <Setter Property="IsEditable" Value="False" />
                <Setter Property="Position" Value="{Binding Position, Mode=TwoWay}" />
                <Setter Property="RotationAngle" Value="{Binding RotationAngle}" />
                <Setter Property="IsResizingEnabled" Value="False" />
                <Setter Property="IsRotationEnabled" Value="False" />
                <Setter Property="Geometry" Value="M 0,24 A 24,24 45 0 1 24,0 L 132,0 A 24,24 45 0 1 156,24 A 24,24 45 0 1 132,48 L 24,48 A 24,24 45 0 1 0,24" />
                <Setter Property="BorderBrush" Value="#FF6b9100" />
                <Setter Property="Height" Value="48" />
                <Setter Property="Width" Value="168" />
                <Setter Property="AllowCut" Value="False" />
                <Setter Property="Padding" Value="5" />
                <Setter Property="Margin" Value="5" />
                <Setter Property="Background">
                    <Setter.Value>
                        <LinearGradientBrush StartPoint="0,0" EndPoint="1,0">
                            <GradientStopCollection>
                                <GradientStop Offset="0" Color="White" />
                                <GradientStop Offset="1" Color="#FFbdfc02" />
                            </GradientStopCollection>
                        </LinearGradientBrush>
                    </Setter.Value>
                </Setter>
                <Setter Property="ContentTemplate">
                    <Setter.Value>
                        <DataTemplate>
                            <TextBlock Text="{localization:LocText Courbon.Languages:Language:PageGraphic_End}" VerticalAlignment="Center" HorizontalAlignment="Center" FontWeight="Bold" />
                        </DataTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
  • How to only authorize connection start from bottom shape to the top of another shape ?
  • How to set connection stroked when and item is moving or when a connection is being drawn (like in I2.png attached picture) ?
  • How to have the same connection logic thank in the pictures ?
    I have a look to IRouter interface, but I think it doesn't help... We cannot have arc on intersection.

Thanks in advance for our reply.

Best regards,
Geoffrey


Petar Mladenov
Telerik team
 answered on 31 Aug 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?