Telerik Forums
UI for WPF Forum
1 answer
238 views

 

This is urgent since I can't do anything else on my WPF app until this gets figured out! 

I was trying to add a RadCartesianChart on an existing WPF project and I was having the following error message on the designer view(even though it would compile and run normally):

[System.InvalidOperationException
Sequence contains more than one element
   at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable`1 source)
   at Microsoft.VisualStudio.DesignTools.XamlDesigner.Metadata.MockTypes.MockTypeGenerator.DefineGenericParameters(Type type, MockTypeDefinition mockType)
   at Microsoft.VisualStudio.DesignTools.XamlDesigner.Metadata.MockTypes.MockTypeGenerator.PopulateMockType(Type type, MockTypeDefinition mockType)
   at Microsoft.VisualStudio.DesignTools.XamlDesigner.Metadata.MockTypes.MockTypeGenerator.DefineType(Type type)
   at Microsoft.VisualStudio.DesignTools.XamlDesigner.Metadata.MockTypes.MockTypeGenerator.MockGenericType(Type type)
   at Microsoft.VisualStudio.DesignTools.XamlDesigner.Metadata.MockTypes.MockTypeGenerator.DefineType(Type type)
   at Microsoft.VisualStudio.DesignTools.XamlDesigner.Metadata.MockTypes.MockTypeGenerator.DefineProperty(TypeDefinition typeDefinition, PropertyInfo propertyInfo)....]

 

I tried a bunch of different things and the error remained, so I decided to create a new WPF project and paste some code from the RadChartView - Getting Started topic on http://docs.telerik.com/ and then I got
[System.NullReferenceException
Object reference not set to an instance of an object.
   at Microsoft.VisualStudio.DesignTools.XamlDesigner.Metadata.MockTypes.MockTypeDefinition.ImplementAbstractEvent(EventDefinition eventDefinition, Boolean shouldOverride, Action`3 emitAddMethodBody, Action`3 emitRemoveMethodBody)
   at Microsoft.VisualStudio.DesignTools.XamlDesigner.Metadata.MockTypes.InterfaceEmitterFactory.DefaultInterfaceEmitter.ImplementEvent(EventDefinition eventDefinition, Boolean shouldOverride)...]

I don't know if it helps but I attached an image of what the error looks like on the second case.

Peshito
Telerik team
 answered on 16 Nov 2015
5 answers
175 views

Hi,

I use INotifyLocationChanged to raise event when items of a VisualizationLayer move and it throws an exception in some particular case. I've joined a sample project that demonstrate this particular case. I'm I doing something wrong or this is a bug ?

Thank you,

Etienne

Martin Ivanov
Telerik team
 answered on 16 Nov 2015
3 answers
116 views

Hi,

 I've implemented the ScheduleView via my own models implementing the IAppointment interface.

In the normal Week view everything works fine, but as soon as I add a grouped view to the ScheduleView no appointments are displayed (although they are correctly loaded in the viewmodel).

The XAML I add:

<telerik:RadScheduleView.GroupDescriptionsSource>
                <telerik:GroupDescriptionCollection>
                    <telerik:ResourceGroupDescription ResourceType="Mitarbeiter"/>
                    <telerik:DateGroupDescription />
                </telerik:GroupDescriptionCollection>
</telerik:RadScheduleView.GroupDescriptionsSource>

 

Any suggestion what I'm doing wrong?

 thx​

Stefan
Top achievements
Rank 1
 answered on 16 Nov 2015
1 answer
402 views

I'm new to this so I'm hoping to find some direction.  I have a plot on in a RadCartesianChart.  I want to be able to right-click and capture the location of the mouse at that place. Before we had a double click mouse event and were able to do this:

1.private void ChartSelectionBehavior_SelectionChanged(object sender, Telerik.Windows.Controls.ChartView.ChartSelectionChangedEventArgs e)
2.{
3.     if (e.AddedPoints.Count > 0)
4.     {
5.          ViewModel.NotePoint = e.AddedPoints[0].DataItem as GraphPlots;
6.     }
7.}​

Now I have this:

private void standardGraph_MouseRightButtonUp(object sender, System.Windows.Input.MouseButtonEventArgs e)
{
     //I want to set the NotePoint of the View Model to the location
     //of the right-mouse click here
      
     plotContextMenu.Visibility = System.Windows.Visibility.Visible;
}​

I can get the location of the MouseButtonEvent, but once I do I'm not sure how to set it as a GraphPlot.

Here's my XML:

01.<telerik:RadCartesianChart Visibility="{Binding StdGraphVisibility}"
02.     x:Name="standardGraph"
03.     Height="500"
04.     Width="1000"
05.     MouseRightButtonDown="mouseRightButtonDown"
06.     MouseRightButtonUp="standardGraph_MouseRightButtonUp">
07.                                         
08.    <telerik:RadContextMenu.ContextMenu>
09.                                             
10.        <telerik:RadContextMenu x:Name="plotContextMenu"
11.            Visibility="Hidden">
12. 
13.            <telerik:RadMenuItem Header="Add note"
14.                x:Name="addNoteMenuItem"
15.                Click="addNoteMenuItem_Click" />
16. 
17.            </telerik:RadContextMenu>
18.        </telerik:RadContextMenu.ContextMenu>
19.           
20.        <telerik:RadCartesianChart.Behaviors>
21.         
22.            <telerik:ChartSelectionBehavior DataPointSelectionMode="Single" 
23.                SelectionChanged="ChartSelectionBehavior_SelectionChanged"/>
24. 
25.        </telerik:RadCartesianChart.Behaviors>
26.                             
27.        <telerik:RadCartesianChart.HorizontalAxis>
28.        </telerik:RadCartesianChart.HorizontalAxis>
29.         
30.        <telerik:RadCartesianChart.VerticalAxis>  
31.        </telerik:RadCartesianChart.VerticalAxis>
32.                             
33.        <telerik:RadCartesianChart.Grid>
34.         
35.            <chartView:CartesianChartGrid MajorLinesVisibility="Y" StripLinesVisibility="Y" />
36.             
37.        </telerik:RadCartesianChart.Grid>
38. 
39.        <telerik:RadCartesianChart.Series>
40.            <telerik:LineSeries Stroke="Orange"
41.                CategoryBinding="Category"
42.                ValueBinding="Value"
43.                ItemsSource="{Binding GraphValue}">
44.            </telerik:LineSeries>
45.             
46.        <telerik:PointSeries CategoryBinding="Category"
47.            ValueBinding="Value"
48.            ItemsSource="{Binding Notes}">
49.        </telerik:PointSeries>
50.    </telerik:RadCartesianChart.Series>
51.</telerik:RadCartesianChart>
 

Petar Marchev
Telerik team
 answered on 16 Nov 2015
2 answers
357 views

We have a existing project that uses some older telerik libraries.
This application uses the RadRibbonView inside of an ElementHost control. It works great with the older telerik libraries.

I upgraded to the latest 2015 Q3 binaries and I am having problems.

The ribbon no longer displays in the element host.

I did some sanity checks by putting other telerik components into the element host, and they display fine.

Attached is a simple project that reproduces the issue.

Basically it creates a usercontrol.
Adds a simple ribbonview
Adds this ribbon view to a win forms control via element host.

Link to the project:
https://goo.gl/vJv5BG

 

Kiril Vandov
Telerik team
 answered on 16 Nov 2015
4 answers
139 views
Hi, I've been trying to use CodedUI test in Visual Studio 2013 but I got all these error messages.
I've looked up the documentation for UI for WPF and found that only Visual Studio 2010 and 2012 are supported.
I was wondering if and when you are planning to release dlls for CodedUI test for Visual Studio 2013.
Thanks!
Maya
Telerik team
 answered on 16 Nov 2015
3 answers
208 views

Hey, I'm doing automated UI testing on a WPF application and we want to test exporting a table into multiple formats. The issue I'm having is that I can't seem to change the "Save as type" drop down menu in the save dialog. I'm using this script to save the file right now:

 

SaveAsDialog saveDlg = SaveAsDialog.CreateSaveAsDialog(Manager.ActiveApplication, DialogButton.SAVE, @"C:\test " + date);
Manager.DialogMonitor.AddDialog(saveDlg);
Manager.DialogMonitor.Start();
 

// Click export button script

 
saveDlg.WaitUntilHandled(30000);
Manager.DialogMonitor.Stop();​

Cody
Telerik team
 answered on 13 Nov 2015
3 answers
202 views
Hello,

I use RadCarousel to show  photograph of persons in the HR module. If the user changes a person's photograph, how can I update only this single image in the RadCarousel, without reread all pictures? I use DataTemplate for the CarouselItemTemplate, a short video about it: http://www.youtube.com/watch?v=b3DCjnU-CyU .

I use PowerBuilder 12.1 .NET, so I can use only very simple things, I can’t define e.g. event handler. After I started to use this DataTemplate, the Reflection has disappeared, how can I start it again?

Thank you very much!

Péter Tóth

Martin Ivanov
Telerik team
 answered on 13 Nov 2015
4 answers
180 views
Hi,

Power Builder 12.0.NET will using Visual Studio Isolated Shell (now, still in beta version).Did Telerik  WPF Control fully support Power Builder 12.0.NET?Especially in Datawindow feature.If is support it, my company have a plan to use Telerik WPF Control.
Thanks.

Best Regard
Deny FS.
Martin Ivanov
Telerik team
 answered on 13 Nov 2015
4 answers
91 views

I have noticed that when using Intersection PropertySetMode that property change notifications from Objects in the List of items are not used by the property grid. Is this a known limitation or a bug?

 

I am using version 2015.2.728.

 

PropertyGrid.PropertySetMode = PropertySetOperation.Intersection;
PropertyGrid.Item = new List<Object> { myObject1, myObject2 };

 

// Property change notifications from myObject1 and myObject2 do cause the property grid values to update.

Stefan Nenchev
Telerik team
 answered on 13 Nov 2015
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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?