//public static TextBlock add_TextBlock(this public static TextBlock add_Xaml_Title(this UIElement uiElement, string text) { return((TextBlock)uiElement.wpfInvoke( () => { var textXaml = XamlCode.textBlock(text, "Center", "Segoe, Segoe UI, Arial", "Bold", "14pt", "Black"); return uiElement.xaml_CreateUIElement <TextBlock>(textXaml); })); }
public static Button add_Xaml_Link(this UIElement uiElement, string linkText, string margin, Action onClickCallback) { return((Button)uiElement.wpfInvoke( () => { var link = uiElement.xaml_CreateUIElement <Button>(XamlCode.link(linkText, margin)); link.Focusable = false; link.onClick_Wpf(onClickCallback); return link; })); }
public static Button add_Xaml_Button(this UIElement uiElement, string buttonText) { return(uiElement.xaml_CreateUIElement <Button>(XamlCode.new_Button(buttonText))); }