Nelle Universal App abbiamo la possibilità di inserire facilmente delle icone, con una grafica in linea con i sistemi operativi, grazie alla classe SymbolIcon e alla sua proprietà Symbol che accetta come parametro un valore dell'omonimo enumerato Symbol, di Windows.UI.Xaml.Controls.
Come possiamo vedere nell'immagine, abbiamo a disposizione molte icone.

Possiamo usare l'oggetto in Button e in altri controlli; gli oggetti IAppBarButton usati nelle AppBar, ad esempio, accettano nella proprietà Icon lo stesso valore dell'enum Symbol.
<Button> <SymbolIcon Symbol="CalendarDay" /> </Button>
public enum Symbol { Previous = 57600, Next = 57601, Play = 57602, Pause = 57603, Edit = 57604, Save = 57605, Clear = 57606, Delete = 57607, Remove = 57608, Add = 57609, Cancel = 57610, Accept = 57611, More = 57612, Redo = 57613, Undo = 57614, Home = 57615, Up = 57616, Forward = 57617, Back = 57618, Favorite = 57619, Camera = 57620, Setting = 57621, Video = 57622, Sync = 57623, Download = 57624, Mail = 57625, Find = 57626, Help = 57627, Upload = 57628, Emoji = 57629, TwoPage = 57630, LeaveChat = 57631, MailForward = 57632, Clock = 57633, Send = 57634, Crop = 57635, RotateCamera = 57636, People = 57637, OpenPane = 57638, ClosePane = 57639, World = 57640, Flag = 57641, PreviewLink = 57642, Globe = 57643, Trim = 57644, AttachCamera = 57645, ZoomIn = 57646, Bookmarks = 57647, Document = 57648, ProtectedDocument = 57649, Page = 57650, Bullets = 57651, Comment = 57652, MailFilled = 57653, ContactInfo = 57654, HangUp = 57655, ViewAll = 57656, MapPin = 57657, Phone = 57658, VideoChat = 57659, Switch = 57660, Contact = 57661, Rename = 57662, Pin = 57665, MusicInfo = 57666, Go = 57667, Keyboard = 57668, DockLeft = 57669, DockRight = 57670, DockBottom = 57671, Remote = 57672, Refresh = 57673, Rotate = 57674, Shuffle = 57675, List = 57676, Shop = 57677, SelectAll = 57678, Orientation = 57679, Import = 57680, ImportAll = 57681, BrowsePhotos = 57685, WebCam = 57686, Pictures = 57688, SaveLocal = 57689, Caption = 57690, Stop = 57691, ShowResults = 57692, Volume = 57693, Repair = 57694, Message = 57695, Page2 = 57696, CalendarDay = 57697, CalendarWeek = 57698, Calendar = 57699, Character = 57700, MailReplyAll = 57701, Read = 57702, Link = 57703, Account = 57704, ShowBcc = 57705, HideBcc = 57706, Cut = 57707, Attach = 57708, Paste = 57709, Filter = 57710, Copy = 57711, Emoji2 = 57712, Important = 57713, MailReply = 57714, SlideShow = 57715, Sort = 57716, Manage = 57720, AllApps = 57721, DisconnectDrive = 57722, MapDrive = 57723, NewWindow = 57724, OpenWith = 57725, ContactPresence = 57729, Priority = 57730, GoToToday = 57732, Font = 57733, FontColor = 57734, Contact2 = 57735, Folder = 57736, Audio = 57737, Placeholder = 57738, View = 57739, SetLockScreen = 57740, SetTile = 57741, ClosedCaption = 57744, StopSlideShow = 57745, Permissions = 57746, Highlight = 57747, DisableUpdates = 57748, UnFavorite = 57749, UnPin = 57750, OpenLocal = 57751, Mute = 57752, Italic = 57753, Underline = 57754, Bold = 57755, MoveToFolder = 57756, LikeDislike = 57757, Dislike = 57758, Like = 57759, AlignRight = 57760, AlignCenter = 57761, AlignLeft = 57762, Zoom = 57763, ZoomOut = 57764, OpenFile = 57765, OtherUser = 57766, Admin = 57767, Street = 57795, Map = 57796, ClearSelection = 57797, FontDecrease = 57798, FontIncrease = 57799, FontSize = 57800, CellPhone = 57801, ReShare = 57802, Tag = 57803, RepeatOne = 57804, RepeatAll = 57805, OutlineStar = 57806, SolidStar = 57807, Calculator = 57808, Directions = 57809, Target = 57810, Library = 57811, PhoneBook = 57812, Memo = 57813, Microphone = 57814, PostUpdate = 57815, BackToWindow = 57816, FullScreen = 57817, NewFolder = 57818, CalendarReply = 57819, UnSyncFolder = 57821, ReportHacked = 57822, SyncFolder = 57823, BlockContact = 57824, SwitchApps = 57825, AddFriend = 57826, TouchPointer = 57827, GoToStart = 57828, ZeroBars = 57829, OneBar = 57830, TwoBars = 57831, ThreeBars = 57832, FourBars = 57833, Scan = 58004, Preview = 58005, }
Commenti
Per inserire un commento, devi avere un account.
Fai il login e torna a questa pagina, oppure registrati alla nostra community.
Approfondimenti
Garantire la provenienza e l'integrità degli artefatti prodotti su GitHub
Generare velocemente pagine CRUD in Blazor con QuickGrid
Creare agenti facilmente con Azure AI Agent Service
Generare la software bill of material (SBOM) in GitHub
Conoscere il rendering Server o WebAssembly a runtime in Blazor
Gestione degli eventi nei Web component HTML
Creare una libreria CSS universale: Clip-path
Esporre i propri servizi applicativi con Semantic Kernel e ASP.NET Web API
Migliorare l'organizzazione delle risorse con Azure Policy
Utilizzare i variable font nel CSS
Utilizzare l'espressione if inline in una pipeline di Azure DevOps
Introduzione ai web component HTML