public MainWindow() { InitializeComponent(); //this.Icon = new WindowIcon(new Bitmap("./auraui-logov2.png")); #if DEBUG this.AttachDevTools(); #endif tabc = this.Find <TabControl>("tabview"); tabvw = this.Find <AuraTabView>("tabvw_"); tabvw.ClickOnAddingButton += delegate(object?sender, RoutedEventArgs args) { AddTab(); }; addbtn = this.Find <Button>("btn"); cbtn = this.Find <Button>("cbtn"); open_pages = this.Find <Button>("open_pages"); border_bg = this.Find <Border>("border_bg"); drag = this.Find <Border>("drag_b"); addbtn.Click += Addbtn_Click; cbtn.Click += Cbtn_Click; open_pages.Click += Open_pages_Click; drag.PointerPressed += Drag_PointerPressed; }
public AuraTabItemContainerGenerator(AuraTabView owner, AvaloniaProperty contentProperty, AvaloniaProperty contentTemplateProperty, AvaloniaProperty headerProperty, AvaloniaProperty iconProperty, AvaloniaProperty <bool> isClosableProperty) : base(owner, contentProperty, contentTemplateProperty) { HeaderProperty = headerProperty; IconProperty = iconProperty; IsClosableProperty = isClosableProperty; }
public AuraTabItemContainerGenerator(AuraTabView owner) : base(owner, ContentControl.ContentProperty, ContentControl.ContentTemplateProperty) { Owner = owner; }