InkCanvasForClass/PeroInstaller/MainWindow.xaml

119 lines
12 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<Window x:Class="PeroInstaller.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:PeroInstaller"
xmlns:ui="http://schemas.inkore.net/lib/ui/wpf/modern"
mc:Ignorable="d"
ui:ThemeManager.RequestedTheme="Light"
ResizeMode="NoResize"
Title="{StaticResource InstallerWindowTitle}" Height="600" Width="400">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="0.5*" />
<RowDefinition Height="1*" />
</Grid.RowDefinitions>
<ui:SimpleStackPanel Grid.Row="0" Orientation="Vertical" Margin="8">
<Image Source="{StaticResource ProductIcon}" Width="64" Height="64" Margin="0,6,0,0"/>
<TextBlock FontSize="22" FontWeight="Bold" TextAlignment="Center" Margin="0,4,0,0" Text="{StaticResource ProductName}"/>
<TextBlock FontSize="14" TextAlignment="Center" Opacity="0.6" Text="{StaticResource ProductSlogan}"/>
<Line
X1="0" Y1="0"
X2="250" Y2="0"
Stroke="#a1a1aa"
StrokeThickness="1"
Margin="0,16,0,6"
HorizontalAlignment="Center"
StrokeStartLineCap="Round"
StrokeEndLineCap="Round"/>
<TextBlock FontSize="10" TextAlignment="Center" Opacity="0.6">基于PeroInstaller包装打包版本<Run Text="{StaticResource ProductBundleVersion}"></Run></TextBlock>
</ui:SimpleStackPanel>
<Grid Grid.Row="1">
<TabControl ui:TabControlHelper.IsAddTabButtonVisible="False">
<TabItem Name="InstallTab" Width="78" MinWidth="0" ui:TabItemHelper.Icon="{x:Null}">
<TabItem.Header>
<ui:SimpleStackPanel HorizontalAlignment="Center" Orientation="Horizontal" Spacing="3" Margin="-5,0,0,0">
<Image Width="20" Height="20">
<Image.Source>
<DrawingImage>
<DrawingImage.Drawing>
<DrawingGroup ClipGeometry="M0,0 V24 H24 V0 H0 Z">
<GeometryDrawing Brush="#FF000000" Geometry="F0 M24,24z M0,0z M13,4C13,3.44772 12.5523,3 12,3 11.4477,3 11,3.44772 11,4L11,13.5858 7.70711,10.2929C7.31658,9.90237 6.68342,9.90237 6.29289,10.2929 5.90237,10.6834 5.90237,11.3166 6.29289,11.7071L11.2922,16.7064C11.2946,16.7088 11.297,16.7112 11.2995,16.7136 11.3938,16.8063 11.502,16.8764 11.6172,16.9241 11.7343,16.9727 11.8625,16.9996 11.997,17 11.998,17 11.999,17 12,17 12.001,17 12.002,17 12.003,17 12.2746,16.9992 12.5208,16.8901 12.7005,16.7136 12.703,16.7112 12.7054,16.7088 12.7078,16.7064L17.7071,11.7071C18.0976,11.3166 18.0976,10.6834 17.7071,10.2929 17.3166,9.90237 16.6834,9.90237 16.2929,10.2929L13,13.5858 13,4z M4,16C4.55228,16,5,16.4477,5,17L5,19C5,19.2652 5.10536,19.5196 5.29289,19.7071 5.48043,19.8946 5.73478,20 6,20L18,20C18.2652,20 18.5196,19.8946 18.7071,19.7071 18.8946,19.5196 19,19.2652 19,19L19,17C19,16.4477 19.4477,16 20,16 20.5523,16 21,16.4477 21,17L21,19C21,19.7957 20.6839,20.5587 20.1213,21.1213 19.5587,21.6839 18.7957,22 18,22L6,22C5.20435,22 4.44129,21.6839 3.87868,21.1213 3.31607,20.5587 3,19.7957 3,19L3,17C3,16.4477,3.44772,16,4,16z" />
</DrawingGroup>
</DrawingImage.Drawing>
</DrawingImage>
</Image.Source>
</Image>
<TextBlock VerticalAlignment="Center">安装</TextBlock>
</ui:SimpleStackPanel>
</TabItem.Header>
<TextBlock Text="Content 1" HorizontalAlignment="Center" VerticalAlignment="Center"/>
</TabItem>
<TabItem Name="RemoveTab" Width="78" MinWidth="0" ui:TabItemHelper.Icon="{x:Null}">
<TabItem.Header>
<ui:SimpleStackPanel HorizontalAlignment="Center" Orientation="Horizontal" Spacing="3" Margin="-5,0,0,0">
<Image Width="20" Height="20">
<Image.Source>
<DrawingImage>
<DrawingImage.Drawing>
<DrawingGroup ClipGeometry="M0,0 V24 H24 V0 H0 Z">
<GeometryDrawing Brush="#FF000000" Geometry="F0 M24,24z M0,0z M10,2C9.46957,2 8.96086,2.21071 8.58579,2.58579 8.21071,2.96086 8,3.46957 8,4L8,6 4,6C3.44772,6 3,6.44772 3,7 3,7.55228 3.44772,8 4,8L4.07992,8 5.0004,19.0458C5.01228,19.8249 5.32693,20.5696 5.87874,21.1214 6.44134,21.684 7.20441,22.0001 8.00006,22.0001L16.0001,22.0001C16.7957,22.0001 17.5588,21.684 18.1214,21.1214 18.6732,20.5696 18.9878,19.8249 18.9997,19.0458L19.9202,8 20,8C20.5523,8 21,7.55228 21,7 21,6.44772 20.5523,6 20,6L16,6 16,4C16,3.46957 15.7893,2.96086 15.4142,2.58579 15.0391,2.21071 14.5304,2 14,2L10,2z M14,6L14,4 10,4 10,6 14,6z M9,8L6.08685,8 6.9966,18.917C6.9989,18.9446 7.00006,18.9723 7.00006,19.0001 7.00006,19.2653 7.10541,19.5196 7.29295,19.7072 7.48049,19.8947 7.73484,20.0001 8.00006,20.0001L16.0001,20.0001C16.2653,20.0001 16.5196,19.8947 16.7072,19.7072 16.8947,19.5196 17.0001,19.2653 17.0001,19.0001 17.0001,18.9723 17.0012,18.9446 17.0035,18.917L17.9133,8 15,8 9,8z M10,10C10.5523,10,11,10.4477,11,11L11,17C11,17.5523 10.5523,18 10,18 9.44772,18 9,17.5523 9,17L9,11C9,10.4477,9.44772,10,10,10z M15,11C15,10.4477 14.5523,10 14,10 13.4477,10 13,10.4477 13,11L13,17C13,17.5523 13.4477,18 14,18 14.5523,18 15,17.5523 15,17L15,11z" />
</DrawingGroup>
</DrawingImage.Drawing>
</DrawingImage>
</Image.Source>
</Image>
<TextBlock VerticalAlignment="Center">卸载</TextBlock>
</ui:SimpleStackPanel>
</TabItem.Header>
<TextBlock Text="Content 2" HorizontalAlignment="Center" VerticalAlignment="Center"/>
</TabItem>
<TabItem Name="UpdateTab" Width="78" MinWidth="0" ui:TabItemHelper.Icon="{x:Null}">
<TabItem.Header>
<ui:SimpleStackPanel HorizontalAlignment="Center" Orientation="Horizontal" Spacing="3" Margin="-5,0,0,0">
<Image Width="20" Height="20">
<Image.Source>
<DrawingImage>
<DrawingImage.Drawing>
<DrawingGroup ClipGeometry="M0,0 V24 H24 V0 H0 Z">
<GeometryDrawing Brush="#FF000000" Geometry="F0 M24,24z M0,0z M13.1418,3.08997C11.1621,2.83453 9.15344,3.23706 7.42509,4.23555 6.49773,4.7713 5.67868,5.46268 5.00012,6.27306L5.00012,5.0002C5.00012,4.44791 4.55241,4.0002 4.00012,4.0002 3.44784,4.0002 3.00012,4.44791 3.00012,5.0002L3.00012,9.0002C3.00012,9.55248,3.44784,10.0002,4.00012,10.0002L4.47695,10.0002C4.49216,10.0005,4.50734,10.0005,4.52249,10.0002L8.00012,10.0002C8.55241,10.0002 9.00012,9.55248 9.00012,9.0002 9.00012,8.44791 8.55241,8.0002 8.00012,8.0002L6.19127,8.0002C6.77809,7.17511 7.53828,6.47992 8.42556,5.96733 9.77405,5.18829 11.3413,4.87423 12.8858,5.07353 14.4304,5.27282 15.8665,5.97442 16.9731,7.07024 18.0797,8.16607 18.7953,9.59532 19.0096,11.1378 19.0857,11.6849 19.5907,12.0667 20.1378,11.9907 20.6848,11.9147 21.0666,11.4096 20.9906,10.8625 20.7159,8.88551 19.7987,7.05365 18.3804,5.64914 16.9621,4.24464 15.1214,3.34541 13.1418,3.08997z M4.9906,12.8624C4.91458,12.3153 4.4095,11.9335 3.86247,12.0095 3.31545,12.0855 2.93362,12.5906 3.00964,13.1376 3.28439,15.1147 4.20155,16.9466 5.61984,18.3511 7.03812,19.7556 8.87885,20.6548 10.8585,20.9102 12.8381,21.1657 14.8468,20.7631 16.5752,19.7646 17.5025,19.2289 18.3216,18.5375 19.0001,17.7271L19.0001,19C19.0001,19.5523 19.4478,20 20.0001,20 20.5524,20 21.0001,19.5523 21.0001,19L21.0001,15C21.0001,14.4477,20.5524,14,20.0001,14L19.5233,14C19.5081,13.9997,19.4929,13.9997,19.4778,14L16.0001,14C15.4478,14 15.0001,14.4477 15.0001,15 15.0001,15.5523 15.4478,16 16.0001,16L17.809,16C17.2222,16.8251 16.462,17.5203 15.5747,18.0329 14.2262,18.8119 12.659,19.126 11.1144,18.9267 9.56988,18.7274 8.1337,18.0258 7.02713,16.93 5.92056,15.8341 5.20497,14.4049 4.9906,12.8624z" />
</DrawingGroup>
</DrawingImage.Drawing>
</DrawingImage>
</Image.Source>
</Image>
<TextBlock VerticalAlignment="Center">更新</TextBlock>
</ui:SimpleStackPanel>
</TabItem.Header>
<TextBlock Text="Content 3" HorizontalAlignment="Center" VerticalAlignment="Center"/>
</TabItem>
<TabItem Name="ModifyTab" Width="78" MinWidth="0" ui:TabItemHelper.Icon="{x:Null}">
<TabItem.Header>
<ui:SimpleStackPanel HorizontalAlignment="Center" Orientation="Horizontal" Spacing="3" Margin="-5,0,0,0">
<Image Width="20" Height="20">
<Image.Source>
<DrawingImage>
<DrawingImage.Drawing>
<DrawingGroup ClipGeometry="M0,0 V24 H24 V0 H0 Z">
<GeometryDrawing Brush="#FF000000" Geometry="F0 M24,24z M0,0z M8.37853,3.96432L10.707,6.29275C10.8945,6.48028,10.9999,6.73464,10.9999,6.99986L10.9999,9.99986C10.9999,10.5521,10.5521,10.9999,9.99986,10.9999L6.99986,10.9999C6.73464,10.9999,6.48028,10.8945,6.29275,10.707L3.96432,8.37853C3.89111,8.89104 3.89749,9.41483 3.98608,9.93115 4.16092,10.9502 4.64741,11.89 5.37853,12.6212 6.10966,13.3523 7.04948,13.8388 8.06856,14.0136 9.08764,14.1885 10.1359,14.0431 11.0689,13.5975 11.4513,13.4149 11.9073,13.4931 12.207,13.7927L18.207,19.7927C18.4172,20.003 18.7025,20.1212 18.9999,20.1212 19.2972,20.1212 19.5825,20.003 19.7927,19.7927 20.003,19.5825 20.1212,19.2972 20.1212,18.9999 20.1212,18.7025 20.003,18.4172 19.7927,18.207L13.7927,12.207C13.4931,11.9073 13.4149,11.4513 13.5975,11.0689 14.0431,10.1359 14.1885,9.08764 14.0136,8.06856 13.8388,7.04948 13.3523,6.10966 12.6212,5.37853 11.89,4.64741 10.9502,4.16092 9.93115,3.98608 9.41483,3.89749 8.89104,3.89111 8.37853,3.96432z M6.06889,2.59749C7.37513,1.97364 8.84264,1.77009 10.2694,2.01488 11.6961,2.25966 13.0118,2.94074 14.0354,3.96432 15.059,4.9879 15.74,6.30364 15.9848,7.73035 16.1888,8.91918 16.0815,10.1363 15.6791,11.2649L21.207,16.7927C21.7923,17.3781 22.1212,18.172 22.1212,18.9999 22.1212,19.8277 21.7923,20.6216 21.207,21.207 20.6216,21.7923 19.8277,22.1212 18.9999,22.1212 18.172,22.1212 17.3781,21.7923 16.7927,21.207L11.2649,15.6791C10.1363,16.0815 8.91918,16.1888 7.73035,15.9848 6.30364,15.74 4.9879,15.059 3.96432,14.0354 2.94074,13.0118 2.25966,11.6961 2.01488,10.2694 1.77009,8.84264 1.97364,7.37513 2.59749,6.06889 2.73739,5.77595 3.01079,5.56915 3.33075,5.51426 3.65071,5.45936 3.97741,5.5632 4.20696,5.79275L7.41407,8.99986 8.99986,8.99986 8.99986,7.41407 5.79275,4.20696C5.5632,3.97741 5.45936,3.65071 5.51426,3.33075 5.56915,3.01079 5.77595,2.73739 6.06889,2.59749z" />
</DrawingGroup>
</DrawingImage.Drawing>
</DrawingImage>
</Image.Source>
</Image>
<TextBlock VerticalAlignment="Center">修改</TextBlock>
</ui:SimpleStackPanel>
</TabItem.Header>
<TextBlock Text="Content 4" HorizontalAlignment="Center" VerticalAlignment="Center"/>
</TabItem>
</TabControl>
</Grid>
</Grid>
</Window>