Exemplo n.º 1
0
            public AnalysisActions Analyze(RapidXamlElement element, ExtraAnalysisDetails extraDetails)
            {
                var result = AutoFixAnalysisActions.RenameElement("newcontrols:WebView2");

                result.AndAddXmlns("newcontrols", "https://somenewdomain/newcontrols");

                return(result);
            }
Exemplo n.º 2
0
            public AnalysisActions Analyze(RapidXamlElement element, ExtraAnalysisDetails extraDetails)
            {
                var result = AutoFixAnalysisActions.RenameElement("WebView2");

                result.AndAddAttribute("Source", "https://rapidxaml.dev/");

                return(result);
            }
Exemplo n.º 3
0
 public AnalysisActions Analyze(RapidXamlElement element, ExtraAnalysisDetails extraDetails)
 {
     if (element.ContainsChild("TextBlock"))
     {
         return(AutoFixAnalysisActions.RemoveChild(element.Children.First(c => c.Name == "TextBlock")));
     }
     else
     {
         return(AutoFixAnalysisActions.None);
     }
 }
Exemplo n.º 4
0
 public AnalysisActions Analyze(RapidXamlElement element, ExtraAnalysisDetails extraDetails)
 {
     if (!element.ContainsAttribute("OnLoaded"))
     {
         return(AutoFixAnalysisActions.AddAttribute("OnLoaded", "OnLoadedEventHandler"));
     }
     else
     {
         return(AutoFixAnalysisActions.None);
     }
 }
Exemplo n.º 5
0
 public AnalysisActions Analyze(RapidXamlElement element, ExtraAnalysisDetails extraDetails)
 {
     return(AutoFixAnalysisActions.RenameElement("WebView2"));
 }
Exemplo n.º 6
0
 public AnalysisActions Analyze(RapidXamlElement element, ExtraAnalysisDetails extraDetails)
 {
     return(AutoFixAnalysisActions.ReplaceElement("<MyNewElement />"));
 }
 public AnalysisActions Analyze(RapidXamlElement element, ExtraAnalysisDetails extraDetails)
 {
     return(AutoFixAnalysisActions.AddXmlns("newcontrols", "https://somenewdomain/newcontrols"));
 }
Exemplo n.º 8
0
 public AnalysisActions Analyze(RapidXamlElement element, ExtraAnalysisDetails extraDetails)
 {
     return(AutoFixAnalysisActions.AddChildString("<WebView.SomeProperty>SomeValue</WebView.SomeProperty>"));
 }
Exemplo n.º 9
0
 public AnalysisActions Analyze(RapidXamlElement element, ExtraAnalysisDetails extraDetails)
 {
     return(AutoFixAnalysisActions.RemoveAttribute("OnLoaded"));
 }