From 41c661da1a3e3508f89f619cae52c39eaffa5ccf Mon Sep 17 00:00:00 2001
From: NaBian <836904362@qq.com>
Date: Mon, 2 Aug 2021 00:06:16 +0800
Subject: [PATCH] support for tab switching
---
.../HandyControl_Net_40/Themes/Theme.xaml | 2 +-
.../Controls/Ribbon/Ribbon.cs | 179 +++++-------------
.../Controls/Ribbon/RibbonTab.cs | 73 ++++++-
.../Controls/Ribbon/RibbonTabHeader.cs | 63 +++++-
.../Themes/Styles/Ribbon.xaml | 5 +-
5 files changed, 186 insertions(+), 136 deletions(-)
diff --git a/src/Net_40/HandyControl_Net_40/Themes/Theme.xaml b/src/Net_40/HandyControl_Net_40/Themes/Theme.xaml
index 0ca52e76..f028b5e3 100644
--- a/src/Net_40/HandyControl_Net_40/Themes/Theme.xaml
+++ b/src/Net_40/HandyControl_Net_40/Themes/Theme.xaml
@@ -10867,7 +10867,7 @@
-
+
diff --git a/src/Shared/HandyControl_Shared/Controls/Ribbon/Ribbon.cs b/src/Shared/HandyControl_Shared/Controls/Ribbon/Ribbon.cs
index 9fae196c..0578655b 100644
--- a/src/Shared/HandyControl_Shared/Controls/Ribbon/Ribbon.cs
+++ b/src/Shared/HandyControl_Shared/Controls/Ribbon/Ribbon.cs
@@ -1,12 +1,9 @@
using System;
using System.Collections.ObjectModel;
using System.Collections.Specialized;
-using System.ComponentModel;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
-using System.Windows.Media;
-using HandyControl.Data;
namespace HandyControl.Controls
{
@@ -19,25 +16,48 @@ namespace HandyControl.Controls
private readonly ObservableCollection