4
4
xmlns : mc =" http://schemas.openxmlformats.org/markup-compatibility/2006"
5
5
xmlns : d =" http://schemas.microsoft.com/expression/blend/2008"
6
6
xmlns : local =" clr-namespace:ast_visual_studio_extension"
7
+ xmlns : converters =" clr-namespace:ast_visual_studio_extension"
7
8
xmlns : GenericWPF =" clr-namespace:ast_visual_studio_extension.CxExtension.Utils"
8
9
xmlns : imaging =" clr-namespace:Microsoft.VisualStudio.Imaging;assembly=Microsoft.VisualStudio.Imaging"
9
10
xmlns : catalog =" clr-namespace:Microsoft.VisualStudio.Imaging;assembly=Microsoft.VisualStudio.ImageCatalog"
10
11
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}"
12
15
local:VsTheme.UseVsTheme=" True"
13
16
mc : Ignorable =" d"
14
17
d : DesignHeight =" 300" d : DesignWidth =" 1308"
15
18
Name =" CxWindow" >
16
19
17
20
<UserControl .Resources>
21
+ <converters : ResourceKeyToColorConverter x : Key =" ResourceKeyToColorConverter" />
18
22
<Style TargetType =" {x:Type TextBlock}" >
19
23
<Setter Property =" Foreground" Value =" {Binding Foreground, ElementName=hiddenLbl}" />
20
24
</Style >
535
539
<TextBlock TextWrapping =" WrapWithOverflow" Grid.Column=" 1" x : Name =" ResultTitle" FontSize =" 15" Margin =" 7,2,0,0" />
536
540
</WrapPanel >
537
541
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 >
542
558
</TextBlock >
543
559
</Grid >
544
560
793
809
</Grid >
794
810
795
811
796
- </UserControl >
812
+ </UserControl >
0 commit comments