Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. <UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  2.     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3.     xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  4.     xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5.     xmlns:local="clr-namespace:ItemTooltip"
  6.     x:Class="ItemTooltip.Controller"
  7.     mc:Ignorable="d">
  8.     <UserControl.Resources>
  9.         <ResourceDictionary>
  10.             <!--
  11.             <ResourceDictionary.MergedDictionaries>
  12.                 <ResourceDictionary Source="Resources.xaml" />
  13.             </ResourceDictionary.MergedDictionaries>
  14.             -->
  15.  
  16.             <ColorToSolidColorBrushConverter x:Key="ColorToSolidColorBrushConverter" />
  17.  
  18.             <ItemsPanelTemplate x:Key="ListPanel">
  19.                 <StackPanel Margin="20,5,20,10" />
  20.             </ItemsPanelTemplate>
  21.  
  22.             <ItemsPanelTemplate x:Key="ListPanelExtra">
  23.                 <StackPanel Margin="20,15,20,15" />
  24.             </ItemsPanelTemplate>
  25.  
  26.             <DataTemplate x:Key="ListItem">
  27.                 <TextBlock Text="{Binding Value}" Foreground="{Binding Color}" Style="{Binding Style}" />
  28.             </DataTemplate>
  29.  
  30.             <ImageBrush x:Key="SectionBackground" ImageSource="Textures/UI_Tooltip_Section.png" />
  31.         </ResourceDictionary>
  32.     </UserControl.Resources>
  33.  
  34.     <Viewbox>
  35.         <Grid x:Name="BaseScreen" Width="1920" Height="1080" HorizontalAlignment="Left" VerticalAlignment="Top">
  36.             <Canvas>
  37.                 <Grid x:Name="BaseFrame" MaxHeight="{Binding Height, ElementName=BaseScreen}" Canvas.Left="{Binding X}" Canvas.Top="{Binding Y}">
  38.                     <Border x:Name="Border" BorderThickness="2" BorderBrush="#96495051" CornerRadius="2">
  39.                         <Border.Effect>
  40.                             <DropShadowEffect ShadowDepth="2" />
  41.                         </Border.Effect>
  42.  
  43.                         <ScrollViewer x:Name="ContentScrollViewer" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden">
  44.                             <Grid Background="#b40d1317">
  45.                                 <StackPanel MaxWidth="420">
  46.                                     <Grid x:Name="PriceGrid">
  47.                                         <ItemsControl ItemsSource="{Binding Content.PriceList}" ItemsPanel="{StaticResource ListPanelExtra}" ItemTemplate="{StaticResource ListItem}" />
  48.                                     </Grid>
  49.  
  50.                                     <Border x:Name="SkinColorBorder" BorderThickness="0,1.5,0,1.5" BorderBrush="{Binding Content.SkinColor, Converter={StaticResource ColorToSolidColorBrushConverter}}" Opacity="0.85">
  51.                                         <Border.Effect>
  52.                                             <DropShadowEffect BlurRadius="15" ShadowDepth="0" Color="{Binding Content.SkinColor}" />
  53.                                         </Border.Effect>
  54.                                     </Border>
  55.  
  56.                                     <Grid x:Name="NameGrid" Background="#07ffffff">
  57.                                         <Border x:Name="SkinColorHighlightBorder" Background="Transparent" BorderBrush="Transparent" BorderThickness="1" ClipToBounds="True">
  58.                                             <Border Background="Transparent" BorderBrush="{Binding Content.SkinColor, Converter={StaticResource ColorToSolidColorBrushConverter}}" BorderThickness="7" Margin="-8">
  59.                                                 <Border.Effect>
  60.                                                     <DropShadowEffect ShadowDepth="0" BlurRadius="40" Color="{Binding Content.SkinColor}" />
  61.                                                 </Border.Effect>
  62.  
  63.                                                 <Border Background="Transparent" BorderBrush="{Binding Content.SkinColor, Converter={StaticResource ColorToSolidColorBrushConverter}}" BorderThickness="4" Margin="-5">
  64.                                                     <Border.Effect>
  65.                                                         <DropShadowEffect ShadowDepth="0" BlurRadius="25" Color="{Binding Content.SkinColor}" />
  66.                                                     </Border.Effect>
  67.                                                 </Border>
  68.                                             </Border>
  69.                                         </Border>
  70.  
  71.                                         <ItemsControl ItemsSource="{Binding Content.NameList}" ItemsPanel="{StaticResource ListPanelExtra}" ItemTemplate="{StaticResource ListItem}" />
  72.                                     </Grid>
  73.  
  74.                                     <Grid x:Name="DurationGrid">
  75.                                         <ItemsControl ItemsSource="{Binding Content.DurationList}" ItemsPanel="{StaticResource ListPanel}" ItemTemplate="{StaticResource ListItem}" />
  76.                                     </Grid>
  77.  
  78.                                     <Grid x:Name="DescriptionGrid">
  79.                                         <ItemsControl ItemsSource="{Binding Content.DescriptionList}" ItemsPanel="{StaticResource ListPanel}" ItemTemplate="{StaticResource ListItem}" />
  80.                                     </Grid>
  81.  
  82.                                     <Grid x:Name="RequirementGrid">
  83.                                         <ItemsControl ItemsSource="{Binding Content.RequirementList}" ItemsPanel="{StaticResource ListPanel}" ItemTemplate="{StaticResource ListItem}" />
  84.                                     </Grid>
  85.  
  86.                                     <Grid x:Name="RequirementRoleGrid">
  87.                                         <ItemsControl ItemsSource="{Binding Content.RequirementRoleList}" ItemsPanel="{StaticResource ListPanel}" ItemTemplate="{StaticResource ListItem}" />
  88.                                     </Grid>
  89.  
  90.                                     <Grid x:Name="PermanentOptionGrid">
  91.                                         <ItemsControl ItemsSource="{Binding Content.PermanentOptionList}" ItemsPanel="{StaticResource ListPanel}" ItemTemplate="{StaticResource ListItem}" />
  92.                                     </Grid>
  93.  
  94.                                     <Grid x:Name="GuardianOptionGrid">
  95.                                         <ItemsControl ItemsSource="{Binding Content.GuardianOptionList}" ItemsPanel="{StaticResource ListPanel}" ItemTemplate="{StaticResource ListItem}" />
  96.                                     </Grid>
  97.  
  98.                                     <Grid x:Name="HarmonyOptionGrid">
  99.                                         <ItemsControl ItemsSource="{Binding Content.HarmonyOptionList}" ItemsPanel="{StaticResource ListPanel}" ItemTemplate="{StaticResource ListItem}" />
  100.                                     </Grid>
  101.  
  102.                                     <Grid x:Name="SpecialOptionGrid">
  103.                                         <ItemsControl ItemsSource="{Binding Content.SpecialOptionList}" ItemsPanel="{StaticResource ListPanel}" ItemTemplate="{StaticResource ListItem}" />
  104.                                     </Grid>
  105.  
  106.                                     <Grid x:Name="SetOptionTitleGrid" Background="{StaticResource SectionBackground}">
  107.                                         <ItemsControl ItemsSource="{Binding Content.SetOptionTitleList}" ItemsPanel="{StaticResource ListPanel}" ItemTemplate="{StaticResource ListItem}" />
  108.                                     </Grid>
  109.  
  110.                                     <Grid x:Name="SetOptionBonusGrid">
  111.                                         <ItemsControl ItemsSource="{Binding Content.SetOptionBonusList}" ItemsPanel="{StaticResource ListPanel}" ItemTemplate="{StaticResource ListItem}" />
  112.                                     </Grid>
  113.  
  114.                                     <Grid x:Name="SetOptionGrid">
  115.                                         <ItemsControl ItemsSource="{Binding Content.SetOptionList}" ItemsPanel="{StaticResource ListPanel}" ItemTemplate="{StaticResource ListItem}" />
  116.                                     </Grid>
  117.  
  118.                                     <Grid x:Name="SocketOptionTitleGrid" Background="{StaticResource SectionBackground}">
  119.                                         <ItemsControl ItemsSource="{Binding Content.SocketOptionTitleList}" ItemsPanel="{StaticResource ListPanel}" ItemTemplate="{StaticResource ListItem}" />
  120.                                     </Grid>
  121.  
  122.                                     <Grid x:Name="SocketOptionBonusGrid">
  123.                                         <ItemsControl ItemsSource="{Binding Content.SocketOptionBonusList}" ItemsPanel="{StaticResource ListPanel}" ItemTemplate="{StaticResource ListItem}" />
  124.                                     </Grid>
  125.  
  126.                                     <Grid x:Name="SocketOptionGrid">
  127.                                         <ItemsControl ItemsSource="{Binding Content.SocketOptionList}" ItemsPanel="{StaticResource ListPanel}" ItemTemplate="{StaticResource ListItem}" />
  128.                                     </Grid>
  129.  
  130.                                     <Grid x:Name="SealOptionTitleGrid" Background="{StaticResource SectionBackground}">
  131.                                         <ItemsControl ItemsSource="{Binding Content.SealOptionTitleList}" ItemsPanel="{StaticResource ListPanel}" ItemTemplate="{StaticResource ListItem}" />
  132.                                     </Grid>
  133.  
  134.                                     <Grid x:Name="SealOptionBonusGrid">
  135.                                         <ItemsControl ItemsSource="{Binding Content.SealOptionBonusList}" ItemsPanel="{StaticResource ListPanel}" ItemTemplate="{StaticResource ListItem}" />
  136.                                     </Grid>
  137.  
  138.                                     <Grid x:Name="SealOptionGrid">
  139.                                         <ItemsControl ItemsSource="{Binding Content.SealOptionList}" ItemsPanel="{StaticResource ListPanel}" ItemTemplate="{StaticResource ListItem}" />
  140.                                     </Grid>
  141.                                    
  142.                                     <Grid x:Name="ItemKitOptionTitleGrid" Background="{StaticResource SectionBackground}">
  143.                                         <ItemsControl ItemsSource="{Binding Content.ItemKitOptionTitleList}" ItemsPanel="{StaticResource ListPanel}" ItemTemplate="{StaticResource ListItem}" />
  144.                                     </Grid>
  145.  
  146.                                     <Grid x:Name="ItemKitOptionGrid">
  147.                                         <ItemsControl ItemsSource="{Binding Content.ItemKitOptionList}" ItemsPanel="{StaticResource ListPanel}" ItemTemplate="{StaticResource ListItem}" />
  148.                                     </Grid>
  149.                                 </StackPanel>
  150.                             </Grid>
  151.                         </ScrollViewer>
  152.                     </Border>
  153.                 </Grid>
  154.             </Canvas>
  155.         </Grid>
  156.     </Viewbox>
  157. </UserControl>