Telerik Forums
UI for WPF Forum
1 answer
149 views
I'm using Expression Blend and I'm editing my ApplicationButtonStyle.  I cannot figure out how to change the color of the text inside the Grid that contains the ContentPresenter, TextBlock, and Image.  Changing the Background/Foreground colors in TextBlock or ContentPresenter doesn't work.  What I'm trying to do is have my ApplicationButton tab look the same as a RadRibbonTab, but I can't figure out the Context (or text) color part.
Tina Stancheva
Telerik team
 answered on 22 May 2013
1 answer
156 views
Hi!

I use polyline in OrgChartDiagram with OrgTreeRouter. And I can't change TargetConnectorPosition property of polyline connection (only with Straight, Bezier). After change TargetConnectorPosition to "Right" it returned to initial state ("Left"). I need connection like red on image. How can I do it?

Petar Mladenov
Telerik team
 answered on 22 May 2013
3 answers
119 views
Occasionally we are seeing the following exception from our dashboards that show bar charts. Unfortunately I haven't been able to reproduce this in the lab: is this something that can be fixed?

System.ArgumentNullException

Value cannot be null.
Parameter name: owner

Stack Trace:
   at System.Windows.Automation.Peers.UIElementAutomationPeer..ctor(UIElement owner)
   at Telerik.Windows.Automation.Peers.BarSeriesAutomationPeer.GetChildrenCore()
   at System.Windows.Automation.Peers.AutomationPeer.EnsureChildren()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateChildrenInternal(Int32 invalidateLimit)
   at System.Windows.Automation.Peers.AutomationPeer.UpdateChildren()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdatePeer(Object arg)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.DispatcherOperation.InvokeImpl()
   at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
   at System.Threading.ExecutionContext.runTryCode(Object userData)
   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext 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 MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   at System.Windows.Application.RunDispatcher(Object ignore)
   at System.Windows.Application.RunInternal(Window window)
   at System.Windows.Application.Run(Window window)
Petar Marchev
Telerik team
 answered on 22 May 2013
2 answers
417 views
Hello All,

I have RadGridView  which hava a button embeded.  The button is binded with a command and the command parameter is the content of each row.  The bind expression of CommandParameter is "{Binding Path=Content, RelativeSource={RelativeSource TemplatedParent}}".   The problem is the command cannot get its parameter.  I am sure the command binding is works, because it is working well if I using a DataGrid insteast.   Does anyone could help me.

Thank you && Best Regards
Wei
 

 

<telerik:RadGridView x:Name="TradesGridView" 
 
ItemsSource="{Binding Trades, Mode=TwoWay}"
 CanUserFreezeColumns="False">
<telerik:RadGridView.Columns >
<telerik:GridViewColumn Header="Amend" >
<telerik:GridViewColumn.CellTemplate>
<DataTemplate>
<controls:RadButton Grid.Column="4" IsBackgroundVisible="False" Margin="10 2" MinWidth="30" ToolTipService.ToolTip="Amend Trade"
  
 Command="{Binding Path=DataContext.AmendCommand, Mode=OneWay, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type DockPanel}}}"
  
CommandParameter="{Binding Path=Content, RelativeSource={RelativeSource TemplatedParent}}">
 
<Path Data="M3.6943,11.9199L4.1323,9.5549C4.1443,9.4019,4.1953,9.2459,4.2973,9.1289L9.4233,4.0049L11.8853,6.4669L6.7593,11.5919C6.7043,11.6469,6.4893,11.7749,6.4183,11.7869L4.0083,12.2339C3.7943,12.2749,3.6533,12.1349,3.6943,11.9199 M4.8903,11.4789L6.2383,11.2519L10.9273,6.5619L10.3673,6.0059L5.7093,10.6679L4.8153,9.7169L4.5693,11.1329C4.7253,11.1989,4.8253,11.3219,4.8903,11.4789 M12.4513,5.9019L9.9893,3.4399L10.7863,2.6439C11.0063,2.4229,11.3643,2.4229,11.5853,2.6439L13.2483,4.3069C13.4683,4.5269,13.4683,4.8849,13.2483,5.1059z"
Fill="#FF333333" Stretch="Fill" Width="12" Height="12" />
</controls:RadButton>
</DataTemplate>
</telerik:GridViewColumn.CellTemplate>
</telerik:GridViewColumn>


Qin
Top achievements
Rank 1
 answered on 22 May 2013
3 answers
307 views
Hi

I'm not sure if WPF is the right technology or which Telerik control is best suited for the following scenario, so I would appreciate any recommendations that anyone can give me.

Secnario:

The user will load images from a database that were captured on camera.
The user will need to view at least 4 images at a time and maybe click one to view in full screen.(carousel control?).
The user should be able to draw circle on the image to highlight certain parts of the image.  This image must then be saved back to the database as a copy of the original with the users changes/highlights.

Can this be done in WPF with Telerik controls or can it be done easier with a different technology.

Thanks
Paul
Paul
Top achievements
Rank 1
 answered on 21 May 2013
5 answers
215 views
Hi all,

I am new to telerik wpf and I want to know if I can make the Combobox work like autocompletebox.

Thanks,
Dona
Shinu
Top achievements
Rank 2
 answered on 21 May 2013
1 answer
105 views
Is there any way to get the RadAutoCompleteBox to stretch vertically to encompass added items, when using in multiple items mode? I'm sure its something simple, but I just can't find it!

Andrew
Top achievements
Rank 1
 answered on 21 May 2013
5 answers
99 views

Hi Telerik Team.

The CandlestickSeries seems to have an odd behavior for negative values. The attached image shows a graph where the candlestick values should decrease linearly from left to right, but they stop at around y=0.


What is a workaround for this?


I use Telerik Version 2012.2.912.40, WPF


Code:

<telerik:RadCartesianChart>
    <telerik:RadCartesianChart.VerticalAxis>
        <telerik:LinearAxis/>
    </telerik:RadCartesianChart.VerticalAxis>
    <telerik:RadCartesianChart.HorizontalAxis>
        <telerik:CategoricalAxis/>
    </telerik:RadCartesianChart.HorizontalAxis>
    <telerik:CandlestickSeries x:Name="Series0" 
                            HighBinding="High"
                            OpenBinding="Open"
                            CloseBinding="Close"
                            LowBinding="Low"
                            CategoryBinding="X">
    </telerik:CandlestickSeries>
</telerik:RadCartesianChart>

public partial class MainWindow : Window
{
    public MainWindow()
    {
        InitializeComponent();
        this.Loaded += new RoutedEventHandler(MainWindow_Loaded);
    }
 
    void MainWindow_Loaded(object sender, RoutedEventArgs e)
    {
        var chartData = new List<MyChartDataClass>();
        for (int i = 0; i < 35; i++)
        {
            var cdc = new MyChartDataClass()
            {
                X = i,
                High = 5 - i,
                Open = 4 - i,
                Close = 3 - i,
                Low = 2 - i,
            };
            chartData.Add(cdc);
        }
        Series0.ItemsSource = chartData;
    }
}
 
public class MyChartDataClass
{
    public int X { get; set; }
    public double Close { get; set; }
    public double Low { get; set; }
    public double Open { get; set; }
    public double High { get; set; }
}
Peshito
Telerik team
 answered on 21 May 2013
2 answers
297 views
Hi everyone,

I would like to open, focus and select all text in editable RadComboBox when my wpf form is opened.

So I set following properties:

OpenDropDownOnFocus="True" SelectAllTextEvent="GotFocus"

and I call the Focus(); on form's constructor.

But the comboBox is closed with no selected text in it.

Could you help me what am I doing wrong?

Thank you for your replies.
Vladi
Telerik team
 answered on 20 May 2013
3 answers
190 views
Using your pdfviewer control.
If I set IsInPanMode = "true" on the contol it doesn't seem to honor that setting. However if i have a toggle button that i bind to the FixedDocumentViewer.IsInPanMode property it seems to work.

I get the same effect with ScaleMode  - except here : if i set it directly on the control it doesn't work, but I also can't seem to get FixedDocumentViewer.ScaleFactor binding to work on other controls like Slider etc.

Any hints at what I'm doing wrong?
Kammen
Telerik team
 answered on 20 May 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?