Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    James Willock
    @ButchersBoy
    @chodge are you saying you want to restore a layout?
    Cliffe Hodgkinson
    @chodge
    @ButchersBoy Yes, I think that's right.
    James Willock
    @ButchersBoy
    OK... It's do able... But gonna take some effort. Have a look at my "doobry" app... I'm doing it there.
    Cliffe Hodgkinson
    @chodge
    Thanks, @ButchersBoy . I did download that repo, but I wasn't exactly sure where to look... any tips?
    James Willock
    @ButchersBoy
    MainWindowViewModel.RestoreLayout
    Cliffe Hodgkinson
    @chodge
    Great - thanks a lot!
    Magnus Lindhe
    @mgnslndh
    Is it possible to get the TabablzControl to let the tab focus "slip through" to the selected tab control? I do not want the TabItems to be part of the keyboard tab navigation.
    TabablzControlTabOrder.gif
    Magnus Lindhe
    @mgnslndh
    The example above shows a tab key navigation from Order Number down to the TabablzControl which get focus and the second tab key navigation goes from the TabablzControl to Offset X
    I would like to go straight from Order Number to Offset X
    But no matter which property I try to set on the TabablzControlit either let the tab items headers get tab focus or it does not get focus at all.
    Is there a combination of properties I need to set to get the desired behaviour or do I need to make a patch to the control template?
    Magnus Lindhe
    @mgnslndh
    Another observation I made was that after tab key navigation from Offset Y which is the last control on the Offset tab the tab focus will go to the "Suffix" control and then continue to the individual tab item headers. It seems like the first tab stop on the TabablzControl header in the animation really should not be there.
    If necessary I will make a repo to reproduce this behaviour.
    James Willock
    @ButchersBoy
    @mgnslndh log all this in an issue
    Alex Fanat
    @TheFanatr
    Hello @ButchersBoy I am trying to get the new tab button to work in my app. I copied the exact BoundExampleNewItem file from the demo project, and have used it programmatically like so in my MainWindow XAML code: <dragablz:TabablzControl BorderThickness="0" Name="TabablzControl" ShowDefaultAddButton="True" NewItemFactory="{x:Static local:BoundExampleNewItem.Factory}">
    local is the project namespace
    and it says: The name "BoundExampleNewItem" does not exist in the namespace "clr-namespace:MaterialDesignUI".
    I have tried to make it as a default property using the resource manager thing like it's done in the demo, but I get the same result.
    The app just doesn't compile when I try to bind the newitemfactory
    I have all the namespaces and everything set up, and everything else works perfectly.
    Alex Fanat
    @TheFanatr
    I've tried to make my own button appear in the TabablzControl, but as soon as someone clicks it, not only does the event handler not get called, but the button itself moves into the tab. Also, when I try to add a TabItem programmatically to the TabablzControl using items.add, it doesn't do anything.
    Thanks in advance.
    Alex Fanat
    @TheFanatr
    Update: I got items.add to work but still can't get any event handlers to activate that are linked to items I've added.
    James Willock
    @ButchersBoy
    @TheFanatr you'll have to post a repo
    Alex Fanat
    @TheFanatr
    Ok I'll go do that
    That is the stripped down version of the GUI I was working on, with all mentioned issues in it.
    I tried to make it as simple as possible for the sake of anyone trying to help not having to comb through mountains of source.
    Also, in case it matters, I'm using the latest .NET framework, WPF framework, and C#, on Visual Studio 2017 RC.
    Though the Dragablz test solution works perfectly fine In the area that I was looking at
    Alex Fanat
    @TheFanatr
    @ButchersBoy So... did I do something wrong in the XAML
    Alex Fanat
    @TheFanatr
    Update: No matter what I try, I can't get the default add button to produce the expected behavior. I even went as far as copying a lot of the project files directly from the demo and adapting the namespace referencing the local project. Still, It couldn't find anything. I am really confused as to what is going on.
    I thought maybe that it was missing some random configurations that I missed, but even the BoundExampleWindow from the demo was having the same errors.
    Does anyone have working code that makes a new tab?
    I think it may be that the versions of Dragablz included in the demo target older versions of everything I have installed, so it is screwing up when I give it newer ones, because otherwise I can't really explain what is going on, unless I missed something stupidly obvious and over-complicated everything.
    Alex Fanat
    @TheFanatr
    @ButchersBoy Is there any way to get a button into the TabablzControl, separate from the tabs, and make the click handler actually work. I'm trying to make my own add button and I came up with a solution but it's literally just a button in the top right corner of the program. I really want to have that new tab button from the demo, but again, everything I try to do gives me an error. I don't understand. Also, sorry if I am being annoying.
    Alex Fanat
    @TheFanatr
    @svstoichkov Don't change the height of the tab item, change the height of the TabablzControl. That should fix it.
    Alex Fanat
    @TheFanatr
    For everyone trying to do the same thing as I, for some reason, on newer versions of .NET and without the actual Dragablz project imported into the solution, it is not possible to use the default add button with a custom action as far as I can tell, but it is possible to use the header suffix, as I have found from over 30 years worth of mashing my keyboard.

    how to make it work:

    <dragablz:TabablzControl.HeaderSuffixContent>
    <Button Margin="10" Name="NewTab" HorizontalAlignment="Left" VerticalAlignment="Center" Background="Transparent" Foreground="{StaticResource MaterialDesignPaper}" Content="{materialDesign:PackIcon Plus}"/>
    </dragablz:TabablzControl.HeaderSuffixContent>

    then use:
    NewTab.click += (s, e) => { /code goes here/ }
    to handle clicks
    James Willock
    @ButchersBoy
    The default add button does just that, call a default routed command
    but you can provide a NewItemFactory
    or, as you have done, you provide your own suffix content
    Alex Fanat
    @TheFanatr
    Ok thanks!
    But now I'm having trouble with getting in-header buttons to work.
    I checked the demo and did exactly what was done with the CustomHeader, and the button appears, but doesn't respond to any click events.
    do I need to do something different?
    its literally a button in the header with the command="{x:Static dragablz:TabablzControl.CloseItemCommand}"
    but that was just supposed to be a test because I want that button to do other things, so I need a click handler
    Alex Fanat
    @TheFanatr
    even though I put one (event handler for that button) into the MainWindow's constructor, in the same way I did it with the header suffix's plus button, it never gets triggered.