t
This commit is contained in:
@@ -10,7 +10,9 @@
|
||||
xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
|
||||
xmlns:controls="clr-namespace:Server_Dashboard.Controls.ServerModules"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="920" d:DesignWidth="1600">
|
||||
d:DesignHeight="920"
|
||||
d:DesignWidth="1600"
|
||||
>
|
||||
<Grid Background="{StaticResource BackgroundSurface_00dp}">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="*"/>
|
||||
@@ -31,8 +33,8 @@
|
||||
</Grid.RowDefinitions>
|
||||
<Button
|
||||
Grid.Row="0"
|
||||
Command="{Binding CreateModuleCommand}"
|
||||
Content="CREATE MODULE"
|
||||
Command="{Binding CreateNewModuleCommand}"
|
||||
Content="New Module"
|
||||
Height="50"
|
||||
Margin="5 10 5 0" Cursor="Hand"
|
||||
x:Name="CreateModule"
|
||||
@@ -40,21 +42,21 @@
|
||||
<Button
|
||||
Grid.Row="1"
|
||||
Command="{Binding DeleteModuleCommand}"
|
||||
Content="DELETE MODULE"
|
||||
Content="Remove Module"
|
||||
Height="50"
|
||||
Margin="5 10 5 0"
|
||||
/>
|
||||
<Button
|
||||
Grid.Row="2"
|
||||
Command="{Binding UpdateModuleCommand}"
|
||||
Content="UPDATE MODULE"
|
||||
Content="Change Module"
|
||||
Height="50"
|
||||
Margin="5 10 5 0" Cursor="Hand"
|
||||
/>
|
||||
</Grid>
|
||||
<Grid Grid.Column="1">
|
||||
<ScrollViewer VerticalScrollBarVisibility="Hidden">
|
||||
<ItemsControl ItemsSource="{Binding ModuleList}">
|
||||
<ItemsControl ItemsSource="{Binding Modules}">
|
||||
<ItemsControl.ItemsPanel>
|
||||
<ItemsPanelTemplate>
|
||||
<WrapPanel HorizontalAlignment="Center"/>
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace Server_Dashboard.Views.DashboardPages {
|
||||
public partial class MainDashboardPage : UserControl {
|
||||
public MainDashboardPage() {
|
||||
InitializeComponent();
|
||||
DataContext = new DashboardModuleViewModel();
|
||||
DataContext = new DashboardViewModel();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,7 +8,14 @@
|
||||
xmlns:views="clr-namespace:Server_Dashboard.Views.DashboardPages"
|
||||
xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
|
||||
xmlns:svgc="http://sharpvectors.codeplex.com/svgc/"
|
||||
Height="1000" Width="Auto" WindowStyle="None" Background="Transparent" ResizeMode="CanResize">
|
||||
Height="1000"
|
||||
Width="Auto"
|
||||
WindowStyle="None"
|
||||
Background="Transparent"
|
||||
ResizeMode="CanResize"
|
||||
mc:Ignorable="d"
|
||||
d:Height="1000" d:Width="1900"
|
||||
>
|
||||
<WindowChrome.WindowChrome>
|
||||
<WindowChrome CaptionHeight="0"/>
|
||||
</WindowChrome.WindowChrome>
|
||||
|
||||
Reference in New Issue
Block a user