Développer en XAML
Merged Dictionary <Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="/Resources/Dictionaries/Primary.xaml"/> </ResourceDictionary.MergedDictionaries> </ResourceDictionary> </Application.Resources> MultiBinding <code> <!--FreeSpace--> <TextBlock Name="txbSizeStats" Width="120" HorizontalAlignment="Center"> <TextBlock.Text> <MultiBinding StringFormat="{}{0} Go / {1} Go"> <MultiBinding.Bindings> <Binding Path="CurrentDriveItem.FreeSpace" /> <Binding Path="CurrentDriveItem.TotalSize" /> </MultiBinding.Bindings> </MultiBinding> </TextBlock.Text> </TextBlock> </code> Définir un style en code-behind <code> // Création du nouveau bouton HyperlinkButton newLink = new HyperlinkButton(); newLink.Content = item.Name; newLink.Tag = item.HyperLin...