This repository was archived by the owner on Jun 21, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-13
lines changed
src/GitHub.InlineReviews/Views Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Original file line number Diff line number Diff line change 3636 </UserControl .Resources>
3737
3838 <StackPanel Orientation =" Horizontal" >
39- <Grid >
39+ <Grid Visibility = " {Binding Number, Converter={ui:EqualsToVisibilityConverter {x:Null}}} " >
4040 <Button
4141 Foreground =" {DynamicResource VsBrush.StatusBarText}"
4242 BorderThickness =" 0"
5454 </TextBlock >
5555 </StackPanel >
5656 </Button >
57- <Grid .Style>
58- <Style >
59- <Setter Property =" Control.Visibility" Value =" Collapsed" />
60- <Style .Triggers>
61- <!-- Visible when Number is Null -->
62- <DataTrigger Binding =" {Binding Number}" Value =" {x:Null}" >
63- <Setter Property =" Control.Visibility" Value =" Visible" />
64- </DataTrigger >
65- </Style .Triggers>
66- </Style >
67- </Grid .Style>
6857 <Grid .ToolTip>
6958 <TextBlock VerticalAlignment =" Center" >
7059 Open or Create a Pull request
7160 </TextBlock >
7261 </Grid .ToolTip>
7362 </Grid >
7463
75- <Grid Visibility =" {Binding Number, TargetNullValue=Collapsed }" >
64+ <Grid Visibility =" {Binding Number, Converter={ui:NotEqualsToVisibilityConverter {x:Null}} }" >
7665 <Button
7766 Foreground =" {DynamicResource VsBrush.StatusBarText}"
7867 BorderThickness =" 0"
You can’t perform that action at this time.
0 commit comments