mirror of
https://github.com/Stone-Red-Code/docs-desktop.git
synced 2026-09-04 09:06:04 +02:00
Fix formatting in XAML file (#1148)
* Update Window1.xaml * Update Window1.xaml
This commit is contained in:
+12
-26
@@ -1,12 +1,10 @@
|
||||
<Window x:Class="SDKSample.Window1"
|
||||
<Window x:Class="SDKSample.Window1"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
Loaded="OnLoad"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Loaded="OnLoad"
|
||||
xmlns:ds="clr-namespace:SDKSample">
|
||||
|
||||
<Window.Resources>
|
||||
<ObjectDataProvider x:Key="EmployeeInfoDataSource"
|
||||
ObjectType="{x:Type ds:myEmployees}"/>
|
||||
<ObjectDataProvider x:Key="EmployeeInfoDataSource" ObjectType="{x:Type ds:myEmployees}" />
|
||||
</Window.Resources>
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
@@ -17,16 +15,14 @@
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Grid.Row="0" Grid.Column="0" FontSize="14"
|
||||
HorizontalAlignment="Center">
|
||||
<TextBlock Grid.Row="0" Grid.Column="0" FontSize="14" HorizontalAlignment="Center">
|
||||
ListView created with XAML
|
||||
</TextBlock>
|
||||
<StackPanel Grid.Row="1" Grid.Column="0" HorizontalAlignment="Center">
|
||||
<!--<SnippetListViewEmployee>-->
|
||||
|
||||
<!--<SnippetItemsSource>-->
|
||||
<ListView ItemsSource="{Binding Source=
|
||||
{StaticResource EmployeeInfoDataSource}}">
|
||||
<ListView ItemsSource="{Binding Source={StaticResource EmployeeInfoDataSource}}">
|
||||
<!--</SnippetItemsSource>-->
|
||||
|
||||
<!--<SnippetListViewView>-->
|
||||
@@ -34,24 +30,18 @@
|
||||
<!--<SnippetGridViewColumn>-->
|
||||
|
||||
<!--<SnippetGridViewAllowsColumnReorderPart1>-->
|
||||
<GridView AllowsColumnReorder="true"
|
||||
ColumnHeaderToolTip="Employee Information">
|
||||
<GridView AllowsColumnReorder="true" ColumnHeaderToolTip="Employee Information">
|
||||
<!--</SnippetGridViewAllowsColumnReorderPart1>-->
|
||||
|
||||
<!--<SnippetGridViewColumnProperties>-->
|
||||
<GridViewColumn DisplayMemberBinding=
|
||||
"{Binding Path=FirstName}"
|
||||
Header="First Name" Width="100"/>
|
||||
<GridViewColumn DisplayMemberBinding="{Binding Path=FirstName}" Header="First Name" Width="100"/>
|
||||
<!--</SnippetGridViewColumnProperties>-->
|
||||
|
||||
<!--<SnippetHeaderContextMenu>-->
|
||||
<GridViewColumn DisplayMemberBinding=
|
||||
"{Binding Path=LastName}"
|
||||
Width="100">
|
||||
<GridViewColumn DisplayMemberBinding="{Binding Path=LastName}" Width="100">
|
||||
<GridViewColumnHeader>Last Name
|
||||
<GridViewColumnHeader.ContextMenu>
|
||||
<ContextMenu MenuItem.Click="LastNameCM_Click"
|
||||
Name="LastNameCM">
|
||||
<ContextMenu MenuItem.Click="LastNameCM_Click" Name="LastNameCM">
|
||||
<MenuItem Header="Ascending" />
|
||||
<MenuItem Header="Descending" />
|
||||
</ContextMenu>
|
||||
@@ -60,9 +50,7 @@
|
||||
</GridViewColumn>
|
||||
<!--</SnippetHeaderContextMenu>-->
|
||||
|
||||
<GridViewColumn DisplayMemberBinding=
|
||||
"{Binding Path=EmployeeNumber}"
|
||||
Header="Employee No." Width="100"/>
|
||||
<GridViewColumn DisplayMemberBinding="{Binding Path=EmployeeNumber}" Header="Employee No." Width="100"/>
|
||||
<!--<SnippetGridViewAllowsColumnReorderPart2>-->
|
||||
</GridView>
|
||||
<!--</SnippetGridViewAllowsColumnReorderPart2>-->
|
||||
@@ -75,12 +63,10 @@
|
||||
|
||||
</StackPanel>
|
||||
|
||||
<TextBlock Grid.Row="0" Grid.Column="1" FontSize="14"
|
||||
HorizontalAlignment="Center">
|
||||
<TextBlock Grid.Row="0" Grid.Column="1" FontSize="14" HorizontalAlignment="Center">
|
||||
ListView created with Code
|
||||
</TextBlock>
|
||||
<StackPanel Grid.Row="1" Grid.Column="1" Name="myStackPanel"
|
||||
HorizontalAlignment="Center">
|
||||
<StackPanel Grid.Row="1" Grid.Column="1" Name="myStackPanel" HorizontalAlignment="Center">
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user