public MainOptionTile(MainPage floorInstance)
 {
     InitializeComponent();
     this.MainOptionGrid.Visibility = System.Windows.Visibility.Collapsed;
     floorInstance.RegisterName(this.MainOptionGrid.Name, this.MainOptionGrid);
     floorInstance.RegisterName(this.MainOptionGridLabel.Name, this.MainOptionGridLabel);
 }
        public UpperVideoControl(MainPage floorInstance)
        {
            InitializeComponent();

            //Register the names
            floorInstance.RegisterName(this.UpperTile.Name, this.UpperTile);
            floorInstance.RegisterName(this.FloorVideoControl.Name, this.FloorVideoControl);
        }
        public void SetNames(String tileID, MainPage mainInstance)
        {
            TileIDName = TileIDName.Replace("TileID", tileID);
            InnerTileIDName = InnerTileIDName.Replace("TileID", tileID);
            TileIDLabelName = TileIDLabelName.Replace("TileID", tileID);
            InnerContentTileIDName = InnerContentTileIDName.Replace("TileID", tileID);
            TileIDButtonName = TileIDButtonName.Replace("TileID", tileID);

            mainInstance.RegisterName(TileIDName, TileID);
            mainInstance.RegisterName(InnerContentTileIDName, InnerContentTileID);
            mainInstance.RegisterName(TileIDLabelName, TileIDLabel);
            mainInstance.RegisterName(InnerTileIDName, InnerTileID);
            mainInstance.RegisterName(TileIDButtonName, TileIDButton);
        }
 public OverlayImageControl(MainPage main)
 {
     InitializeComponent();
     main.RegisterName(this.OverlayImage.Name, this.OverlayImage);
 }