小编Mic*_*ael的帖子

如何比较两个字节数组

我有两个字节数组,内容完全相同.我试过了:

if (bytearray1 == bytearray2) {...} else {...}
Run Code Online (Sandbox Code Playgroud)

if (Array.Equals(bytearray1, bytearray2)) {....} else {...}
Run Code Online (Sandbox Code Playgroud)

一直到别的地方!我不知道为什么!我手动检查了两个阵列!

c# bytearray

25
推荐指数
3
解决办法
4万
查看次数

字符串使用密码c#Metro Style加密/解密

我想用密码加密和解密字符串.我使用C#和WinRT(MetroStyle).有人加密/解密吗?

c# encryption microsoft-metro windows-8

3
推荐指数
1
解决办法
7208
查看次数

php53_errors.log是19 GB大!?!IIS

我现在运行一个月的IIS,刚刚发现文件php52_errors.log已经是19 GB了.如何禁用这些日志?

php iis

2
推荐指数
1
解决办法
3977
查看次数

Grid 中的 StackPanel:限制高度

我有一个大的主网格,有几行和几列。我想在其中一个单元格中放置一个垂直堆栈面板。在这个堆栈面板中有一个文本块和一个滚动查看器。我的问题是,堆栈面板不受单元格的限制,而是堆栈面板变得足够大以适合整个滚动查看器。

我该如何解决这个问题?

编辑:我的xaml代码:

<Grid x:Name="Grid1" Margin="120,0,0,0" Width="1244">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="0*"/>
                        <ColumnDefinition Width="33*"/>
                        <ColumnDefinition Width="40"/>
                        <ColumnDefinition Width="50*"/>
                        <ColumnDefinition Width="40"/>
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="71"/>
                        <RowDefinition Height="40"/>
                        <RowDefinition/>
                        <RowDefinition Height="20"/>
                    </Grid.RowDefinitions>
                    <StackPanel Grid.Column="3" Grid.Row="2" Grid.ColumnSpan="2" Margin="0">
                        <TextBlock TextWrapping="Wrap" FontSize="48" Margin="0" VerticalAlignment="Top" Foreground="#FF0083FF" Text="Top 10:" HorizontalAlignment="Left" FontFamily="Segoe UI Light"/>
                        <ScrollViewer Margin="0,20,0,0" HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Visible">
                            <StackPanel>
                                <ListView x:Name="TopListView" ItemsSource="{Binding}" SelectionMode="None" Foreground="White" >
                                    <ListView.ItemTemplate>
                                        <DataTemplate>
                                            <StackPanel Orientation="Horizontal">
                                                <StackPanel >
                                                    <TextBlock FontSize="32" Text="1" Foreground="#FF0083FF"/>
                                                </StackPanel>
                                                <TextBlock Text="{Binding Text}" Foreground="Black" 
                                                    FontSize="16" Margin="0,0,0,0" TextWrapping="Wrap" />

                                            </StackPanel>
                                        </DataTemplate>
                                    </ListView.ItemTemplate>
                                </ListView>
                            </StackPanel> …
Run Code Online (Sandbox Code Playgroud)

c# layout xaml winrt-xaml

2
推荐指数
1
解决办法
2090
查看次数

如何获得一天的"数字"

我想得到"当天的数量.例如:1月第一个将是1. 2月,第一个将是32.

所以我们用365天起了整整一年.

为我糟糕的英语而烦恼:)

c# date microsoft-metro windows-8

1
推荐指数
1
解决办法
146
查看次数

拆分两位数int

我想将两位数的int分成2位数的整数!例如:

20 = 2 and 0

15 = 1 and 5

8  = 0 and 8
Run Code Online (Sandbox Code Playgroud)

c# math int

-1
推荐指数
1
解决办法
9667
查看次数

标签 统计

c# ×5

microsoft-metro ×2

windows-8 ×2

bytearray ×1

date ×1

encryption ×1

iis ×1

int ×1

layout ×1

math ×1

php ×1

winrt-xaml ×1

xaml ×1