windows/packageDetails/window.xaml
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:gif="http://wpfanimatedgif.codeplex.com" Title="psChocoUpdateNotify - Package Details" Height="700" Width="1100"> <Window.Resources> <Style x:Key="ButtonFocusVisual"> <Setter Property="Control.Template"> <Setter.Value> <ControlTemplate> <Rectangle Margin="2" SnapsToDevicePixels="true" Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" StrokeThickness="1" StrokeDashArray="1 2"/> </ControlTemplate> </Setter.Value> </Setter> </Style> <Style x:Key="ToolbarButtonStyle" TargetType="{x:Type Button}"> <Setter Property="Background" Value="Azure"/> <Setter Property="BorderThickness" Value="0" /> <Setter Property="Opacity" Value="1" /> <Setter Property="Margin" Value="2,1,2,1" /> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type Button}"> <Grid> <Border x:Name="Border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}"> <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/> </Border> </Grid> <ControlTemplate.Triggers> <Trigger Property="IsEnabled" Value="false"> <Setter Property="Background" Value="#00000000"/> <Setter Property="BorderThickness" Value="0" /> <Setter Property="Opacity" Value="0.6" /> </Trigger> <Trigger Property="IsMouseOver" Value="true"> <Setter Property="Background" Value="#FFBEE6FD"/> <Setter Property="BorderThickness" Value="0" /> <Setter Property="Opacity" Value="1" /> </Trigger> <Trigger Property="IsPressed" Value="true"> <Setter Property="Background" Value="#FFBEE6FD"/> <Setter Property="BorderThickness" Value="1" /> <Setter Property="Opacity" Value="1" /> <Setter Property="Margin" Value="1,0,1,0" /> </Trigger> </ControlTemplate.Triggers> </ControlTemplate> </Setter.Value> </Setter> </Style> </Window.Resources> <Window.TaskbarItemInfo> <TaskbarItemInfo /> </Window.TaskbarItemInfo> <Grid Margin="1,0"> <Grid.RowDefinitions> <RowDefinition Height="100" /> <RowDefinition Height="*" /> </Grid.RowDefinitions> <DockPanel Grid.Row="0" Background="Azure"> <Border BorderThickness="0,0,0,0" BorderBrush="Gray" > <Image x:Name="imgLogo" HorizontalAlignment="Left" Margin="10,10,10,10" Source="C:\Users\WenderMi\Documents\git\github.com\psChocoUpdateNotify\Images\icon_256.png"></Image> </Border> <Border Margin="0,1,0,1" HorizontalAlignment="Center"> <Grid HorizontalAlignment="Center"> <DockPanel VerticalAlignment="Center"> <DockPanel Margin="15,0,15,0"> <Label DockPanel.Dock="Top" VerticalAlignment="Bottom" FontSize="10" HorizontalAlignment="Center">PackageName</Label> <Label DockPanel.Dock="Top" x:Name="lPackageID" VerticalAlignment="Top" FontWeight="Bold" FontSize="14" HorizontalAlignment="Center"></Label> </DockPanel> <DockPanel Margin="15,0,15,0"> <Label DockPanel.Dock="Top" VerticalAlignment="Bottom" FontSize="10" HorizontalAlignment="Center">-</Label> <Label DockPanel.Dock="Top" VerticalAlignment="Top" FontWeight="Bold" FontSize="14" HorizontalAlignment="Center"></Label> </DockPanel> <DockPanel Margin="15,0,15,0"> <Label DockPanel.Dock="Top" VerticalAlignment="Bottom" FontSize="10" HorizontalAlignment="Center">PackageVersion</Label> <Label DockPanel.Dock="Top" x:Name="lPackageVersion" VerticalAlignment="Top" FontWeight="Bold" FontSize="14" HorizontalAlignment="Center"></Label> </DockPanel> <DockPanel Margin="15,0,15,0"> <Label DockPanel.Dock="Top" VerticalAlignment="Bottom" FontSize="10" HorizontalAlignment="Center">-</Label> <Label DockPanel.Dock="Top" VerticalAlignment="Top" FontWeight="Bold" FontSize="14" HorizontalAlignment="Center"></Label> </DockPanel> <DockPanel Margin="15,0,15,0"> <Label DockPanel.Dock="Top" VerticalAlignment="Bottom" FontSize="10" HorizontalAlignment="Center">PackageRepo (Source)</Label> <Label DockPanel.Dock="Top" x:Name="lPackageRepo" VerticalAlignment="Top" FontWeight="Bold" FontSize="14" HorizontalAlignment="Center"></Label> </DockPanel> </DockPanel> </Grid> </Border> </DockPanel> <Grid Grid.Row="1"> <Grid.ColumnDefinitions> <ColumnDefinition Width="120*" /> <ColumnDefinition Width="150*" /> </Grid.ColumnDefinitions> <ScrollViewer Grid.Column="0"> <StackPanel> <DockPanel Margin="5,5,15,0"> <Label MinWidth="100">Title</Label> <TextBox x:Name="tbPackageTitle" IsReadOnly="True" VerticalContentAlignment="Center" VerticalAlignment="Center"/> </DockPanel> <DockPanel Margin="5,5,15,0"> <Label MinWidth="100">Authors</Label> <TextBox x:Name="tbPackageAuthors" IsReadOnly="True" VerticalContentAlignment="Center" VerticalAlignment="Center"></TextBox> </DockPanel> <DockPanel Margin="5,5,15,0"> <Label MinWidth="100">Erstellt</Label> <TextBox x:Name="tbLastUpdated" IsReadOnly="True" VerticalContentAlignment="Center" VerticalAlignment="Center"></TextBox> </DockPanel> <DockPanel Margin="5,5,15,0"> <Label x:Name="lTags" MinWidth="100">Tags</Label> <TextBox x:Name="tbTags" IsReadOnly="True" VerticalContentAlignment="Center" VerticalAlignment="Center"></TextBox> </DockPanel> <!-- <DockPanel Margin="5,5,15,0"> <Label MinWidth="100">Owners</Label> <TextBox x:Name="tbPackageOwners" IsReadOnly="True" VerticalContentAlignment="Center" VerticalAlignment="Center"></TextBox> </DockPanel> --> <DockPanel Margin="5,5,15,0"> <Label MinWidth="100"> <Hyperlink x:Name="hProjectUrl" Cursor="Hand">ProjectUrl</Hyperlink> </Label> <TextBox x:Name="tbProjectUrl" IsReadOnly="True" VerticalContentAlignment="Center" VerticalAlignment="Center"></TextBox> </DockPanel> <DockPanel Margin="5,5,15,0"> <Label MinWidth="100"> <Hyperlink x:Name="hReleaseNotes" Cursor="Hand">ReleaseNotes</Hyperlink> </Label> <TextBox x:Name="tbReleaseNotes" IsReadOnly="True" VerticalContentAlignment="Center" VerticalAlignment="Center"></TextBox> </DockPanel> <DockPanel Margin="5,5,15,0"> <Label MinWidth="100"> <Hyperlink x:Name="hDocsUrl" Cursor="Hand">DocsUrl</Hyperlink> </Label> <TextBox x:Name="tbDocsUrl" IsReadOnly="True" VerticalContentAlignment="Center" VerticalAlignment="Center"></TextBox> </DockPanel> <DockPanel Margin="5,5,15,0"> <Label MinWidth="100"> <Hyperlink x:Name="hIconUrl" Cursor="Hand">IconUrl</Hyperlink> </Label> <TextBox x:Name="tbIconUrl" IsReadOnly="True" VerticalContentAlignment="Center" VerticalAlignment="Center"></TextBox> </DockPanel> <DockPanel Margin="5,5,15,0"> <Label MinWidth="100"> <Hyperlink x:Name="hLicenseUrl" Cursor="Hand">LicenseUrl</Hyperlink> </Label> <TextBox x:Name="tbLicenseUrl" IsReadOnly="True" VerticalContentAlignment="Center" VerticalAlignment="Center"></TextBox> </DockPanel> <DockPanel Margin="5,5,15,0"> <Label MinWidth="100"> <Hyperlink x:Name="hProjectSourceUrl" Cursor="Hand">ProjectSourceUrl</Hyperlink> </Label> <TextBox x:Name="tbProjectSourceUrl" IsReadOnly="True" VerticalContentAlignment="Center" VerticalAlignment="Center"></TextBox> </DockPanel> <DockPanel Margin="5,5,15,0"> <Label MinWidth="100"> <Hyperlink x:Name="hMailingListUrl" Cursor="Hand">MailingListUrl</Hyperlink> </Label> <TextBox x:Name="tbMailingListUrl" IsReadOnly="True" VerticalContentAlignment="Center" VerticalAlignment="Center"></TextBox> </DockPanel> <DockPanel Margin="5,5,15,0"> <Label MinWidth="100"> <Hyperlink x:Name="hBugTrackerUrl" Cursor="Hand">BugTrackerUrl</Hyperlink> </Label> <TextBox x:Name="tbBugTrackerUrl" IsReadOnly="True" VerticalContentAlignment="Center" VerticalAlignment="Center"></TextBox> </DockPanel> <DockPanel Margin="5,5,15,0"> <Label x:Name="lDependencies" MinWidth="100">dependencies</Label> <TextBox x:Name="tbDependencies" IsReadOnly="True" VerticalContentAlignment="Center" VerticalAlignment="Center"></TextBox> </DockPanel> <DockPanel Margin="5,5,15,0"> <Label x:Name="lCopyright" MinWidth="100">copyright</Label> <TextBox x:Name="tbCopyright" IsReadOnly="True" VerticalContentAlignment="Center" VerticalAlignment="Center"></TextBox> </DockPanel> <DockPanel Margin="5,5,15,0"> <Label MinWidth="100" MaxWidth="100"> <TextBlock TextWrapping="Wrap" VerticalAlignment="Center">require License Acceptance</TextBlock> </Label> <CheckBox x:Name="cbRequireLicenseAcceptance" IsEnabled="False" VerticalContentAlignment="Center" VerticalAlignment="Center"></CheckBox> </DockPanel> </StackPanel> </ScrollViewer> <DockPanel Grid.Column="1"> <Label DockPanel.Dock="Top">Summary</Label> <TextBox x:Name="tbSummary" IsReadOnly="True" DockPanel.Dock="Top" Margin="15,0,15,0"/> <Label DockPanel.Dock="Top">Description</Label> <TextBox x:Name="tbDescription" IsReadOnly="True" DockPanel.Dock="Top" AcceptsReturn="True" Margin="15,0,15,15" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto"/> </DockPanel> </Grid> <Grid x:Name="gPackageDetailsOverlay" Grid.Row="0" Grid.RowSpan="2" Background="White" Opacity="0.95" Visibility="Hidden"> <Label Content="Searching package information..." FontSize="12" VerticalAlignment="Center" HorizontalAlignment="Center"/> </Grid> </Grid> </Window> |