Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

用了此组件后,原生的ListView好像不能展示了。。。 #117

Open
myotsuki opened this issue Nov 13, 2024 · 2 comments
Open

Comments

@myotsuki
Copy link

<UserControl.Resources>
<converters:PathConverter x:Key="PathConverter" />

<DataTemplate x:Key="ListViewItemTemp">
    <StackPanel HorizontalAlignment="Center"
                Orientation="Vertical">
        <Image Width="64"
               Height="64"
               Source="pack://application:,,,/Resources/folder.jpeg" />
        <TextBlock Text="{Binding Converter={StaticResource PathConverter}}" />
    </StackPanel>
</DataTemplate>

</UserControl.Resources>

@zhaotianff
Copy link
Collaborator

可以这样使用

<ListView Style="{x:Null}"/> 

或者

<ListView Style="{StaticResource myStyle}"/>

其中 myStyle 是你定义的ListView样式名称

@zhaotianff
Copy link
Collaborator

如果还不能解决,可以帖上完整的代码。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants