44 xmlns : mc =" http://schemas.openxmlformats.org/markup-compatibility/2006"
55 xmlns : d =" http://schemas.microsoft.com/expression/blend/2008"
66 xmlns : local =" clr-namespace:ast_visual_studio_extension"
7+ xmlns : converters =" clr-namespace:ast_visual_studio_extension"
78 xmlns : GenericWPF =" clr-namespace:ast_visual_studio_extension.CxExtension.Utils"
89 xmlns : imaging =" clr-namespace:Microsoft.VisualStudio.Imaging;assembly=Microsoft.VisualStudio.Imaging"
910 xmlns : catalog =" clr-namespace:Microsoft.VisualStudio.Imaging;assembly=Microsoft.VisualStudio.ImageCatalog"
1011 xmlns : theming =" clr-namespace:Microsoft.VisualStudio.PlatformUI;assembly=Microsoft.VisualStudio.Imaging"
11- xmlns : vsfx =" clr-namespace:Microsoft.VisualStudio.Shell;assembly=Microsoft.VisualStudio.Shell.15.0" xmlns : cxextension =" clr-namespace:ast_visual_studio_extension.CxExtension" d : DataContext =" {d:DesignInstance Type=cxextension:CxWindowControl}"
12+ xmlns : vsfx =" clr-namespace:Microsoft.VisualStudio.Shell;assembly=Microsoft.VisualStudio.Shell.15.0"
13+ xmlns : vs =" clr-namespace:Microsoft.VisualStudio.PlatformUI;assembly=Microsoft.VisualStudio.Shell.15.0"
14+ xmlns : cxextension =" clr-namespace:ast_visual_studio_extension.CxExtension" d : DataContext =" {d:DesignInstance Type=cxextension:CxWindowControl}"
1215 local:VsTheme.UseVsTheme=" True"
1316 mc : Ignorable =" d"
1417 d : DesignHeight =" 300" d : DesignWidth =" 1308"
1518 Name =" CxWindow" >
1619
1720 <UserControl .Resources>
21+ <converters : ResourceKeyToColorConverter x : Key =" ResourceKeyToColorConverter" />
1822 <Style TargetType =" {x:Type TextBlock}" >
1923 <Setter Property =" Foreground" Value =" {Binding Foreground, ElementName=hiddenLbl}" />
2024 </Style >
535539 <TextBlock TextWrapping =" WrapWithOverflow" Grid.Column=" 1" x : Name =" ResultTitle" FontSize =" 15" Margin =" 7,2,0,0" />
536540 </WrapPanel >
537541
538- <TextBlock Visibility =" Hidden" x : Name =" CodebashingTextBlock" Grid.Column=" 2" Margin =" 0,6,0,0" >
539- <Run >Learn more at</Run >
540- <Run Cursor =" Hand" Foreground =" Orange" FontWeight =" Bold" MouseUp =" OnClickCodebashingLink" > >_</Run >
541- <Run Cursor =" Hand" MouseUp =" OnClickCodebashingLink" >codebashing</Run >
542+ <TextBlock Visibility =" Visible" x : Name =" CodebashingTextBlock" Grid.Column=" 2" Margin =" 0,6,0,0" >
543+ <Run >Learn more at</Run >
544+ <InlineUIContainer BaselineAlignment =" Center" >
545+ <Image Height =" 35" Cursor =" Hand" MouseUp =" OnClickCodebashingLink" >
546+ <Image .Style>
547+ <Style TargetType =" Image" >
548+ <Setter Property =" Source" Value =" Resources/CodeBashing_logoDarkTheme.png" />
549+ <Style .Triggers>
550+ <DataTrigger Binding =" {Binding Source={x:Static local:ThemeManager.Instance}, Path=IsDarkTheme}" Value =" False" >
551+ <Setter Property =" Source" Value =" Resources/CodeBashing_logoLightTheme.png" />
552+ </DataTrigger >
553+ </Style .Triggers>
554+ </Style >
555+ </Image .Style>
556+ </Image >
557+ </InlineUIContainer >
542558 </TextBlock >
543559 </Grid >
544560
793809 </Grid >
794810
795811
796- </UserControl >
812+ </UserControl >
0 commit comments