How to Use This StackPanel as a Resource
问题 I am just trying to get the StackPanel content into a ResourceDictionary. I tried wrapping it into a data tempplate but no go. Some other sort of template? A style? How can I extract this to a resource and then use the content in my view's grid layout? Cheers, Berryl the xaml to move <StackPanel x:Name="_filterByTypeOptions" Orientation="Horizontal" Margin="5, 5" > <RadioButton Style="{StaticResource FilterPanelRadioButtonStyle}" IsChecked="{Binding ShowAllContacts, Mode=TwoWay}" Content="