This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AddClassBehavior : AvaloniaObject, IBehavior | |
{ | |
public IAvaloniaObject AssociatedObject { get; private set; } | |
public string Class | |
{ | |
get => GetValue(ClassProperty); | |
set => SetValue(ClassProperty, value); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using Avalonia; | |
using Avalonia.Collections; | |
using Avalonia.Controls; | |
using Avalonia.Data; | |
using ReactiveUI; | |
namespace Utils |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Octokit; | |
using System.CommandLine.Invocation; | |
using System.CommandLine; | |
using System.Globalization; | |
using System; | |
using System.Linq; | |
using System.Collections.Generic; | |
using System.Text.RegularExpressions; | |
using System.Threading.Tasks; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Avalonia; | |
using Avalonia.Controls; | |
using Avalonia.Layout; | |
using Avalonia.Media; | |
using Avalonia.Media.Immutable; | |
using Avalonia.Media.TextFormatting; | |
namespace MyApp | |
{ | |
public class TextBlockWithShadow : TextBlock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Project Sdk="Microsoft.NET.Sdk"> | |
<!-- ... --> | |
<Import Project="../Obfuscar.targets" /> | |
<!-- ... --> | |
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Collections.ObjectModel; | |
using System.Collections.Specialized; | |
using System.Linq; | |
using Avalonia; | |
using Avalonia.Controls; | |
using Avalonia.Controls.Selection; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Style Selector="ScrollViewer.horizontalScroller"> | |
<Setter Property="Template"> | |
<ControlTemplate> | |
<DockPanel> | |
<RepeatButton x:Name="ScrollLeftButton" | |
DockPanel.Dock="Left" | |
Foreground="{DynamicResource SystemControlForegroundBaseHighBrush}" | |
Command="{Binding PageLeft, RelativeSource={RelativeSource TemplatedParent}}"> | |
<RepeatButton.IsVisible> | |
<MultiBinding Converter="{x:Static avaConv:MenuScrollingVisibilityConverter.Instance}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<UserControl | |
xmlns="https://github.com/avaloniaui" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:i="clr-namespace:Avalonia.Xaml.Interactivity;assembly=Avalonia.Xaml.Interactivity" | |
xmlns:ia="clr-namespace:Avalonia.Xaml.Interactions.Core;assembly=Avalonia.Xaml.Interactions" | |
MaxWidth="600"> | |
<UserControl.Styles> | |
<Styles> | |
<Style Selector="Border.animated"> | |
<Style.Animations> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AsyncImage : Image | |
{ | |
private static readonly HttpClient httpClient = new HttpClient(); | |
public static readonly StyledProperty<string?> AsyncSourceProperty = | |
AvaloniaProperty.Register<AsyncImage, string?>(nameof(AsyncSource)); | |
public static readonly StyledProperty<string?> FallbackSourceProperty = | |
AvaloniaProperty.Register<AsyncImage, string?>(nameof(FallbackSource)); | |
OlderNewer