mirror of
https://github.com/ZuneDev/ZuneUIXTools.git
synced 2026-07-27 13:11:59 -07:00
Fix namespaces on element property assignments
This commit is contained in:
@@ -3,6 +3,7 @@ using Microsoft.Iris.DecompXml.Mock;
|
|||||||
using Microsoft.Iris.Markup;
|
using Microsoft.Iris.Markup;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Globalization;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Xml;
|
using System.Xml;
|
||||||
@@ -224,7 +225,7 @@ public class Decompiler
|
|||||||
bool b => b ? "true" : "false",
|
bool b => b ? "true" : "false",
|
||||||
IStringEncodable strEnc => strEnc.EncodeString(),
|
IStringEncodable strEnc => strEnc.EncodeString(),
|
||||||
IrisExpression expr => '{' + expr.Decompile(_context) + '}',
|
IrisExpression expr => '{' + expr.Decompile(_context) + '}',
|
||||||
Enum en => en.ToString(),
|
IFormattable formattable => formattable.ToString(null, CultureInfo.InvariantCulture),
|
||||||
|
|
||||||
Layout.ILayout layoutObj
|
Layout.ILayout layoutObj
|
||||||
when Layout.PredefinedLayouts.TryConvertToString(layoutObj, out var layoutName)
|
when Layout.PredefinedLayouts.TryConvertToString(layoutObj, out var layoutName)
|
||||||
@@ -264,7 +265,7 @@ public class Decompiler
|
|||||||
switch (xfValue)
|
switch (xfValue)
|
||||||
{
|
{
|
||||||
case XElement xValue:
|
case XElement xValue:
|
||||||
var xProperty = GetOrCreateElement(xTarget, property.Name);
|
var xProperty = GetOrCreateElement(xTarget, _nsUix + property.Name);
|
||||||
xProperty.Add(xValue);
|
xProperty.Add(xValue);
|
||||||
return xProperty;
|
return xProperty;
|
||||||
|
|
||||||
|
|||||||
@@ -9,21 +9,21 @@
|
|||||||
</Properties>
|
</Properties>
|
||||||
</Class>
|
</Class>
|
||||||
<UI Name="AboutDialogContentUI" Base="dialog:DialogContentUI">
|
<UI Name="AboutDialogContentUI" Base="dialog:DialogContentUI">
|
||||||
<Content xmlns="">
|
<Content>
|
||||||
<Panel MaximumSize="360, 0" xmlns="http://schemas.microsoft.com/2007/uix">
|
<Panel MaximumSize="360, 0">
|
||||||
<Layout xmlns="">
|
<Layout>
|
||||||
<FlowLayout DefaultChildAlignment="Near" Orientation="Vertical" xmlns="http://schemas.microsoft.com/2007/uix" />
|
<FlowLayout DefaultChildAlignment="Near" Orientation="Vertical" />
|
||||||
</Layout>
|
</Layout>
|
||||||
<Children>
|
<Children>
|
||||||
<Panel Margins="10">
|
<Panel Margins="10">
|
||||||
<Layout xmlns="">
|
<Layout>
|
||||||
<FlowLayout Orientation="Horizontal" xmlns="http://schemas.microsoft.com/2007/uix" />
|
<FlowLayout Orientation="Horizontal" />
|
||||||
</Layout>
|
</Layout>
|
||||||
<Children>
|
<Children>
|
||||||
<Graphic Content="{styles:Styles.IconZuneAbout}" StretchingPolicy="Uniform" SizingPolicy="SizeToContent" />
|
<Graphic Content="{styles:Styles.IconZuneAbout}" StretchingPolicy="Uniform" SizingPolicy="SizeToContent" />
|
||||||
<Panel Margins="10, 10, 0, 10">
|
<Panel Margins="10, 10, 0, 10">
|
||||||
<Layout xmlns="">
|
<Layout>
|
||||||
<DockLayout DefaultLayoutInput="Top" xmlns="http://schemas.microsoft.com/2007/uix" />
|
<DockLayout DefaultLayoutInput="Top" />
|
||||||
</Layout>
|
</Layout>
|
||||||
<Children>
|
<Children>
|
||||||
<label:Label Content="{zuneUI:Shell.LoadString(zuneUI:StringId.IDS_ABOUTDIALOG_COPYRIGHT_LINE1)}" Style="{styles:SharedStyles.DialogTextStyle}" />
|
<label:Label Content="{zuneUI:Shell.LoadString(zuneUI:StringId.IDS_ABOUTDIALOG_COPYRIGHT_LINE1)}" Style="{styles:SharedStyles.DialogTextStyle}" />
|
||||||
|
|||||||
Reference in New Issue
Block a user