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
Migrare una service connection a workload identity federation in Azure DevOps
Come EF 8 ha ottimizzato le query che usano il metodo Contains
Eseguire operazioni sui blob con Azure Storage Actions
Sfruttare i KeyedService in un'applicazione Blazor in .NET 8
Ottimizzare la latenza in Blazor 8 tramite InteractiveAuto render mode
Sfruttare lo streaming di una chiamata Http da Blazor
Usare una container image come runner di GitHub Actions
Applicare il versioning ai nostri endpoint ASP.NET Core Minimal API
Visualizzare le change sul plan di Terraform tramite le GitHub Actions
Gestire undefined e partial nelle reactive forms di Angular
Utilizzare i primary constructor in C#
Ottimizzazione dei block template in Angular 17
I più letti di oggi
- Utilizzare Docker Compose con Azure App Service
- Utilizzare QuickGrid di Blazor con Entity Framework
- Modernizzare le applicazioni WPF e Windows Forms con Blazor
- ASP 3 per esempi
- annunciato #netstandard 2.1. .NET Core lo supporterà a partire da #netcore3, così come le prossime versione di #xamarin, #mono e #unity.il supporto per #netfx 4.8, invece, non ci sarà. https://aspit.co/bq2
- Steel Style CheckBox per Silverlight 4.0