Good afternoon. How can I save the geometry of the selected objects to RadDiagram in xaml file? Now I take the RadDiagramShape geometry, convert it to a string and written in the xaml file. But when I try the reverse conversion, an error is thrown
1) the RadDiagramShape declare
<telerik:RadDiagramShape x:Name="ConditionShape"
IsEditable="False"
AllowCopy="False" AllowCut="False" AllowDelete="False" AllowDrop="False" AllowPaste="True" Background="Azure"
Geometry="{telerik:CommonShape ShapeType=RectangleShape }" StrokeThickness="1" Height="100" Width="100" RenderTransformOrigin="0.5,0.5" Position="180,50"/>
2) the entry in the xaml file
Init.overview.LibraryItems.FunctionItem[end].Data = Convert.ToString(ShapeFactory.GetShapeGeometry(FlowChartShapeType.DecisionShape));
FunctionLibrary Done = new FunctionLibrary();
Done = Init.overview;
XmlSerializer xml = new XmlSerializer(typeof(FunctionLibrary));
file.Close();
using (var fStream = new FileStream(path: "./****.xml", mode: FileMode.Create, access: FileAccess.Write, share: FileShare.ReadWrite))
{
xml.Serialize(fStream, Done);
fStream.Close();
}
3) the result in a file
<Data>M56;0,5L111,5;37,5 56;74,5 0,5;37,5z</Data>
4) and the inverse transform
var converter = new System.Windows.Media.GeometryConverter();
var data = (Geometry) converter.ConvertFromString(ListCode[i].Data);
ConditionShape.Geometry = data;
this line is not recognized as geometry. how to convert in the required format?
Hi,
I'm trying to get my UI framework built and I'm having some difficulty getting the default state of things working correctly. I attached two photos, one is the default view that my current XAML gives me and the second picture is how I want it to be displayed by default. Essentially, I would like a new RadPane or RadDocumentPane to display as a Tabbed Document by default. This means having each pane have it's own "window", not tabs stacked up in the same window. Hopefully that makes sense.
If you need any other information, please let me know.
Kindest Regards,
Craig
My XAML:
<TabControl.ContentTemplate>
<DataTemplate>
<!--<telerik:RadDocking>
<telerik:RadDocking.DocumentHost>
<telerik:RadSplitContainer>
<telerikHelpers:PyrixRadPaneGroup PanesSource="{Binding DockingManagerVM.DockingWindowVMs}"
PanesTemplateSelector="{StaticResource DockingTemplateSelector}" />
</telerik:RadSplitContainer>
</telerik:RadDocking.DocumentHost>
</telerik:RadDocking>-->
<telerik:RadDocking x:Name="radDocking1">
<telerik:RadSplitContainer Height="200" InitialPosition="DockedTop" Orientation="Horizontal">
<telerik:RadPaneGroup telerik:ProportionalStackPanel.RelativeSize="200, 200">
<telerik:RadPane Header="pane" />
</telerik:RadPaneGroup>
<telerik:RadPaneGroup telerik:ProportionalStackPanel.RelativeSize="400, 200">
<telerik:RadDocumentPane Header="pane" />
</telerik:RadPaneGroup>
</telerik:RadSplitContainer>
</telerik:RadDocking>
</DataTemplate>
</TabControl.ContentTemplate>
Hi,
This behavior is not the same as Microsoft's TreeViewItem.
If I host let's say multiple RadTreeView in a Docking system, each in a different RadPanel where each TreeView is contained in a UserControl with FocusManager.IsFocusScope = true (this is important for proper RoutedCommand routing), then as I select a node in each treeview and activate different panels, the highlighted "focused" state stays on, they don't turn to gray. I find this very confusing in the UI because now you don't know which treeview has actual focus (other than seeing which panel is active.) Press an arrow key, hmm, I wonder which treeview's will act upon it. :) We also have a mixture of WPF controls and your Rad controls, so they are dealing with lost focus with selection in inconsistent ways.
(This actually occurs for all your controls, like RadGridView and RadPropertyGrid, but I'm picking on the radtreeview for now.)
The main question is: Was this intended behavior? If yes, then I guess I'll move on, sadly (maybe change your source code). I might then ask why you wanted to deviate from Microsoft's default behavior, since generally I'm seeing an effort in most of your controls to try to emulate the WPF controls pretty closely (at least the simple ones :)). Or why you didn't want to provide a property to choose between this behavior or the default (Microsoft) way.
For tech talk, if you use ILSpy and look at WPF's TreeViewItem.ChangeVisualState(), you'll see that Microsoft is looking at IsKeyboardFocused to determine whether to highlight or gray out a treeviewitem. In your RadTreeViewItem.ChangeVisualState(), you are checking IsFocused, which is logical focus, not keyboard focus. That's why all my treeviews show a highlighted blue selected node at the same time.
Hello,
I am using RadGridView in my WPF application along with IDataErrorInfo for Validation.
For every column in the grid, I am currently setting ValidatesOnDataErrors = "InViewMode". In case of validation errors, the cells with errors get a red validation border and the whole row gets a red background (as shown in the attachment).
My requirement is such that I want to remove the red background of the row and show one red validation border on the whole row instead of separate errors on the cells. I also want to remove the red icon from the row (as shown in attachment). So whenever there is an error in any cell, the whole row should get a validation border, and not the individual cells. Is there a way to do this?
When i want to show a telerik report in my application, i get the follow error in the report.
"An error has ocurred while processing Table 'table1'
The assembly xxx is not permitted to be used by an ObjectDataSource component. Please include it in an AssemblyReferences element in the Telerik.Reporting configurarion section of your applicacion configuration file.
i included a configuration file, with my string connections and i seen the follow article :
http://www.telerik.com/forums/the-assembly-xxx-is-not-permitted-to-be-used-in-an-objectdatasource
http://www.telerik.com/support/kb/reporting/details/telerik-reporting-r3-2016---upgrade-issues-with-objectdatasource-component
but, i don't to solve this problem.
This page (http://docs.telerik.com/devtools/wpf/api/html/t_telerik_windows_controls_data_propertygrid_editing_propertygridpreparededitoreventhandler.htm) lists PropertyGridPreparedEditorEventArgs as the type that the RadPropertyGrid PreparedEditor event should receive. That type doesn't exist (version 2016.1.112.45). If I try to just declare EventArgs, it blows up at run time.
How do I use this event?
I've started with your excellent RadSpreadsheet "First Look" SDK example so I have a dialog that looks a lot like Excel. I can fill in my data nicely.
But what I'd like to do is to add buttons to the spreadsheet. Clicking those buttons would open small modal forms for calculating data which I'd use to update the sheet. I do not see that I can put a button into a cell. Is it possible to put a button onto the spreadsheet?
Thanks.
-reilly.
System.Windows.Markup.XamlParseException was unhandled
Message: An unhandled exception of type 'System.Windows.Markup.XamlParseException' occurred in PresentationFramework.dll
Additional information: Zeilennummer "4" und Zeilenposition "17" von "Durch den Aufruf des Konstruktors für Typ "MyNamesspace.MainWindow", der den angegebenen Bindungseinschränkungen entspricht, wurde eine Ausnahme ausgelöst.".
The MainWindow.xaml (Position 4, 17):
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
On the development Computer (where Telerik installed), everything works.
How can I install application at the customer Computer?