-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMainWindow.g.xaml
37 lines (37 loc) · 2.7 KB
/
MainWindow.g.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<Window x:Class="Retia.Gui.Graphs.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:ns0="clr-namespace:Retia.Analytical;assembly=Retia.Analytical" xmlns:ns1="clr-namespace:Retia.Gui.Graphs" xmlns:ns2="clr-namespace:AmmySidekick;assembly=AmmySidekick" Loaded="Window_OnLoaded" ns2:Ammy.Register="/Retia.Gui.Graphs;component/MainWindow.g.xaml">
<Window.Resources>
<DataTemplate DataType="{x:Type ns0:Expr}">
<TextBlock>
<TextBlock.Text>
<Binding Converter="{x:Static ns2:ExpressionConverter.Instance}" ConverterParameter="<expr id="0"><lambda isaction="False"><binary op="Sum"><binary op="Sum"><staticcall method="Concat"><typeinfo typename="System.String" isarray="False"></typeinfo><prim val="[" isnull="False"><typeinfo typename="System.String" isarray="False"></typeinfo></prim>
<prop name="Type"><parameter name="vertex" type="Retia.Analytical.Expr" /></prop></staticcall><prim val="]" isnull="False"><typeinfo typename="System.String" isarray="False"></typeinfo></prim></binary><prop name="Name"><parameter name="vertex" type="Retia.Analytical.Expr" /></prop></binary><parameter name="vertex" type="Retia.Analytical.Expr" /></lambda></expr>"/>
</TextBlock.Text>
</TextBlock>
</DataTemplate>
</Window.Resources>
<DockPanel>
<ToolBar DockPanel.Dock="Top">
<Button Click="BtnModel_OnClick">Forward</Button>
<Button Click="BtnDer_OnClick">Backward</Button>
<Button Click="BtnRelayout_OnClick">Looks like shit</Button>
<ComboBox>
<ComboBox.ItemsSource>
<Binding Path="Layouts"/>
</ComboBox.ItemsSource>
<ComboBox.SelectedItem>
<Binding Path="CurLayout"/>
</ComboBox.SelectedItem>
</ComboBox>
</ToolBar>
<ScrollViewer VerticalScrollBarVisibility="Visible" HorizontalScrollBarVisibility="Visible">
<ns1:GLayout x:Name="graph" OverlapRemovalAlgorithmType="FSA" HighlightAlgorithmType="Simple" IsAnimationEnabled="False">
<ns1:GLayout.Graph>
<Binding Path="Graph"/>
</ns1:GLayout.Graph>
<ns1:GLayout.LayoutAlgorithmType>
<Binding Path="CurLayout"/>
</ns1:GLayout.LayoutAlgorithmType>
</ns1:GLayout>
</ScrollViewer>
</DockPanel>
</Window>