/// <summary> /// Check whether storage-retrieved options are different than current /// and thereby need to notify parents of change when keeping state. /// </summary> internal async Task <bool> CheckState(TopAppBar.Options options) { bool logoStateChanged = await Logo?.CheckState(options); bool titleStateChanged = await Title?.CheckState(options); return(logoStateChanged || titleStateChanged); }
/// <summary> /// Check whether storage-retrieved options are different than current /// and thereby need to notify parents of change when keeping state. /// </summary> internal async Task <bool> CheckState(TopAppBar.Options options) { bool stateChanged = false; if (this.HideOnSmallDevices != options.HideTitleOnSmallDevices) { this.HideOnSmallDevices = options.HideTitleOnSmallDevices; await this.HideOnSmallDevicesChanged.InvokeAsync(this.HideOnSmallDevices); stateChanged = true; } return(stateChanged); }
/// <summary> /// Check whether storage-retrieved options are different than current /// and thereby need to notify parents of change when keeping state. /// </summary> internal async Task <bool> CheckState(TopAppBar.Options options) { bool stateChanged = false; if (this.ShowActionsAlways != options.ShowActionsAlways) { this.ShowActionsAlways = options.ShowActionsAlways; await this.ShowActionsAlwaysChanged.InvokeAsync(options.ShowActionsAlways); stateChanged = true; } return(stateChanged); }
/// <summary> /// Set values on options that need to be maintained when keeping state. /// </summary> internal void SetOptions(TopAppBar.Options options) { options.HideTitleOnSmallDevices = this.HideOnSmallDevices; }
/// <summary> /// Set values on options that need to be maintained when keeping state. /// </summary> internal void SetOptions(TopAppBar.Options options) { options.ShowActionsAlways = this.ShowActionsAlways; }
/// <summary> /// Set values on options that need to be maintained when keeping state. /// </summary> internal void SetOptions(TopAppBar.Options options) { Logo?.SetOptions(options); Title?.SetOptions(options); }