<pre lang="xml"><Window.Resources> <Border x:Key="FileProperties"> <StackPanel> <StackPanel Orientation="Horizontal"> <RadioButton Margin="5" GroupName="File">File Name</RadioButton> <TextBox x:Name="txtFilePath" Text="{Binding Value}" Width="180" Margin="5"/> <Button x:Name="btnBrowse" Margin="5" Template="{DynamicResource GlassButton}" Click="btnBrowse_Click">Browse</Button> </StackPanel> <StackPanel Orientation="Horizontal"> <RadioButton Margin="5" GroupName="File">Select Variable</RadioButton> <ComboBox Margin="5"></ComboBox> </StackPanel> </StackPanel> </Border>
</Windows.Resource>
GroupBoxProperties.Content = this.TryFindResource("the Resource name");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)