From 2b9cbb5d7761e05d867d28816acd3f12447b2be3 Mon Sep 17 00:00:00 2001 From: cbra_caa Date: Fri, 13 Jan 2023 09:36:45 +0100 Subject: [PATCH 1/2] Backstage.IsOpen is now fully bindable as it only interacts via the this.SetCurrentValue when opening and closing from the control. Added test binding to the showcase. --- Fluent.Ribbon.Showcase/TestContent.xaml | 9 +++++++- .../ViewModels/MainViewModel.cs | 16 ++++++++++++++ .../Peers/RibbonBackstageAutomationPeer.cs | 4 ++-- Fluent.Ribbon/Controls/Backstage.cs | 21 ++++++++++++------- 4 files changed, 39 insertions(+), 11 deletions(-) diff --git a/Fluent.Ribbon.Showcase/TestContent.xaml b/Fluent.Ribbon.Showcase/TestContent.xaml index 1aa9d144c..393830bf8 100644 --- a/Fluent.Ribbon.Showcase/TestContent.xaml +++ b/Fluent.Ribbon.Showcase/TestContent.xaml @@ -176,7 +176,8 @@ + Visibility="Collapsed" + IsOpen="{Binding IsBackstageOpen, Mode=TwoWay}">