diff options
| author | Roy <Roy.mail.net@gmail.com> | 2022-10-26 05:02:21 +0300 |
|---|---|---|
| committer | Roy <Roy.mail.net@gmail.com> | 2022-10-26 05:02:21 +0300 |
| commit | 4b7322a0a052157eed4240e917ffa5d7de2fe2fe (patch) | |
| tree | e9ea52065a75682f14161421ef88a613da378955 /Software/Visual_Studio/FSE/Tango.FSE.Common | |
| parent | 5d275443e31b183845c92c82c9bad50ca69ac156 (diff) | |
| download | Tango-4b7322a0a052157eed4240e917ffa5d7de2fe2fe.tar.gz Tango-4b7322a0a052157eed4240e917ffa5d7de2fe2fe.zip | |
Twine Studio
Diffstat (limited to 'Software/Visual_Studio/FSE/Tango.FSE.Common')
3 files changed, 40 insertions, 2 deletions
diff --git a/Software/Visual_Studio/FSE/Tango.FSE.Common/Build/IBuildProvider.cs b/Software/Visual_Studio/FSE/Tango.FSE.Common/Build/IBuildProvider.cs index e97ce9c6a..ee99f24d1 100644 --- a/Software/Visual_Studio/FSE/Tango.FSE.Common/Build/IBuildProvider.cs +++ b/Software/Visual_Studio/FSE/Tango.FSE.Common/Build/IBuildProvider.cs @@ -16,5 +16,6 @@ namespace Tango.FSE.Common.Build { BuildVariants CurrentBuild { get; } String BuildName { get; } + bool IsTwineStudio { get; } } } diff --git a/Software/Visual_Studio/FSE/Tango.FSE.Common/Controls/FSETabControl.cs b/Software/Visual_Studio/FSE/Tango.FSE.Common/Controls/FSETabControl.cs index 44cfd4872..7f73eb607 100644 --- a/Software/Visual_Studio/FSE/Tango.FSE.Common/Controls/FSETabControl.cs +++ b/Software/Visual_Studio/FSE/Tango.FSE.Common/Controls/FSETabControl.cs @@ -95,6 +95,7 @@ namespace Tango.FSE.Common.Controls SelectedElement = e; }; + Elements = Elements.Where(x => !GetHidden(x)).ToObservableCollection(); _navigationControl.Elements = Elements; } @@ -102,5 +103,41 @@ namespace Tango.FSE.Common.Controls { DefaultStyleKeyProperty.OverrideMetadata(typeof(FSETabControl), new FrameworkPropertyMetadata(typeof(FSETabControl))); } + + #region Attached Properties + + #region Hidden + + /// <summary> + /// Determines the element navigation name. + /// </summary> + public static readonly DependencyProperty Hidden = + DependencyProperty.RegisterAttached("Hidden", + typeof(bool), typeof(FSETabControl), + new FrameworkPropertyMetadata(false)); + + /// <summary> + /// Sets the name of the navigation. + /// </summary> + /// <param name="element">The element.</param> + /// <param name="value">The value.</param> + public static void SetHidden(FrameworkElement element, bool value) + { + element.SetValue(Hidden, value); + } + + /// <summary> + /// Gets the name of the navigation. + /// </summary> + /// <param name="element">The element.</param> + /// <returns></returns> + public static bool GetHidden(FrameworkElement element) + { + return (bool)element.GetValue(Hidden); + } + + #endregion + + #endregion } } diff --git a/Software/Visual_Studio/FSE/Tango.FSE.Common/Tango.FSE.Common.csproj b/Software/Visual_Studio/FSE/Tango.FSE.Common/Tango.FSE.Common.csproj index aed04a956..98652de6b 100644 --- a/Software/Visual_Studio/FSE/Tango.FSE.Common/Tango.FSE.Common.csproj +++ b/Software/Visual_Studio/FSE/Tango.FSE.Common/Tango.FSE.Common.csproj @@ -51,9 +51,9 @@ </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'TS_Debug|AnyCPU'"> <OutputPath>..\..\Build\Twine Studio\Debug\</OutputPath> - <DefineConstants>TRACE</DefineConstants> + <DefineConstants>DEBUG;TRACE</DefineConstants> <DocumentationFile>..\..\Build\Twine Studio\Debug\Tango.FSE.Common.xml</DocumentationFile> - <Optimize>true</Optimize> + <Optimize>false</Optimize> <NoWarn>1591</NoWarn> <DebugType>pdbonly</DebugType> <PlatformTarget>AnyCPU</PlatformTarget> |
