Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <UserControl 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:ItemTooltip"
- x:Class="ItemTooltip.Controller"
- mc:Ignorable="d">
- <UserControl.Resources>
- <ResourceDictionary>
- <!--
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="Resources.xaml" />
- </ResourceDictionary.MergedDictionaries>
- -->
- <ColorToSolidColorBrushConverter x:Key="ColorToSolidColorBrushConverter" />
- <ItemsPanelTemplate x:Key="ListPanel">
- <StackPanel Margin="20,5,20,10" />
- </ItemsPanelTemplate>
- <ItemsPanelTemplate x:Key="ListPanelExtra">
- <StackPanel Margin="20,15,20,15" />
- </ItemsPanelTemplate>
- <DataTemplate x:Key="ListItem">
- <TextBlock Text="{Binding Value}" Foreground="{Binding Color}" Style="{Binding Style}" />
- </DataTemplate>
- <ImageBrush x:Key="SectionBackground" ImageSource="Textures/UI_Tooltip_Section.png" />
- </ResourceDictionary>
- </UserControl.Resources>
- <Viewbox>
- <Grid x:Name="BaseScreen" Width="1920" Height="1080" HorizontalAlignment="Left" VerticalAlignment="Top">
- <Canvas>
- <Grid x:Name="BaseFrame" MaxHeight="{Binding Height, ElementName=BaseScreen}" Canvas.Left="{Binding X}" Canvas.Top="{Binding Y}">
- <Border x:Name="Border" BorderThickness="2" BorderBrush="#96495051" CornerRadius="2">
- <Border.Effect>
- <DropShadowEffect ShadowDepth="2" />
- </Border.Effect>
- <ScrollViewer x:Name="ContentScrollViewer" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden">
- <Grid Background="#b40d1317">
- <StackPanel MaxWidth="420">
- <Grid x:Name="PriceGrid">
- <ItemsControl ItemsSource="{Binding Content.PriceList}" ItemsPanel="{StaticResource ListPanelExtra}" ItemTemplate="{StaticResource ListItem}" />
- </Grid>
- <Border x:Name="SkinColorBorder" BorderThickness="0,1.5,0,1.5" BorderBrush="{Binding Content.SkinColor, Converter={StaticResource ColorToSolidColorBrushConverter}}" Opacity="0.85">
- <Border.Effect>
- <DropShadowEffect BlurRadius="15" ShadowDepth="0" Color="{Binding Content.SkinColor}" />
- </Border.Effect>
- </Border>
- <Grid x:Name="NameGrid" Background="#07ffffff">
- <Border x:Name="SkinColorHighlightBorder" Background="Transparent" BorderBrush="Transparent" BorderThickness="1" ClipToBounds="True">
- <Border Background="Transparent" BorderBrush="{Binding Content.SkinColor, Converter={StaticResource ColorToSolidColorBrushConverter}}" BorderThickness="7" Margin="-8">
- <Border.Effect>
- <DropShadowEffect ShadowDepth="0" BlurRadius="40" Color="{Binding Content.SkinColor}" />
- </Border.Effect>
- <Border Background="Transparent" BorderBrush="{Binding Content.SkinColor, Converter={StaticResource ColorToSolidColorBrushConverter}}" BorderThickness="4" Margin="-5">
- <Border.Effect>
- <DropShadowEffect ShadowDepth="0" BlurRadius="25" Color="{Binding Content.SkinColor}" />
- </Border.Effect>
- </Border>
- </Border>
- </Border>
- <ItemsControl ItemsSource="{Binding Content.NameList}" ItemsPanel="{StaticResource ListPanelExtra}" ItemTemplate="{StaticResource ListItem}" />
- </Grid>
- <Grid x:Name="DurationGrid">
- <ItemsControl ItemsSource="{Binding Content.DurationList}" ItemsPanel="{StaticResource ListPanel}" ItemTemplate="{StaticResource ListItem}" />
- </Grid>
- <Grid x:Name="DescriptionGrid">
- <ItemsControl ItemsSource="{Binding Content.DescriptionList}" ItemsPanel="{StaticResource ListPanel}" ItemTemplate="{StaticResource ListItem}" />
- </Grid>
- <Grid x:Name="RequirementGrid">
- <ItemsControl ItemsSource="{Binding Content.RequirementList}" ItemsPanel="{StaticResource ListPanel}" ItemTemplate="{StaticResource ListItem}" />
- </Grid>
- <Grid x:Name="RequirementRoleGrid">
- <ItemsControl ItemsSource="{Binding Content.RequirementRoleList}" ItemsPanel="{StaticResource ListPanel}" ItemTemplate="{StaticResource ListItem}" />
- </Grid>
- <Grid x:Name="PermanentOptionGrid">
- <ItemsControl ItemsSource="{Binding Content.PermanentOptionList}" ItemsPanel="{StaticResource ListPanel}" ItemTemplate="{StaticResource ListItem}" />
- </Grid>
- <Grid x:Name="GuardianOptionGrid">
- <ItemsControl ItemsSource="{Binding Content.GuardianOptionList}" ItemsPanel="{StaticResource ListPanel}" ItemTemplate="{StaticResource ListItem}" />
- </Grid>
- <Grid x:Name="HarmonyOptionGrid">
- <ItemsControl ItemsSource="{Binding Content.HarmonyOptionList}" ItemsPanel="{StaticResource ListPanel}" ItemTemplate="{StaticResource ListItem}" />
- </Grid>
- <Grid x:Name="SpecialOptionGrid">
- <ItemsControl ItemsSource="{Binding Content.SpecialOptionList}" ItemsPanel="{StaticResource ListPanel}" ItemTemplate="{StaticResource ListItem}" />
- </Grid>
- <Grid x:Name="SetOptionTitleGrid" Background="{StaticResource SectionBackground}">
- <ItemsControl ItemsSource="{Binding Content.SetOptionTitleList}" ItemsPanel="{StaticResource ListPanel}" ItemTemplate="{StaticResource ListItem}" />
- </Grid>
- <Grid x:Name="SetOptionBonusGrid">
- <ItemsControl ItemsSource="{Binding Content.SetOptionBonusList}" ItemsPanel="{StaticResource ListPanel}" ItemTemplate="{StaticResource ListItem}" />
- </Grid>
- <Grid x:Name="SetOptionGrid">
- <ItemsControl ItemsSource="{Binding Content.SetOptionList}" ItemsPanel="{StaticResource ListPanel}" ItemTemplate="{StaticResource ListItem}" />
- </Grid>
- <Grid x:Name="SocketOptionTitleGrid" Background="{StaticResource SectionBackground}">
- <ItemsControl ItemsSource="{Binding Content.SocketOptionTitleList}" ItemsPanel="{StaticResource ListPanel}" ItemTemplate="{StaticResource ListItem}" />
- </Grid>
- <Grid x:Name="SocketOptionBonusGrid">
- <ItemsControl ItemsSource="{Binding Content.SocketOptionBonusList}" ItemsPanel="{StaticResource ListPanel}" ItemTemplate="{StaticResource ListItem}" />
- </Grid>
- <Grid x:Name="SocketOptionGrid">
- <ItemsControl ItemsSource="{Binding Content.SocketOptionList}" ItemsPanel="{StaticResource ListPanel}" ItemTemplate="{StaticResource ListItem}" />
- </Grid>
- <Grid x:Name="SealOptionTitleGrid" Background="{StaticResource SectionBackground}">
- <ItemsControl ItemsSource="{Binding Content.SealOptionTitleList}" ItemsPanel="{StaticResource ListPanel}" ItemTemplate="{StaticResource ListItem}" />
- </Grid>
- <Grid x:Name="SealOptionBonusGrid">
- <ItemsControl ItemsSource="{Binding Content.SealOptionBonusList}" ItemsPanel="{StaticResource ListPanel}" ItemTemplate="{StaticResource ListItem}" />
- </Grid>
- <Grid x:Name="SealOptionGrid">
- <ItemsControl ItemsSource="{Binding Content.SealOptionList}" ItemsPanel="{StaticResource ListPanel}" ItemTemplate="{StaticResource ListItem}" />
- </Grid>
- <Grid x:Name="ItemKitOptionTitleGrid" Background="{StaticResource SectionBackground}">
- <ItemsControl ItemsSource="{Binding Content.ItemKitOptionTitleList}" ItemsPanel="{StaticResource ListPanel}" ItemTemplate="{StaticResource ListItem}" />
- </Grid>
- <Grid x:Name="ItemKitOptionGrid">
- <ItemsControl ItemsSource="{Binding Content.ItemKitOptionList}" ItemsPanel="{StaticResource ListPanel}" ItemTemplate="{StaticResource ListItem}" />
- </Grid>
- </StackPanel>
- </Grid>
- </ScrollViewer>
- </Border>
- </Grid>
- </Canvas>
- </Grid>
- </Viewbox>
- </UserControl>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement