Ptr<GuiComboBoxListControl::IItemStyleProvider> GuiComboBoxListControl::SetStyleProvider(Ptr<IItemStyleProvider> value) { RemoveStyleController(); auto old = itemStyleProvider; if (itemStyleProvider) { itemStyleProvider->DetachComboBox(); } itemStyleProvider = value; if (itemStyleProvider) { itemStyleProvider->AttachComboBox(this); styleController->SetTextVisible(false); InstallStyleController(GetSelectedIndex()); } else { styleController->SetTextVisible(true); } StyleProviderChanged.Execute(GetNotifyEventArguments()); return old; }
void GuiComboBoxListControl::OnFontChanged(compositions::GuiGraphicsComposition* sender, compositions::GuiEventArgs& arguments) { if (itemStyleController) { itemStyleController->SetFont(GetFont()); } OnListControlAdoptedSizeInvalidated(nullptr, GetNotifyEventArguments()); }
void GuiBindableTreeView::SetChildrenProperty(const ItemProperty<Ptr<IValueEnumerable>>& value) { if (itemSource->childrenProperty != value) { itemSource->childrenProperty = value; itemSource->UpdateBindingProperties(true); ChildrenPropertyChanged.Execute(GetNotifyEventArguments()); } }
void GuiBindableTreeView::SetTextProperty(const ItemProperty<WString>& value) { if (itemSource->textProperty != value) { itemSource->textProperty = value; itemSource->UpdateBindingProperties(false); TextPropertyChanged.Execute(GetNotifyEventArguments()); } }
void GuiBindableTreeView::SetImageProperty(const ItemProperty<Ptr<GuiImageData>>& value) { if (itemSource->imageProperty != value) { itemSource->imageProperty = value; itemSource->UpdateBindingProperties(false); ImagePropertyChanged.Execute(GetNotifyEventArguments()); } }
void GuiBindableTextList::SetCheckedProperty(const WritableItemProperty<bool>& value) { if (itemSource->checkedProperty != value) { itemSource->checkedProperty = value; itemSource->UpdateBindingProperties(); CheckedPropertyChanged.Execute(GetNotifyEventArguments()); } }
void GuiBindableListView::SetSmallImageProperty(const ItemProperty<Ptr<GuiImageData>>& value) { if (itemSource->smallImageProperty != value) { itemSource->smallImageProperty = value; itemSource->UpdateBindingProperties(); SmallImagePropertyChanged.Execute(GetNotifyEventArguments()); } }
void GuiControl::SetFont(const FontProperties& value) { if(font!=value) { font=value; styleController->SetFont(font); FontChanged.Execute(GetNotifyEventArguments()); } }
void GuiControl::SetText(const WString& value) { if(text!=value) { text=value; styleController->SetText(text); TextChanged.Execute(GetNotifyEventArguments()); } }
void GuiControl::SetVisible(bool value) { boundsComposition->SetVisible(value); if(isVisible!=value) { isVisible=value; VisibleChanged.Execute(GetNotifyEventArguments()); } }
void GuiControl::SetEnabled(bool value) { if(isEnabled!=value) { isEnabled=value; EnabledChanged.Execute(GetNotifyEventArguments()); UpdateVisuallyEnabled(); } }
bool GuiControl::SetAlt(const WString& value) { if (!IGuiAltAction::IsLegalAlt(value)) return false; if (alt != value) { alt = value; AltChanged.Execute(GetNotifyEventArguments()); } return true; }
void GuiComboBoxBase::SelectItem() { styleController->OnItemSelected(); ItemSelected.Execute(GetNotifyEventArguments()); }
void GuiComboBoxListControl::OnListControlSelectionChanged(compositions::GuiGraphicsComposition* sender, compositions::GuiEventArgs& arguments) { DisplaySelectedContent(GetSelectedIndex()); SelectItem(); SelectedIndexChanged.Execute(GetNotifyEventArguments()); }