/// <summary> /// Initializes a new instance of the <see cref="TileControlsGroupBar"/> class. /// </summary> public TileControlsGroupBar(TilesControl tilesControl, TileControlsGroupBarSettings tileControlsGroupBarSettings) { InitializeComponent(); this.tilesControl = tilesControl; this.tileControlsGroupBarSettings = tileControlsGroupBarSettings; if (tileControlsGroupBarSettings.Column == 0 || tileControlsGroupBarSettings.Column == -1) { tileControlsGroupBarSettings.Column = 6; } Width = tileControlsGroupBarSettings.Column * Settings.Current.MinTileWidth; Background = new SolidColorBrush(Settings.Current.ToolbarBackgroundColor) { Opacity = 0.5 }; this.TextBlock_Add.Opacity = 0.0; this.TextBlock_Delete.Opacity = 0.0; }
/// <summary> /// Handles the <see cref="E:TitleTextMouseUp" /> event. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e"> /// The <see cref="MouseButtonEventArgs" /> instance containing the event data. /// </param> /// <remarks>...</remarks> private void OnTitleTextMouseUp(object sender, MouseButtonEventArgs e) { TilesControl.ScrollToLeftEnd(); }