コード例 #1
0
 internal static TileData ToTileData(this BandTile tile, int startStripOrder, Guid applicationId)
 {
     TileSettings tileSettings = TileSettings.EnableNotification;
     if (tile.IsBadgingEnabled)
     {
         tileSettings |= TileSettings.EnableBadging;
     }
     if (tile.IsScreenTimeoutDisabled)
     {
         tileSettings |= TileSettings.ScreenTimeoutDisabled;
     }
     TileData td = new TileData();
     td.AppID = tile.TileId;
     td.StartStripOrder = (uint)startStripOrder;
     td.ThemeColor = 0u;
     td.SettingsMask = (ushort)tileSettings;
     td.SetNameAndOwnerId(tile.Name, applicationId);
     return td;
 }
コード例 #2
0
 public TileRepresentation(TileData data, BandIcon icon)
 {
     this.Data = data;
     this.Icon = icon;
 }