Telerik Forums
UI for WPF Forum
3 answers
96 views

Hi,

I have noticed what appears to be a bug.

How to repeat:

1. Copy any email address from the body of an Outlook Email (Outlook 2013).

2. Paste the email address into the radrichtextbox.

3. Save the content via code below;

 Dim fp As New RtfFormatProvider
 Dim Result As String = fp.Export(rtb.Document) <<< exception occurs

Exception Details:

"The given key was not present in the dictionary."

Stack Trace:

at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at Telerik.Windows.Documents.FormatProviders.Rtf.Export.RtfDocumentExporter.ExportSpanProperties(SpanProperties spanProps, ExportContext context, RtfWriter writer)
   at Telerik.Windows.Documents.FormatProviders.Rtf.Export.RtfDocumentExporter.ExportSpanProperties(Span span)
   at Telerik.Windows.Documents.FormatProviders.Rtf.Export.RtfDocumentExporter.ExportSpan(Span span)
   at Telerik.Windows.Documents.FormatProviders.Rtf.Export.RtfDocumentExporter.ExportInline(Inline inline)
   at Telerik.Windows.Documents.FormatProviders.Rtf.Export.RtfDocumentExporter.ExportFieldFragment(DocumentFragment fragment)
   at Telerik.Windows.Documents.FormatProviders.Rtf.Export.RtfDocumentExporter.ExportCodeBasedFieldRangeStart(FieldRangeStart fieldStart)
   at Telerik.Windows.Documents.FormatProviders.Rtf.Export.RtfDocumentExporter.ExportFieldRangeStart(FieldRangeStart rangeStart)
   at Telerik.Windows.Documents.FormatProviders.Rtf.Export.RtfDocumentExporter.ExportInline(Inline inline)
   at Telerik.Windows.Documents.FormatProviders.Rtf.Export.RtfDocumentExporter.ExportParagraph(Paragraph paragraph)
   at Telerik.Windows.Documents.FormatProviders.Rtf.Export.RtfDocumentExporter.ExportBlock(Block block)
   at Telerik.Windows.Documents.FormatProviders.Rtf.Export.RtfDocumentExporter.ExportSection(Section section)
   at Telerik.Windows.Documents.FormatProviders.Rtf.Export.RtfDocumentExporter.ExportDocument()
   at Telerik.Windows.Documents.FormatProviders.Rtf.Export.RtfDocumentExporter.Export()
   at Telerik.Windows.Documents.FormatProviders.Rtf.RtfFormatProvider.Export(RadDocument document, Stream output)
   at Telerik.Windows.Documents.FormatProviders.Rtf.RtfFormatProvider.Export(RadDocument document)

 

If any more information is required please let me know and I will provide what I can.

 

Kind Regards,

 

Shaun

Shaun
Top achievements
Rank 1
 answered on 14 Apr 2016
7 answers
399 views

I'm playing around with data virtualization to try to fix major performance issues I have with a smooth-scrolling scrollviewer. This scrollviewer is touch gesture-enabled, so flick/swipe gestures are interpreted as moving to the next page of items. Unfortunately, I haven't been having the best of luck.

Does anybody know how I could incorporate UI and data virtualization to show a page of items with the next page peeking in from the sides? A swipe would smoothly scroll the horizontal offset to the next page. Think of how mobile apps do list paging. 

Attached is a 2-stage mockup of how I expect this behavior to work. Doing this without virtualization has been accomplished but it's an entirely different story when you want UI and data virtualization. Any help would be appreciated. 

Ivan Ivanov
Telerik team
 answered on 14 Apr 2016
3 answers
301 views

Hi to all,

how can I find a RadWindow that has focus?

We have MainView that opens several RadWindow, but I need to know which is focused, because may have central command to operata on it.

Can I use RadWindowManager?

Everything else?

 
Nasko
Telerik team
 answered on 14 Apr 2016
1 answer
136 views

Hi,

I'm try to customize the dialog to create or edit appointments if I do a coubleclick on the schedule. 

I try two approches.

1. Create a EditAppointmentDialogStyle and EditAppointmentTemplate. So the template shows the content what I want. But I can't set a custom header on the dialog over the EditAppointmentDialogStyle .

2. Create a custom ScheduleViewDialogHostFactory. Here is the problem that I can't set a custom control as a template.

protected override IScheduleViewDialogHost CreateNew(ScheduleViewBase scheduleView, DialogType dialogType)       {           var window = new ShiftWindowDialogHost()           {               

             //                Content = new SchedulerDialog(),               

          Content = ServiceLocator.Current.GetInstance<UserManagement>(),               

            ScheduleView = scheduleView,               

             Header = "What a charm"           };           

    StyleManager.SetThemeFromParent(window, scheduleView);           

return window;       }

I get the exception

System.InvalidOperationException: 'SchedulerDialog' TargetType does not match type of element '.
   at System.Windows.Style.CheckTargetType(Object element)

 

Nasko
Telerik team
 answered on 14 Apr 2016
9 answers
239 views

How come when I changed my chart from scatter line series to spline series, the graph is still show as scatter line?  Is there any special thing with horizontal axis?  With the scatter line series, both horizontal axis and vertical axis are LinearAxis.  When I change to Spline series, I must change to CategoricalAxis, otherwise the graph will not show.

Thanks,

Steve

Steve
Top achievements
Rank 1
 answered on 14 Apr 2016
4 answers
527 views

Hello,

I am trying to set up a WPF RadGridView with cell validation.  I have bound the "CellValidating" event, and within it, when data fails a check, I set the "ev.ErrorMessage" to the message I want displayed, and set "ev.IsValid" to false.  This marks the input element with a red border and a little triangle in the upper right corner.  When mousing over the triangle, it shows the tooltip. 

What I want is for that tooltip to remain shown at all times the same way that the errors are displayed when an exception is thrown while parsing data.  Is there a way of achieving this? 

Gord
Top achievements
Rank 1
 answered on 13 Apr 2016
2 answers
268 views

I'm running into a very odd problem that I am finding impossible to debug. I use customized column autogeneration of the RadGridView. Basically, on binding, it looks at each object that it is bound to and customizes the column based on attribute metadata decorating each property of the bound object. This all works fine.

In the app, I have a ComboBox which when a different item is selected, it changes the data source of the grid, clears the columns, and toggles the autogenerate property of the grid so that it generates columns based on the new data source. This code looks like this:

        private async void Grid_OnDataLoading(object sender, GridViewDataLoadingEventArgs e)
        {
            var grid = (RadGridView)sender;
            if (grid.AutoGenerateColumns != true) return;


            grid.Columns.RemoveItems(grid.Columns.Cast<GridViewColumn>().Where(c => c.GetType() != typeof(GridViewToggleRowDetailsColumn)).ToArray());
            grid.AutoGenerateColumns = false;
            grid.AutoGenerateColumns = true;  //Throws here
        }

This code works normally when the app first loads. It only throws when the ComboBox is toggled and the grid's source is changed. Even more bizarre, it used to work fine in all situations, but at some point some change was introduced to the codebase somewhere which is now producing a bizarre error.

On the call to grid.AutoGenerateColumns = true, it is now throwing an exception, saying "No target found for method AutoGeneratingColumn". And it is Calburn Micro throwing this error, which I have no idea why this would it would even be involved in this process.

Any advice on how to debug this further would be really appreciated, as I've spent a lot of time on it and am at a total loss. Thanks.

Sam
Top achievements
Rank 1
 answered on 13 Apr 2016
2 answers
160 views

Hi All,

Currently using the RadCalendar control, we would like to display and focus on the Selected Date only,

I have been able to use IsTodayHighlighted="False" however if my selected date is in a different month, I still get the current month showing.

The Aspnet-Ajax calendar control has a FocusedDate property, is there any thing similar in the WPF control.

Many thanks

Nasko
Telerik team
 answered on 13 Apr 2016
2 answers
286 views

Apparently the worksheet's Cells.CellPropertyChanged event is not raised when a cell with a formula is recalculated because one of the source cells was changed. Is there any way of getting notified in this situation?

 

Fabrice
Top achievements
Rank 1
 answered on 13 Apr 2016
1 answer
324 views

design a simple (no fancy/shining color change), comfortable, friendly (easy-to-use) user interface for a WPF desktop application (by MVVM pattern) by C# in VS2013 on win 7

I would like to design a WPF desktop application by C# in VS2013 on win 7.

I need to design an UI look like this attached example blow. I have checked the WPF toolbox in VS2013, I do not find a layout template that can provide an UI like this.

In order to design a simple, comfortable and friendly (easy-to-use) user interface, I have checked the links :

       prism http://compositewpf.codeplex.com/
        http://stackoverflow.com/questions/2135092/creating-a-nice-gui-in-wpf>
        http://ux.stackexchange.com/questions/10776/where-can-i-find-a-gallery-of-wpf-ui-examples

But, they are not a good fit for my application.

I need a user interface :
      1. some tool menus on the top such as "File", "Edit", "project", "tool" , "help", which look much like the most popular UI style in MS office tools.
      2. some shortcut icons for some hot uses below the tool menu
      3. The  left panel are separated into 3 parts : left, middle, right
      4.  Each part size can be changed by holding the vertical separator
      5 . Each part is separated into 2 vertical parts
      6. In left-upper part, there some tree-view buttons, when a button is clicked, a detailed subtree buttons are shown at the left-lower part.
     7. In the middle part, some data chart, tables, curves are shown at the upper-part and the related detailed data are shown at the lower-part.
     8. In the middle part, I need multiple tabs to show the data and charts
     9. In the right-part, it holds some animations related to the data shown in the middle part.
     10. the color of the application should be consistent, simple and flat (not much gradient change, e.g. ligth-gray is fine), not so fancy like prism.

Are there some templates similar like this ? 

Any suggestions ? Thanks !

 

Martin Ivanov
Telerik team
 answered on 13 Apr 2016
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
Slider
Expander
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
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
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?