aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/FSE/Tango.FSE.Common/Controls/MachineIcon.cs
diff options
context:
space:
mode:
authorRoy <Roy.mail.net@gmail.com>2023-02-19 00:13:53 +0200
committerRoy <Roy.mail.net@gmail.com>2023-02-19 00:13:53 +0200
commita054f1ab36fe3cbe816f78fa5ea68b30cde1bd43 (patch)
tree2cdcfb86f298ba32e28b4f29c9b31d1faa05d5da /Software/Visual_Studio/FSE/Tango.FSE.Common/Controls/MachineIcon.cs
parenta4cd972fd023425fa9414e56748665cb2821f412 (diff)
downloadTango-a054f1ab36fe3cbe816f78fa5ea68b30cde1bd43.tar.gz
Tango-a054f1ab36fe3cbe816f78fa5ea68b30cde1bd43.zip
FSE Eureka Design Support.
Diffstat (limited to 'Software/Visual_Studio/FSE/Tango.FSE.Common/Controls/MachineIcon.cs')
-rw-r--r--Software/Visual_Studio/FSE/Tango.FSE.Common/Controls/MachineIcon.cs54
1 files changed, 54 insertions, 0 deletions
diff --git a/Software/Visual_Studio/FSE/Tango.FSE.Common/Controls/MachineIcon.cs b/Software/Visual_Studio/FSE/Tango.FSE.Common/Controls/MachineIcon.cs
new file mode 100644
index 000000000..349328676
--- /dev/null
+++ b/Software/Visual_Studio/FSE/Tango.FSE.Common/Controls/MachineIcon.cs
@@ -0,0 +1,54 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+
+namespace Tango.FSE.Common.Controls
+{
+ /// <summary>
+ /// Follow steps 1a or 1b and then 2 to use this custom control in a XAML file.
+ ///
+ /// Step 1a) Using this custom control in a XAML file that exists in the current project.
+ /// Add this XmlNamespace attribute to the root element of the markup file where it is
+ /// to be used:
+ ///
+ /// xmlns:MyNamespace="clr-namespace:Tango.FSE.Common.Controls"
+ ///
+ ///
+ /// Step 1b) Using this custom control in a XAML file that exists in a different project.
+ /// Add this XmlNamespace attribute to the root element of the markup file where it is
+ /// to be used:
+ ///
+ /// xmlns:MyNamespace="clr-namespace:Tango.FSE.Common.Controls;assembly=Tango.FSE.Common.Controls"
+ ///
+ /// You will also need to add a project reference from the project where the XAML file lives
+ /// to this project and Rebuild to avoid compilation errors:
+ ///
+ /// Right click on the target project in the Solution Explorer and
+ /// "Add Reference"->"Projects"->[Browse to and select this project]
+ ///
+ ///
+ /// Step 2)
+ /// Go ahead and use your control in the XAML file.
+ ///
+ /// <MyNamespace:MachineIcon/>
+ ///
+ /// </summary>
+ public class MachineIcon : Control
+ {
+ static MachineIcon()
+ {
+ DefaultStyleKeyProperty.OverrideMetadata(typeof(MachineIcon), new FrameworkPropertyMetadata(typeof(MachineIcon)));
+ }
+ }
+}