Created
March 10, 2020 14:31
-
-
Save misbah-rehman/60eb3edcfe5b4de6f67ec13a65738d0b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<UserControl xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
xmlns:dxmvvm="http://schemas.devexpress.com/winfx/2008/xaml/mvvm" | |
xmlns:ViewModels="clr-namespace:LogicielClient.UI.ViewModels" | |
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors" | |
xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid" | |
xmlns:dxgt="http://schemas.devexpress.com/winfx/2008/xaml/grid/themekeys" | |
mc:Ignorable="d" | |
xmlns:dxc="http://schemas.devexpress.com/winfx/2008/xaml/core" | |
DataContext="{dxmvvm:ViewModelSource Type= ViewModels:LevelIIViewModel}" | |
d:DesignHeight="600" d:DesignWidth="490"> | |
<Grid> | |
<dxg:GridControl Grid.Column="0" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" ItemsSource="{Binding L2BidData}" ShowLoadingPanel="False" ShowBorder="False" SelectionMode="Row"> | |
<dxg:GridControl.View> | |
<dxg:TableView NavigationStyle="Row" ShowGroupPanel="False" FontSize="11" FontFamily="Arial" ShowHorizontalLines="True" ShowVerticalLines="True" ShowIndicator="False" HeaderPanelMinHeight="25" ImmediateUpdateRowPosition="False" IsSynchronizedWithCurrentItem="False" RowMinHeight="20" HeaderHorizontalAlignment="Center" UseEvenRowBackground="True" AllowConditionalFormattingMenu="True" AllowEditing="False"> | |
<dxg:TableView.PredefinedFormats> | |
<dx:FormatInfoCollection> | |
<dx:FormatInfo FormatName="Tier1" DisplayName="Tier1"> | |
<dx:FormatInfo.Format> | |
<dxg:Format Background="{Binding BackgdColor}" TextBlock.TextAlignment="Left"/> | |
</dx:FormatInfo.Format> | |
</dx:FormatInfo> | |
</dx:FormatInfoCollection> | |
</dxg:TableView.PredefinedFormats> | |
<dxg:TableView.FormatConditions> | |
<dxg:FormatCondition FieldName="Rank" ValueRule="Equal" Value1="1" PredefinedFormatName="Tier1" ApplyToRow="True"/> | |
</dxg:TableView.FormatConditions> | |
</dxg:TableView> | |
</dxg:GridControl.View> | |
<dxg:GridControl.Columns> | |
<dxg:GridColumn Header="Maker" FieldName="Maker" VisibleIndex="1" Width="50" ReadOnly="True" Binding="{Binding Path=Maker, Mode=TwoWay}" AllowSorting="False"/> | |
<dxg:GridColumn Header="Price" FieldName="Price" VisibleIndex="2" Width="65" ReadOnly="True" Binding="{Binding Path=Bid , Mode=TwoWay}" AllowSorting="False"/> | |
<dxg:GridColumn Header="Size" FieldName="Size" VisibleIndex="3" Width="60" ReadOnly="True" Binding="{Binding Path=Size, Mode=TwoWay}" AllowSorting="False"/> | |
<dxg:GridColumn Header="Time" FieldName="Time" VisibleIndex="4" Width="*" ReadOnly="True" Binding="{Binding Path=Time, Mode=TwoWay}" AllowSorting="False"/> | |
<dxg:GridColumn Header="Rank" FieldName="Rank" VisibleIndex="5" Width="50" ReadOnly="True" Binding="{Binding Path=Rank, Mode=TwoWay}" AllowSorting="False" Visible="False"/> | |
</dxg:GridControl.Columns> | |
</dxg:GridControl> | |
</Grid> | |
</UserControl> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See my changes here: https://gist.github.com/thomaslevesque/80f9b83223f8f23490972d2eab1bf073/revisions