aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Sites/Properties/AssemblyInfo.cs
blob: a6eebb5a83c66a9fd9e9f7e87d469ba28091c7ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Windows;

[assembly: AssemblyTitle("Tango - Machine Studio Sites Module")]
[assembly: AssemblyVersion("1.0.0.1737")]

[assembly: ComVisible(false)]

[assembly: ThemeInfo(
    ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
                                     //(used if a resource is not found in the page,
                                     // or application resource dictionaries)
    ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
                                              //(used if a resource is not found in the page,
                                              // app, or any theme specific resource dictionaries)
)]
(_, __) => InvalidateGrid(); } private void InvalidateGrid() { ColumnDefinitions.Clear(); int count = 0; foreach (var item in Children.OfType<UIElement>()) { count++; int span = Grid.GetColumnSpan(item); if (span > 1) { count += span; } Grid.SetColumn(item, count - 1); } for (int i = 0; i < count; i++) { ColumnDefinitions.Add(new ColumnDefinition() { Width = new GridLength(1, GridUnitType.Star) }); } } } }