Add UIX source samples from Zune Software v2.1

This commit is contained in:
Joshua Askharoun
2021-04-05 12:42:50 -05:00
parent 77ddf0360b
commit 4df9264e6d
121 changed files with 44242 additions and 1 deletions
+46
View File
@@ -0,0 +1,46 @@
<!-- Copyright (C) Microsoft Corporation. All rights reserved. -->
<UIX xmlns="http://schemas.microsoft.com/2007/uix"
xmlns:styles="res://ZuneShellResources!Styles.uix"
xmlns:zune="assembly://ZuneShell/ZuneUI"
xmlns:gasgauge="res://ZuneShellResources!GasGauge.uix">
<UI Name="RuleAddedNotification">
<Properties>
<zune:SyncNewRuleAddedNotification Name="Model" SyncNewRuleAddedNotification="$Required"/>
</Properties>
<Locals>
<Timer Name="HideTimer" Interval="10000" Enabled="true" AutoRepeat="false"/>
</Locals>
<Scripts>
<Script>
GasGauge.NewSize = [Model.NewSize];
HideTimer.Stop();
HideTimer.Start();
</Script>
<Script>
[DeclareTrigger(HideTimer.Tick)]
zune:NotificationArea.Instance.EndOverride(Model);
</Script>
</Scripts>
<Content>
<Panel MaximumSize="400,0">
<Layout>
<FlowLayout Orientation="Vertical" StripAlignment="Center" ItemAlignment="Center" Spacing="8,0"/>
</Layout>
<Children>
<Text Name="Message" MaximumSize="295,0" Color="{styles:Styles.SyncHeaderColor}" Font="{styles:Styles.SyncHeaderFont}" Content="{Model.Message}"/>
<gasgauge:MiniGasGauge Name="GasGauge"
OldSize="{Model.OldSize}"
NewSize="{Model.OldSize}"
TotalSize="{Model.TotalSize}"/>
</Children>
</Panel>
</Content>
</UI>
</UIX>