Advertisement
Guest User

MenuUC

a guest
Nov 20th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.56 KB | None | 0 0
  1. <UserControl x:Class="DecisionAssistant.View.MenuUC"
  2.             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3.             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4.             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5.             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6.             xmlns:local="clr-namespace:DecisionAssistant.View"
  7.             xmlns:vm="clr-namespace:DecisionAssistant.ViewModel"
  8.             xmlns:Controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
  9.  
  10.             mc:Ignorable="d"
  11.             d:DesignHeight="500" d:DesignWidth="700">
  12.     <UserControl.DataContext>
  13.         <vm:MainWindowViewModel/>
  14.     </UserControl.DataContext>
  15.     <Grid VerticalAlignment="Center" HorizontalAlignment="Center"  Width="700" Height="500" Margin="10">
  16.         <Grid.ColumnDefinitions>
  17.             <ColumnDefinition/>
  18.         </Grid.ColumnDefinitions>
  19.         <Grid.RowDefinitions>
  20.             <RowDefinition/>
  21.             <RowDefinition Height="50"/>
  22.         </Grid.RowDefinitions>
  23.         <StackPanel Grid.Column="0" Grid.Row="0" Orientation="Horizontal" Margin="20" HorizontalAlignment="Center">
  24.             <Controls:Tile x:Name="TileCrete" Title="Create model" Width="200" Height="200"  Margin="10" Command="{Binding GoToCreateModel}">
  25.                 <Rectangle Width="100" Height="100" Fill="White">
  26.                     <Rectangle.OpacityMask>
  27.                         <VisualBrush Visual="{StaticResource appbar_layer_add}" Stretch="Fill"  />
  28.                     </Rectangle.OpacityMask>
  29.                 </Rectangle>
  30.             </Controls:Tile>
  31.             <Controls:Tile x:Name="TileFill"  Title="Enter data" Width="200" Height="200"  Margin="10" Command="{Binding GoToEnterData}">
  32.                 <Rectangle Width="100" Height="100" Fill="White">
  33.                     <Rectangle.OpacityMask>
  34.                         <VisualBrush Visual="{StaticResource appbar_database}" Stretch="Fill" />
  35.                     </Rectangle.OpacityMask>
  36.                 </Rectangle>
  37.             </Controls:Tile>
  38.             <Controls:Tile x:Name="TileResult" Title="Result" Width="200" Height="200"  Margin="10" >
  39.                 <Rectangle Width="100" Height="100" Fill="White">
  40.                     <Rectangle.OpacityMask>
  41.                         <VisualBrush Visual="{StaticResource appbar_graph_bar}" Stretch="Fill" />
  42.                     </Rectangle.OpacityMask>
  43.                 </Rectangle>
  44.             </Controls:Tile>
  45.         </StackPanel>
  46.     </Grid>
  47. </UserControl>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement