<local:MyCard Margin="0,0,0,15" Title="该文件用于测试" CanSwap="True"> <StackPanel Margin="20"> <TextBlock Text="测试文本。" /> </StackPanel> </local:MyCard>