0% found this document useful (0 votes)
4 views5 pages

Temp

The document is a XAML code snippet defining a WPF MainWindow for a TTS application. It includes a control bar and a grid layout with buttons for various commands related to user management, planning, and reporting. The window is set to be non-resizable and centered on the screen.

Uploaded by

ultrasavitas2k7
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views5 pages

Temp

The document is a XAML code snippet defining a WPF MainWindow for a TTS application. It includes a control bar and a grid layout with buttons for various commands related to user management, planning, and reporting. The window is set to be non-resizable and centered on the screen.

Uploaded by

ultrasavitas2k7
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

<Window x:Class="TTS_EX.

MainWindow"

xmlns="[Link]

xmlns:x="[Link]

xmlns:d="[Link]

xmlns:mc="[Link]

xmlns:local="clr-namespace:TTS_EX"

mc:Ignorable="d"

Title="MainWindow" Height="450" Width="800"

Name="mainWindow"

DataContext="{StaticResource MainVM}"

ResizeMode="NoResize"

WindowStyle="None"

xmlns:uc="clr-namespace:TTS_EX.UserControlTTS"

WindowStartupLocation="CenterScreen"

xmlns:i="[Link]

xmlns:ei="[Link]

xmlns:converters="clr-namespace:TTS_EX.Converters">

<i:[Link]>

<i:EventTrigger EventName="Loaded">

<i:InvokeCommandAction Command ="{Binding LoadedWindowCommand}"


CommandParameter="{Binding ElementName=mainWindow}"/>

</i:EventTrigger>

</i:[Link]>

<Grid>

<!-- Control Bar -->

<[Link]>
<RowDefinition Height="50" />

<!-- Hàng dành cho Control Bar -->

<RowDefinition Height="*" />

<!-- Hàng dành cho nội dung chính -->

</[Link]>

<!-- Control Bar -->

<Grid [Link]="0">

<uc:ControlBarUC />

</Grid>

<!-- Nội dung chính -->

<Grid [Link]="1" Background="LightSkyBlue">

<[Link]>

<RowDefinition Height="*" />

<RowDefinition Height="*" />

</[Link]>

<[Link]>

<ColumnDefinition Width="*" />

<ColumnDefinition Width="*" />

<ColumnDefinition Width="*" />

<ColumnDefinition Width="*" />

<ColumnDefinition Width="*" />

</[Link]>

<!-- Hàng trên (5 nút) -->

<Button [Link]="0" [Link]="0" Command="{Binding HuyenCommand}"


Background="LightYellow" Cursor="Hand" Margin="25 35 25 35">

<StackPanel Orientation="Vertical" HorizontalAlignment="Center">


<TextBlock FontFamily="Segoe MDL2 Assets" Text="&#xE8A6;" FontSize="30"
Foreground="Black" HorizontalAlignment="Center" />

<TextBlock Text="Đơn Vị Huyện" FontSize="11" FontWeight="Bold"


HorizontalAlignment="Center" />

</StackPanel>

</Button>

<Button [Link]="0" [Link]="1" Command="{Binding XaCommand}"


Background="LightYellow" Cursor="Hand" Margin="25 35 25 35">

<StackPanel Orientation="Vertical" HorizontalAlignment="Center">

<TextBlock FontFamily="Segoe MDL2 Assets" Text="&#xE8A6;" FontSize="30"


Foreground="Black" HorizontalAlignment="Center" />

<TextBlock Text="Đơn Vị Xã" FontSize="11" FontWeight="Bold"


HorizontalAlignment="Center" />

</StackPanel>

</Button>

<Button [Link]="0" [Link]="2" Command="{Binding UserCommand}"


Background="LightYellow" Cursor="Hand" Margin="25 35 25 35">

<StackPanel Orientation="Vertical" HorizontalAlignment="Center">

<TextBlock FontFamily="Segoe MDL2 Assets" Text="&#xE77B;" FontSize="30"


Foreground="Black" HorizontalAlignment="Center" />

<TextBlock Text="Quản lý người dùng" FontSize="11" FontWeight="Bold" />

</StackPanel>

</Button>

<Button [Link]="0" [Link]="3" Command="{Binding QHCommand}"


Background="LightYellow" Cursor="Hand" Margin="25 35 25 35">

<StackPanel Orientation="Vertical" HorizontalAlignment="Center">

<TextBlock FontFamily="Segoe MDL2 Assets" Text="&#xE825;" FontSize="30"


Foreground="Black" HorizontalAlignment="Center" />

<TextBlock Text="Quản lý quy hoạch" FontSize="11" FontWeight="Bold" />


</StackPanel>

</Button>

<Button [Link]="0" [Link]="4" Command="{Binding BCCommand}"


Background="LightYellow" Cursor="Hand" Margin="25 35 25 35">

<StackPanel Orientation="Vertical" HorizontalAlignment="Center">

<TextBlock FontFamily="Segoe MDL2 Assets" Text="&#xE8D2;" FontSize="30"


Foreground="Black" HorizontalAlignment="Center" />

<TextBlock Text="Báo cáo quy hoạch" FontSize="11" FontWeight="Bold" />

</StackPanel>

</Button>

<!-- Hàng dưới (5 nút) -->

<Button [Link]="1" [Link]="0" Command="{Binding CTCommand}"


Background="LightYellow" Cursor="Hand" Margin="25 35 25 35">

<StackPanel Orientation="Vertical" HorizontalAlignment="Center">

<TextBlock FontFamily="Segoe MDL2 Assets" Text="&#xE9F5;" FontSize="30"


Foreground="Black" HorizontalAlignment="Center" />

<TextBlock Text="Quản lý công trình" FontSize="11" FontWeight="Bold" />

</StackPanel>

</Button>

<Button [Link]="1" [Link]="1" Command="{Binding TKCommand}"


Background="LightYellow" Cursor="Hand" Margin="25 35 25 35">

<StackPanel Orientation="Vertical" HorizontalAlignment="Center">

<TextBlock FontFamily="Segoe MDL2 Assets" Text="&#xE8F1;" FontSize="30"


Foreground="Black" HorizontalAlignment="Center" />

<TextBlock Text="Quản lý thống kê" FontSize="11" FontWeight="Bold" />

</StackPanel>

</Button>
<Button [Link]="1" [Link]="2" Command="{Binding ChiTieuCommand}"
Background="LightYellow" Cursor="Hand" Margin="25 35 25 35">

<StackPanel Orientation="Vertical" HorizontalAlignment="Center">

<TextBlock FontFamily="Segoe MDL2 Assets" Text="&#xE706;" FontSize="30"


Foreground="Black" HorizontalAlignment="Center" />

<TextBlock Text="Chỉ tiêu nước sạch" FontSize="11" FontWeight="Bold" />

</StackPanel>

</Button>

<Button [Link]="1" [Link]="3" Command="{Binding BaoCaoChiSoCommand}"


Background="LightYellow" Cursor="Hand" Margin="25 35 25 35">

<StackPanel Orientation="Vertical" HorizontalAlignment="Center">

<TextBlock FontFamily="Segoe MDL2 Assets" Text="&#xE8D1;" FontSize="30"


Foreground="Black" HorizontalAlignment="Center" />

<TextBlock Text="Báo Cáo Chỉ Tiêu" FontSize="11" FontWeight="Bold" />

</StackPanel>

</Button>

<Button [Link]="1" [Link]="4" Command="{Binding VBPLCommand}"


Background="LightYellow" Cursor="Hand" Margin="25 35 25 35">

<StackPanel Orientation="Vertical" HorizontalAlignment="Center">

<TextBlock FontFamily="Segoe MDL2 Assets" Text="&#xE8A5;" FontSize="30"


Foreground="Black" HorizontalAlignment="Center" />

<TextBlock Text="Văn bản pháp luật" FontSize="11" FontWeight="Bold" />

</StackPanel>

</Button>

</Grid>

</Grid>

</Window>

You might also like