Telerik Forums
UI for WPF Forum
3 answers
188 views
How to get compass angle? Is there any function in Telerik library to call and return value?
See image for more info.

Must be OK with negative value too.
Andrey
Telerik team
 answered on 01 Aug 2014
2 answers
159 views
If I add items to a VisualizationLayer from c# nothing is displayed. However, it works using the same code with an InformationLayer. What do I need to do to get the VisualizationLayer to work?

Andrew

Andrey
Telerik team
 answered on 01 Aug 2014
2 answers
120 views
Hi,

If I try and set the Visibility of a RadSpreadsheetFormulaBar to Collapsed a NullReferenceException occurs.

See below for stack trace.

Thanks
Anthony

​System.NullReferenceException was unhandled
  HResult=-2147467261
  Message=Object reference not set to an instance of an object.
  Source=Telerik.Windows.Controls.Spreadsheet
  StackTrace:
       at Telerik.Windows.Controls.Spreadsheet.Controls.RadSpreadsheetFormulaBar.SetFormulaBarTextBoxText(String text, Int32 caretPosition)
       at Telerik.Windows.Controls.Spreadsheet.Controls.RadSpreadsheetFormulaBar.UpdateFormulaBarTextFromSelectedCell()
       at Telerik.Windows.Controls.Spreadsheet.Controls.RadSpreadsheetFormulaBar.InitializeWorksheetEditor()
       at Telerik.Windows.Controls.Spreadsheet.Controls.RadSpreadsheetFormulaBar.OnRadSpreadsheetPropertyChangedOverride()
       at Telerik.Windows.Controls.Spreadsheet.Controls.Core.RadSpreadsheetAttachedControlBase.OnRadSpreadsheetPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
       at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
       at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
       at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
       at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
       at System.Windows.DependencyObject.InvalidateProperty(DependencyProperty dp, Boolean preserveCurrentValue)
       at System.Windows.Data.BindingExpressionBase.Invalidate(Boolean isASubPropertyChange)
       at System.Windows.Data.BindingExpression.TransferValue(Object newValue, Boolean isASubPropertyChange)
       at System.Windows.Data.BindingExpression.Activate(Object item)
       at System.Windows.Data.BindingExpression.AttachToContext(AttachAttempt attempt)
       at System.Windows.Data.BindingExpression.MS.Internal.Data.IDataBindEngineClient.AttachToContext(Boolean lastChance)
       at MS.Internal.Data.DataBindEngine.Task.Run(Boolean lastChance)
       at MS.Internal.Data.DataBindEngine.Run(Object arg)
       at MS.Internal.Data.DataBindEngine.OnLayoutUpdated(Object sender, EventArgs e)
       at System.Windows.ContextLayoutManager.fireLayoutUpdateEvent()
       at System.Windows.ContextLayoutManager.UpdateLayout()
       at System.Windows.Interop.HwndSource.SetLayoutSize()
       at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)
       at System.Windows.Window.SetRootVisualAndUpdateSTC()
       at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)
       at System.Windows.Window.CreateSourceWindow(Boolean duringShow)
       at System.Windows.Window.ShowHelper(Object booleanBox)
       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.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 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.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 MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
       at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
       at System.Windows.Application.RunInternal(Window window)
       at System.Windows.Application.Run()
       at CustomFunctions.App.Main() in c:\Temp\xaml-sdk-master\xaml-sdk-master\Spreadsheet\CustomFunctions\obj\Debug\App_WPF.g.cs:line 0
       at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       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 System.Threading.ThreadHelper.ThreadStart()
  InnerException:
Anthony
Top achievements
Rank 1
Iron
Iron
Veteran
 answered on 31 Jul 2014
2 answers
176 views
Hi,

I'm looking for a way to change the header style (background + foreground colors) of a tileviewitem as mouse is moved over

So far none of the result on Google is helpful

Thanks
Huy
Top achievements
Rank 1
 answered on 31 Jul 2014
6 answers
148 views
Hi Team,
I am using RichTextBox in my project. All they keyboard controls work fine. But I want to give a toggle button for bold, italics and underline, so that the user can click on bold and make the text bold.

Can you please help me in this regard.
Petya
Telerik team
 answered on 31 Jul 2014
4 answers
1.0K+ views
I have RadTabControl with RadGridView in the ContentTemplate. I need bind this RadGridView as a command parameter to the button, that is outside the RadTabControl. Is there a way to do that? Looks like such feature is missing in your controls
skrec
Top achievements
Rank 1
 answered on 31 Jul 2014
5 answers
589 views
For a few older version and now in the Q3 release the row indicator arrow does not move to highlight the selected row anymore (see attached image), it remains static in the first row. What am I missing here?

Thanks.
Boris
Telerik team
 answered on 31 Jul 2014
1 answer
504 views
How can I create a horizontal line similar to what is supported in Word in C# code programmatically without ever showing a RichTextBox control on screen.  We are using RadDocument to output read-only report data.

Also,  how can I do this without messing up the font before and after the table?  The fonts get reduced in size just before and after the table.

internal static void AddHorizontalLine(Section sec, RadDocument doc, double widthInches)
{
    //insert a horizontal line - table with 1 row and column - with a top border line and a table height of a few pixels
          
    Table t = new Table() {PreferredWidth = new TableWidthUnit(TableWidthUnitType.Fixed, Unit.InchToDip(widthInches)) };
    Border noBorder = new Border(BorderStyle.None);
    t.Borders = new TableBorders(noBorder, new Border(BorderStyle.Single), noBorder, noBorder);
    TableRow row = new TableRow();
    row.Height = 2.0;

TableCell cell = new TableCell();
cell.PreferredWidth = new TableWidthUnit(TableWidthUnitType.Percent, 100.0);

Paragraph par = new Paragraph();
par.FontSize = 2;
par.Inlines.Add(new Span(" "));
cell.Blocks.Add(par);
row.Cells.Add(cell);

t.Rows.Add(row);

sec.Blocks.Add(t);

//We need to re-measure and re-layout the document after modifying the blocks, inlines, children and properties to format the output correctly. The fonts will be off if this is not done.
//doc.MeasureAndArrangeInDefaultSize(); //causes formatting problems in TOC
}

I've seen these two similar questions.
  http://www.telerik.com/forums/adding-an-horizontal-line-programatically
  http://www.telerik.com/forums/horizontal-line-ce12906b62c2

Petya
Telerik team
 answered on 31 Jul 2014
1 answer
203 views
Hi

I have a set of items which I need to show in grid. Items  can be grouped by some columns, but some rows I need to exclude from being grouped and display them in the same grid as regular rows without group row and indent cell.

ths,
Slava . 
Dimitrina
Telerik team
 answered on 31 Jul 2014
1 answer
104 views
We have a textblock in a cell as below:

    <contentpresenter Name="PART_ContentPresenter" Uid="40569470">
      <textblock AutomationId="CellElement_0_0" Uid="29580916">3</textblock>
    </contentpresenter>

I am using TTF in Visual Studio. When we start script to catch this cell/textblock. It gets object successfully but in textblock tag, i don't see the AutomationId element. 

However, after i turn on the Inspect.exe tool to try to verify properties on my product, i re-run my script, i see the AutomationId element appears in textblock tag. 

If I turn off inspect tool, restart my application, re-run my script again, i don't see the AutomationId element in textblock tag.... :(

I really need to get the AutomationId property to use it to get exactly data cell i need to work on.

Maybe the inspect tool performs any action on my application,... i am not sure. Could you please help me on this ? do i need to set any configuration in my script ?

Thanks and Regards,
Hoang.

Hoang
Top achievements
Rank 1
 answered on 31 Jul 2014
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
SplashScreen
Rating
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
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?