Skip to content

Commit f8e3724

Browse files
committed
Remove ButtonAssist.IsClicked leftovers
1 parent 307ff60 commit f8e3724

File tree

2 files changed

+3
-16
lines changed

2 files changed

+3
-16
lines changed

Material.Avalonia.Demo/Pages/ButtonsDemo.axaml

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -193,12 +193,9 @@
193193
</StackPanel>
194194

195195
<TextBlock Classes="Headline6 Subheadline2" Text="Hyperlink buttons" />
196-
<StackPanel Orientation="Horizontal">
197-
<StackPanel.Styles>
198-
<Style Selector="showMeTheXaml|XamlDisplay">
199-
<Setter Property="Margin" Value="8" />
200-
</Style>
201-
</StackPanel.Styles>
196+
<StackPanel Orientation="Horizontal" Spacing="8">
197+
<!-- TODO: Emit notifications or something like that -->
198+
<!-- Probably add one with link to docs? -->
202199
<showMeTheXaml:XamlDisplay UniqueId="HyperlinkButtons0">
203200
<HyperlinkButton Theme="{StaticResource MaterialHyperlinkButton}"
204201
Content="A hyperlink!"
@@ -214,16 +211,7 @@
214211
Command="{Binding #ButtonsDemoPageControl.OnHyperlink2Clicked}"/>
215212
</showMeTheXaml:XamlDisplay>
216213

217-
<!-- add assists:ButtonAssist.IsClicked="{x:Null}" to ignore memorise visited feature -->
218214
<showMeTheXaml:XamlDisplay UniqueId="HyperlinkButtons2">
219-
<HyperlinkButton assists:ButtonAssist.IsClicked="{x:Null}"
220-
Theme="{StaticResource MaterialHyperlinkButton}"
221-
Content="Another hyperlink, but not to memorise visited!"
222-
ToolTip.Tip='I dont remember visited or not lol'
223-
Command="{Binding #ButtonsDemoPageControl.OnHyperlink2Clicked}"/>
224-
</showMeTheXaml:XamlDisplay>
225-
226-
<showMeTheXaml:XamlDisplay UniqueId="HyperlinkButtons3">
227215
<HyperlinkButton IsVisited="False"
228216
IsEnabled="False"
229217
Theme="{StaticResource MaterialHyperlinkButton}"

Material.Styles/Resources/Themes/HyperlinkButton.axaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
<ControlTheme x:Key="MaterialHyperlinkButton" TargetType="HyperlinkButton">
1515
<Setter Property="Cursor" Value="Hand" />
1616
<Setter Property="TextBlock.TextDecorations" Value="Underline" />
17-
<Setter Property="assists:ButtonAssist.IsClicked" Value="False"/>
1817
<Setter Property="Template">
1918
<ControlTemplate>
2019
<ContentPresenter x:Name="PART_ContentPresenter"

0 commit comments

Comments
 (0)