This file contains hidden or 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.Generic; | |
| using System.ComponentModel; | |
| using System.Runtime.CompilerServices; | |
| namespace AvaloniaUI.Mvvm; | |
| public static class PropertyChangeTrackerExtensions | |
| { | |
| public static PropertyChangeTracker<TRes> WhenAnyValue<TIn, TRes>( |
This file contains hidden or 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.Threading.Tasks; | |
| using System.Windows.Input; | |
| namespace MyAssembly.ViewModels; | |
| /// <summary> | |
| /// Simple implementation of Interaction pattern from ReactiveUI framework. | |
| /// https://www.reactiveui.net/docs/handbook/interactions/ | |
| /// </summary> |
This file contains hidden or 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
| <?xml version='1.0'?> | |
| <Obfuscator> | |
| <Var name="InPath" value="." /> | |
| <Var name="OutPath" value="./Obfuscated" /> | |
| <Var name="KeepPublicApi" value="true" /> | |
| <Var name="HidePrivateApi" value="true" /> | |
| <Module file="$(InPath)/Views.dll"> | |
| <SkipType name="!AvaloniaResources" /> | |
| <SkipType name="CompiledAvaloniaXaml*" /> |
This file contains hidden or 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)); | |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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; |
NewerOlder