Coder Social home page Coder Social logo

xaml-conversion's People

Contributors

svick avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

xaml-conversion's Issues

Getting System.NullReferenceException: Object reference not set to an instance of an object. at XamlConversion.Parsers.ParserBase.GetTypeFromXName(XName xName)

Hi,

Using this source as a reference for converting the .xaml to c#, the xaml string given in the demo app works perfectly , but when i change the xaml string to any other xaml string as given below. Get the null reference error for XAML Type, is it related to dll files that are being loaded by default from GAC ?

Please let me know .

//
string xaml = @"<Activity mc:Ignorable=""sap sap2010"" x:Class=""DisplayMessage_Chash"" sap2010:ExpressionActivityEditor.ExpressionActivityEditor=""C#"" sap:VirtualizedContainerService.HintSize=""721.6,610.4"" sap2010:WorkflowViewState.IdRef=""ActivityBuilder_1"" xmlns=""http://schemas.microsoft.com/netfx/2009/xaml/activities"" xmlns:mc=""http://schemas.openxmlformats.org/markup-compatibility/2006"" xmlns:sap=""http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation"" xmlns:sap2010=""http://schemas.microsoft.com/netfx/2010/xaml/activities/presentation"" xmlns:scg=""clr-namespace:System.Collections.Generic;assembly=System.Private.CoreLib"" xmlns:sco=""clr-namespace:System.Collections.ObjectModel;assembly=System.Private.CoreLib"" xmlns:ui=""http://schemas.uipath.com/workflow/activities"" xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml"">
<TextExpression.NamespacesForImplementation>
<sco:Collection x:TypeArguments=""x:String"">
<x:String>System.Activities</x:String>
<x:String>System.Activities.Statements</x:String>
<x:String>System.Activities.Expressions</x:String>
<x:String>System.Activities.Validation</x:String>
<x:String>System.Activities.XamlIntegration</x:String>
<x:String>Microsoft.VisualBasic</x:String>
<x:String>Microsoft.VisualBasic.Activities</x:String>
<x:String>System</x:String>
<x:String>System.Collections</x:String>
<x:String>System.Collections.Generic</x:String>
<x:String>System.Data</x:String>
<x:String>System.Diagnostics</x:String>
<x:String>System.Linq</x:String>
<x:String>System.Net.Mail</x:String>
<x:String>System.Xml</x:String>
<x:String>System.Text</x:String>
<x:String>System.Xml.Linq</x:String>
<x:String>UiPath.Core</x:String>
<x:String>UiPath.Core.Activities</x:String>
<x:String>System.Windows.Markup</x:String>
<x:String>GlobalVariablesNamespace</x:String>
<x:String>GlobalConstantsNamespace</x:String>
<x:String>System.Linq.Expressions</x:String>
</sco:Collection>
</TextExpression.NamespacesForImplementation>
<TextExpression.ReferencesForImplementation>
<scg:List x:TypeArguments=""AssemblyReference"" Capacity=""22"">
Microsoft.CSharp
System
System.Core
System.Activities
System.Data
System.Runtime.Serialization
System.ServiceModel
System.ServiceModel.Activities
System.Xaml
System.Activities
Microsoft.VisualBasic
System.Private.CoreLib
System.Data
System
System.Core
System.Xml
System.Xml.Linq
System.Xaml
UiPath.System.Activities
UiPath.UiAutomation.Activities
UiPath.Studio.Constants
</scg:List>
</TextExpression.ReferencesForImplementation>
<Sequence DisplayName=""DisplayMessage_Chash"" sap:VirtualizedContainerService.HintSize=""400,175.2"" sap2010:WorkflowViewState.IdRef=""Sequence_1"">
sap:WorkflowViewStateService.ViewState
<scg:Dictionary x:TypeArguments=""x:String, x:Object"">
<x:Boolean x:Key=""IsExpanded"">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<ui:MessageBox Caption=""{x:Null}"" ChosenButton=""{x:Null}"" AutoCloseAfter=""00:00:00"" DisplayName=""Message Box"" sap:VirtualizedContainerService.HintSize=""356.8,85.6"" sap2010:WorkflowViewState.IdRef=""MessageBox_1"">
ui:MessageBox.Text
<InArgument x:TypeArguments=""x:Object"">
<CSharpValue x:TypeArguments=""x:Object"" sap2010:WorkflowViewState.IdRef=""CSharpValue`1_1"">""Test Message""

</ui:MessageBox.Text>
</ui:MessageBox>

";
////

Hi how to use this library?

Hi, can you guide how to use this library code? Like
XamlConvertor myConvertor = new XamlConvertor();
myLabel.Content = myConvertor.ConvertToString("?");

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.