source: trunk/CrypPlugins/MD5/Presentation/Displays/DataIntegerDisplay.xaml @ 1488

Last change on this file since 1488 was 1488, checked in by pretzsch, 12 years ago

MD5 visualization: Fixed and improved presentation of parsed data block integers

File size: 4.6 KB
Line 
1<UserControl
2        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4        xmlns:Cryptool_MD5_Presentation_Displays="clr-namespace:Cryptool.MD5.Presentation.Displays"
5    xmlns:Converters1="clr-namespace:Cryptool.Plugins.MD5.Presentation.Converters" x:Class="Cryptool.MD5.Presentation.Displays.DataIntegerDisplay"
6        Name="DataIntegerUserControl" Width="624" Height="64">
7    <UserControl.Resources>
8        <Converters1:HighlightIndexToBrushConverter x:Key="highlightConverter"/>
9    </UserControl.Resources>
10    <UniformGrid Columns="8" Rows="2" DataContext="{Binding DisplayedValues,ElementName=DataIntegerUserControl}">
11        <Cryptool_MD5_Presentation_Displays:LabelledIntegerDisplay Caption="0" Value="{Binding .[0]}" Background="{Binding HighlightedValue,ElementName=DataIntegerUserControl,Converter={StaticResource highlightConverter},ConverterParameter=0}"/>
12        <Cryptool_MD5_Presentation_Displays:LabelledIntegerDisplay Caption="1" Value="{Binding .[1]}" Background="{Binding HighlightedValue,ElementName=DataIntegerUserControl,Converter={StaticResource highlightConverter},ConverterParameter=1}"/>
13        <Cryptool_MD5_Presentation_Displays:LabelledIntegerDisplay Caption="2" Value="{Binding .[2]}" Background="{Binding HighlightedValue,ElementName=DataIntegerUserControl,Converter={StaticResource highlightConverter},ConverterParameter=2}"/>
14        <Cryptool_MD5_Presentation_Displays:LabelledIntegerDisplay Caption="3" Value="{Binding .[3]}" Background="{Binding HighlightedValue,ElementName=DataIntegerUserControl,Converter={StaticResource highlightConverter},ConverterParameter=3}"/>
15        <Cryptool_MD5_Presentation_Displays:LabelledIntegerDisplay Caption="4" Value="{Binding .[4]}" Background="{Binding HighlightedValue,ElementName=DataIntegerUserControl,Converter={StaticResource highlightConverter},ConverterParameter=4}"/>
16        <Cryptool_MD5_Presentation_Displays:LabelledIntegerDisplay Caption="5" Value="{Binding .[5]}" Background="{Binding HighlightedValue,ElementName=DataIntegerUserControl,Converter={StaticResource highlightConverter},ConverterParameter=5}"/>
17        <Cryptool_MD5_Presentation_Displays:LabelledIntegerDisplay Caption="6" Value="{Binding .[6]}" Background="{Binding HighlightedValue,ElementName=DataIntegerUserControl,Converter={StaticResource highlightConverter},ConverterParameter=6}"/>
18        <Cryptool_MD5_Presentation_Displays:LabelledIntegerDisplay Caption="7" Value="{Binding .[7]}" Background="{Binding HighlightedValue,ElementName=DataIntegerUserControl,Converter={StaticResource highlightConverter},ConverterParameter=7}"/>
19        <Cryptool_MD5_Presentation_Displays:LabelledIntegerDisplay Caption="8" Value="{Binding .[8]}" Background="{Binding HighlightedValue,ElementName=DataIntegerUserControl,Converter={StaticResource highlightConverter},ConverterParameter=8}"/>
20        <Cryptool_MD5_Presentation_Displays:LabelledIntegerDisplay Caption="9" Value="{Binding .[9]}" Background="{Binding HighlightedValue,ElementName=DataIntegerUserControl,Converter={StaticResource highlightConverter},ConverterParameter=9}"/>
21        <Cryptool_MD5_Presentation_Displays:LabelledIntegerDisplay Caption="10" Value="{Binding .[10]}" Background="{Binding HighlightedValue,ElementName=DataIntegerUserControl,Converter={StaticResource highlightConverter},ConverterParameter=10}"/>
22        <Cryptool_MD5_Presentation_Displays:LabelledIntegerDisplay Caption="11" Value="{Binding .[11]}" Background="{Binding HighlightedValue,ElementName=DataIntegerUserControl,Converter={StaticResource highlightConverter},ConverterParameter=11}"/>
23                <Cryptool_MD5_Presentation_Displays:LabelledIntegerDisplay Caption="12" Value="{Binding .[12]}" Background="{Binding HighlightedValue,ElementName=DataIntegerUserControl,Converter={StaticResource highlightConverter},ConverterParameter=12}"/>
24                <Cryptool_MD5_Presentation_Displays:LabelledIntegerDisplay Caption="13" Value="{Binding .[13]}" Background="{Binding HighlightedValue,ElementName=DataIntegerUserControl,Converter={StaticResource highlightConverter},ConverterParameter=13}"/>
25                <Cryptool_MD5_Presentation_Displays:LabelledIntegerDisplay Caption="14" Value="{Binding .[14]}" Background="{Binding HighlightedValue,ElementName=DataIntegerUserControl,Converter={StaticResource highlightConverter},ConverterParameter=14}"/>
26                <Cryptool_MD5_Presentation_Displays:LabelledIntegerDisplay Caption="15" Value="{Binding .[15]}" Background="{Binding HighlightedValue,ElementName=DataIntegerUserControl,Converter={StaticResource highlightConverter},ConverterParameter=15}"/>
27        </UniformGrid>
28</UserControl>
Note: See TracBrowser for help on using the repository browser.