mirror of
https://github.com/AtomUI/AtomUI.git
synced 2026-10-17 05:31:01 +08:00
feat(SplitButton): update flyout binding to use RequestedPlacementProperty and add NuGet.config for package sources
This commit is contained in:
@@ -10,10 +10,4 @@
|
||||
<Import Project="$(MSBuildThisFileDirectory)/build/Common.props"/>
|
||||
<Import Project="$(MSBuildThisFileDirectory)/build/PackageMetaInfo.props"/>
|
||||
<Import Project="$(MSBuildThisFileDirectory)/build/Output.props"/>
|
||||
|
||||
<PropertyGroup>
|
||||
<RestoreSources>
|
||||
https://nuget-feed-nightly.avaloniaui.net/v3/index.json;
|
||||
</RestoreSources>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<packageSources>
|
||||
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3"/>
|
||||
<add key="avalonia-nightly" value="https://nuget-feed-nightly.avaloniaui.net/v3/index.json" />
|
||||
</packageSources>
|
||||
<packageSourceMapping>
|
||||
<packageSource key="nuget.org">
|
||||
<package pattern="*" />
|
||||
</packageSource>
|
||||
<packageSource key="avalonia-nightly">
|
||||
<package pattern="Avalonia*" />
|
||||
</packageSource>
|
||||
</packageSourceMapping>
|
||||
</configuration>
|
||||
@@ -396,7 +396,7 @@ public class SplitButton : ContentControl,
|
||||
_flyoutBindingDisposables?.Dispose();
|
||||
_flyoutBindingDisposables = new CompositeDisposable(8);
|
||||
|
||||
_flyoutBindingDisposables.Add(BindUtils.RelayBind(this, PlacementProperty, flyout));
|
||||
_flyoutBindingDisposables.Add(BindUtils.RelayBind(this, PlacementProperty, flyout, Flyout.RequestedPlacementProperty, (PlacementMode v) => (PlacementMode?)v));
|
||||
_flyoutBindingDisposables.Add(BindUtils.RelayBind(this, PlacementAnchorProperty, flyout));
|
||||
_flyoutBindingDisposables.Add(BindUtils.RelayBind(this, PlacementGravityProperty, flyout));
|
||||
_flyoutBindingDisposables.Add(BindUtils.RelayBind(this, IsShowArrowProperty, flyout));
|
||||
@@ -406,7 +406,7 @@ public class SplitButton : ContentControl,
|
||||
_flyoutBindingDisposables.Add(BindUtils.RelayBind(this, ShouldUseOverlayPopupProperty, flyout));
|
||||
|
||||
_flyoutBindingDisposables.Add(flyout.GetPropertyChangedObservable(Popup
|
||||
.PlacementProperty)
|
||||
.RequestedPlacementProperty)
|
||||
.Subscribe(HandleFlyoutPlacementPropertyChanged));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user