/
githubmirror
/
Files
Обзор
Документация
Войти
/
githubmirror
/
Files
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Files.App/UserControls/FileIcon.xaml
55 строк
2 KB
Yair
Code Quality: Updated license header
31 дек 2024, 05:03
31 дек 2024, 05:03
8436c6d
Код
Авторство
О чём код?
<!-- Copyright (c) Files Community. Licensed under the MIT License. --> <UserControl x:Class="Files.App.UserControls.FileIcon" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" d:DesignHeight="300" d:DesignWidth="400" mc:Ignorable="d"> <StackPanel> <FontIcon x:Name="FolderGlyphIcon" Width="{x:Bind ItemSize}" Height="{x:Bind ItemSize}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" x:Load="{x:Bind ViewModel.LoadFolderGlyph, Mode=OneWay}" Glyph="" /> <FontIcon x:Name="EmptyImageIcon" HorizontalAlignment="Left" VerticalAlignment="Stretch" x:Load="{x:Bind ViewModel.LoadUnknownTypeGlyph, Mode=OneWay}" FontSize="{x:Bind ItemSize}" Glyph="" /> <FontIcon x:Name="CombinedItemsIcon" HorizontalAlignment="Left" VerticalAlignment="Stretch" x:Load="{x:Bind ViewModel.LoadCombinedItemsGlyph, Mode=OneWay}" FontSize="{x:Bind LargerItemSize}" Glyph="" /> <Image x:Name="DriveItemIcon" HorizontalAlignment="Center" VerticalAlignment="Stretch" x:Load="{x:Bind ViewModel.LoadCustomIcon, Mode=OneWay}" Source="{x:Bind CustomIconImageSource}" /> <Image x:Name="ItemIcon" Height="{x:Bind ItemSize}" HorizontalAlignment="Center" VerticalAlignment="Center" x:Load="{x:Bind ViewModel.LoadFileIcon, Mode=OneWay}" Source="{x:Bind FileIconImageSource, Mode=OneWay}" /> </StackPanel> </UserControl>