Skip to content

Commit

Permalink
fix some errors
Browse files Browse the repository at this point in the history
  • Loading branch information
PieroCastillo committed Jan 26, 2024
1 parent 14c6803 commit d798919
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 16 deletions.
1 change: 1 addition & 0 deletions src/Aura.UI.FluentTheme/Aura.UI.FluentTheme.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Avalonia" Version="11.0.7" />
<PackageReference Include="Avalonia.Xaml.Interactions.Draggable" Version="11.0.6" />
</ItemGroup>
<Import Project="..\..\build\version.props" />
</Project>
14 changes: 6 additions & 8 deletions src/Aura.UI.FluentTheme/Controls/AuraTabItemStyles.xaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Styles xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:i="using:Avalonia.Xaml.Interactivity"
xmlns:b="using:Aura.UI.Behaviors">
xmlns:b="using:Avalonia.Xaml.Interactivity.Draggable">
<Design.PreviewWith>
<AuraTabView TabStripPlacement="Right">
<AuraTabItem Header="Hello"
Expand Down Expand Up @@ -49,13 +49,11 @@
<Style Selector="AuraTabItem[TabStripPlacement=Top]">
<Setter Property="CornerRadius" Value="7,7,0,0" />
<Setter Property="(i:Interaction.Behaviors)">
<b:SharedContentTemplate>
<b:SharedContent>
<i:BehaviorCollection>
<b:ItemDragBehavior Orientation="Horizontal"/>
</i:BehaviorCollection>
</b:SharedContent>
</b:SharedContentTemplate>
<i:BehaviorCollectionTemplate>
<i:BehaviorCollection>
<b:ItemDragBehavior Orientation="Horizontal" />
</i:BehaviorCollection>
</i:BehaviorCollectionTemplate>
</Setter>
<Setter Property="Template">
<ControlTemplate>
Expand Down
7 changes: 3 additions & 4 deletions src/Aura.UI/Controls/AuraTabView/AuraTabView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace Aura.UI.Controls
/// <summary>
/// A powered-up TabControl
/// </summary>
public partial class AuraTabView : TabViewBase, IHeadered, IFootered
public partial class AuraTabView : TabViewBase, IFootered
{
private Button AdderButton;
internal double lastselectindex = 0;
Expand All @@ -34,7 +34,7 @@ protected void AdderButtonClicked(object sender, RoutedEventArgs e)
}

/// <inheritdoc/>
protected override IItemContainerGenerator CreateItemContainerGenerator()
protected override ItemContainerGenerator CreateItemContainerGenerator()
=> new AuraTabItemContainerGenerator(
this,
AuraTabItem.ContentProperty,
Expand All @@ -43,8 +43,7 @@ protected override IItemContainerGenerator CreateItemContainerGenerator()
AuraTabItem.IconProperty,
AuraTabItem.IsClosableProperty);


protected override void OnPropertyChanged<T>(AvaloniaPropertyChangedEventArgs<T> change)
protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs change)
{
base.OnPropertyChanged(change);

Expand Down
2 changes: 1 addition & 1 deletion src/Aura.UI/Controls/BlurryImage/BlurryImage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public override void Render(DrawingContext context)
// .CenterRect(new Rect(destRect.Size / scale));

// var interpolationMode = RenderOptions.GetBitmapInterpolationMode(this);
context.Custom(new BlurImageRender(stream, dstRect, srcRect, BlurLevel, BlurLevel, null));
context.Custom(new BlurImageRender(stream, dstRect, srcRect, BlurLevel, BlurLevel));
// Dispatcher.UIThread.InvokeAsync(InvalidateVisual, DispatcherPriority.Background);
//}
}
Expand Down
6 changes: 3 additions & 3 deletions src/Aura.UI/Controls/ProgressRing/ProgressRing.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ static ProgressRing()
MinimumProperty.Changed.Subscribe(CalibrateAngles);
ValueProperty.Changed.Subscribe(CalibrateAngles);

MaximumProperty.OverrideMetadata<ProgressRing>(new DirectPropertyMetadata<double>(100));
MinimumProperty.OverrideMetadata<ProgressRing>(new DirectPropertyMetadata<double>(0));
ValueProperty.OverrideMetadata<ProgressRing>(new DirectPropertyMetadata<double>(25));
MaximumProperty.OverrideMetadata<ProgressRing>(new StyledPropertyMetadata<double>(100));
MinimumProperty.OverrideMetadata<ProgressRing>(new StyledPropertyMetadata<double>(0));
ValueProperty.OverrideMetadata<ProgressRing>(new StyledPropertyMetadata<double>(25));

AffectsRender<ProgressRing>(XAngleProperty, YAngleProperty);
}
Expand Down

0 comments on commit d798919

Please sign in to comment.