|
<UserControl x:Class="Deobfuscator.CallStackControl"
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:Extensions="clr-namespace:Demo.Extension.Properties"
mc:Ignorable="d"
DataContext="{Binding RelativeSource={RelativeSource Self}}"
d:DesignHeight="350" d:DesignWidth="459">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Name="L1" />
<ColumnDefinition Name="C1" />
<ColumnDefinition Name="R1" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Name="Menu" Height="25" />
<RowDefinition Name="Main" Height="*" />
</Grid.RowDefinitions>
<StackPanel Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2" Orientation="Horizontal">
<TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Margin="2,2,2,2">Threads</TextBlock>
<ComboBox Name="ThreadListBox" ItemsSource="{Binding ThreadInfoCollection}" SelectedValuePath="Id" DisplayMemberPath="DisplayName" Width="200" Grid.Column="0" Grid.Row="1" HorizontalAlignment="Stretch" VerticalAlignment="Center" />
</StackPanel>
<Grid Grid.RowSpan="1" Grid.Column="2" Grid.Row="0">
<Button Padding="10,0,10,0" Margin="5,0,5,0" Content="Refresh" Height="23" HorizontalAlignment="Left" Name="buttonRefresh" VerticalAlignment="Center" />
<Button Padding="10,0,10,0" Margin="5,0,5,0" Content="Map File" Height="23" HorizontalAlignment="Right" Name="buttonMapFile" VerticalContentAlignment="Center" />
</Grid>
<ListView Name="CallStackListView" Extensions:ListViewColumns.Stretch="true" Grid.ColumnSpan="3" Grid.Column="0" Grid.Row="2" Margin="2,2,2,5" ItemsSource="{Binding CallStackLineCollection}">
<ListView.ItemContainerStyle>
<Style TargetType="ListViewItem">
<Setter Property="Height" Value="20" />
<Setter Property="VerticalAlignment" Value="Center" />
</Style>
</ListView.ItemContainerStyle>
<ListView.View>
<GridView>
<GridViewColumn Header="Function Name">
<GridViewColumn.CellTemplate>
<DataTemplate>
<TextBlock Text="{Binding FullLine}" />
</DataTemplate>
</GridViewColumn.CellTemplate>
</GridViewColumn>
<GridViewColumn Width="80" Header="Language" DisplayMemberBinding="{Binding Language}" />
</GridView>
</ListView.View>
</ListView>
</Grid>
</UserControl>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Mattias works at Visma, a leading Nordic ERP solution provider. He has good knowledge in C++/.Net development, test tool development, and debugging. His great passion is memory dump analysis. He likes giving talks and courses.