Verified SampleForDoc, some samples need to be taken care of

This commit is contained in:
vczh
2023-12-20 14:13:07 -08:00
parent 7748215df8
commit 5c7c16553b
5 changed files with 15 additions and 6 deletions

3
.gitignore vendored
View File

@@ -7,6 +7,9 @@ Tools/*.exe
#Vczh Libraries
*.xml.log/
#SampleForDoc Binaries
SampleForDoc/GacUI/UIRes/*/*.bin
# User-specific files
*/**/.vs/
*.suo

View File

@@ -0,0 +1,3 @@
# SampleForDoc x86 Resource Binaries
Go to `..\..\XmlRes` folder and run `..\..\..\Tools\GacBuild.ps1 .\GacUI.xml` to generate these files

View File

@@ -0,0 +1,3 @@
# SampleForDoc x64 Resource Binaries
Go to `..\..\XmlRes` folder and run `..\..\..\Tools\GacBuild.ps1 .\GacUI.xml` to generate these files

View File

@@ -154,7 +154,7 @@
bottom:0
right:(
cast int Math::Round(
(1 - self.animationBuilder.Current.Length) * (self.boundary.Bounds.x2 - self.boundary.Bounds.x1 - 10)
(1 - self.animationBuilder.Current.Length) * (self.boundary.CachedBounds.x2 - self.boundary.CachedBounds.x1 - 10)
)
)
};
@@ -162,10 +162,10 @@
]]></ref.Members>
<SelectableButtonTemplate ref.Name="self" ContainerComposition-ref="container" MinSizeLimitation="LimitToElementAndChildren">
<Bounds ref.Name="boundary" AlignmentToParent="left:0 top:0 right:0 bottom:0">
<Bounds AlignmentToParent-bind="self.observe as _ (_.GetAlignment() on _.boundary.BoundsChanged, _.animationBuilder.Current.LengthChanged)">
<Bounds AlignmentToParent-bind="self.observe as _ (_.GetAlignment() on _.boundary.CachedBoundsChanged, _.animationBuilder.Current.LengthChanged)">
<SolidBorder Color-bind="self.animationBuilder.Current.Border" Shape="shapeType:RoundRect radiusX:5 radiusY:5"/>
</Bounds>
<Bounds AlignmentToParent-bind="self.observe as _ (_.GetAlignment() on _.boundary.BoundsChanged, _.animationBuilder.Current.LengthChanged)">
<Bounds AlignmentToParent-bind="self.observe as _ (_.GetAlignment() on _.boundary.CachedBoundsChanged, _.animationBuilder.Current.LengthChanged)">
<SolidBackground Color-bind="self.animationBuilder.Current.Background" Shape="shapeType:RoundRect radiusX:5 radiusY:5"/>
</Bounds>
</Bounds>

View File

@@ -33,10 +33,10 @@
var oIde = new IDE^();
for (att in xIde.attributes)
{
switch (att.name)
switch (att.name.value)
{
case "name": { oIde.Name = att.value; }
case "dev": { oIde.Developer = att.value; }
case "name": { oIde.Name = att.value.value; }
case "dev": { oIde.Developer = att.value.value; }
}
}
ides.Add(oIde);