Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    DavidInvenio
    @DavidInvenio
    @devpro9219 Are you aware that the DataGrid doesn't scroll itself directly but rather contains a ScrollViewer element which does the scrolling? I can assure you that the MD Toolkit works great with the DataGrid and scrollbars, and in fact I've styled mine to look more like what I have on KUbuntu (so nothing like the way Windows scrollbars look!). If you need more help post and I will be happy to send you my xaml. (ps: I am very new to WPF, so fair warning)
    DavidInvenio
    @DavidInvenio
    Can anyone tell me why using :TextFieldAssist.DecorationVisibility="Hidden" to disable the underline that appears in TextBoxes works for RichTextBox but not for TextBox? Yes my style has override = true and I've been able to override other things, this just seems broken. On a related question - what do you use when you need to display text, multiple lines, allow the user to copy text to clipboard - but NOT enter input. I tried TextBlock and was disgusted with it. I can't believe how difficult it is to do very simple things as compared to winforms. Controls that don't have a border property? Seriously?! LOL I love binding and views, but man this is too much sometimes.
    DavidInvenio
    @DavidInvenio
    Forget my last question - I finally figured it out - and in addition to that, the border needs to be set so that when the mouse isn't on the control it doesn't display the under line. Damn complicated stuff. LOL
    Albert Garcia
    @B3RTG
    hi everyone, is there any posiblity to strech DragablzItems in a DragablzItemsControl horizontally?
    I set DragablzItem horizontalaligment to strech but i don't get the full with for the elements
    Albert Garcia
    @B3RTG
    and i'm using VerticalOrganiser
    l
    @Liroshka_gitlab
    Hi, Can someone help me- I would like to use the dragablz tabs but I would like to know how can I disable the option to take a drag a tab out of its place to separate window and to disable the option to move the tabs. How can I do it?
    l
    @Liroshka_gitlab
    @NothingFaceX Hi, How I know it has been a long time, but I really need help with turning off the dragging, and I saw you had a question regarding this as well. have you figured it out?
    l
    @Liroshka_gitlab

    Ok, I have figured it out.
    For those who will encounter the next problem: if you need to prevent the dragging out, you simply need to remove the next lines:

    <dragablz:TabablzControl.InterTabController>
    <dragablz:InterTabController/>
    </dragablz:TabablzControl.InterTabController>

    Now I need help understanding how to disable the movement option (so you won't be able to change the position of a tab)
    Jérémy VIGNELLES
    @jeremyVignelles
    Why would you need Dragablz if you don't want to drag tabs?
    I mean, it's the main added value of the library, why not using a classic WPF tab control instead?
    l
    @Liroshka_gitlab
    because it has better graphics and styles.
    Do you know how to do prevent it, Or maybe you are familiar with another library for tabs that allow you to stylize them?
    @jeremyVignelles And thanks for your response!
    Mrxx99
    @Mrxx99
    @Liroshka_gitlab there is an option like fixedtabcount or something where you can give the number of tabs that should not be movable
    Are you using it with the Material Design Toolkit? If you only want normal tabs in material design you could also use the library MaterialDesignExtensions
    Mrxx99
    @Mrxx99
    /// <summary>
    /// Allows a the first adjacent tabs to be fixed (no dragging, and default close button will not show).
    /// </summary>
    public int FixedHeaderCount
    Jérémy VIGNELLES
    @jeremyVignelles
    you could also have a look at mahapps.metro
    l
    @Liroshka_gitlab
    @Mrxx99 What do you mean by "use the library MaterialDesignExtentions"? Can you send me some links?
    l
    @Liroshka_gitlab
    And thanks about the FixedHeaderCount. It is working perfectly!
    veizuh
    @wtfveizuh
    Hey!
    How can i add command in DefaultAddButton
    it says NewItemFactory must be provided.'
    anybody can help me?
    summerwind78
    @summerwind78
    Hallo Everybody
    just a question, I am pretty new in Dragablz. Is there any possibility to have a complete fixed position ofr the tabs, disabling drag and drop?
    bebenins
    @bebenins
    @summerwind78 I believe you just have to add a dummy FixedHeaderCount and set it to some number <dragablz:TabablzControl FixedHeaderCount="10"/>
    summerwind78
    @summerwind78
    thank you
    Vivamort
    @Vivamort
    Thanks for all of this - Dragablz is a great control.
    Has anyone added a drop down list (showing all the open tabs) to the control so that users can select a tab from the list rather than having to scroll to find it and then select it?
    shazoo1
    @shazoo1
    Hi everybody! In my project I use a service to show dialogs, and I want this service to select an appropriate ViewModel type based on the user input, after an AddNewTab button is clicked. The point is to create a new tab with a model, selected from a dialog service. I already have an instance of this service in my app, so I don't want to create a new one in NewTabFactory. The ViewModel types are already derived from Prism MVVM BindableBase, hence I can't derive from a HeaderedViewModel to pass the desicion about the VM type somewhere else. How can I select between different VM types in NewTabFactory?
    I have several ideas:
    1. Move the visual selection logic from the dialog service to the NewTabFactory
    2. Create a totally new addition button somewhere else and handle tab addition outside NewTabFactory
    3. Somehow bind to the addition button (not sure, if it is possible)
      I lean towards 2, but I'd really like to use a draggablz button
    shazoo1
    @shazoo1
    Nevermind; found solution for this:
    <dragablz:TabablzControl.HeaderSuffixContent>
    <Button Command="{Binding AddNewViewModel}">+</Button>
    </dragablz:TabablzControl.HeaderSuffixContent>
    Daniel Klecha
    @danielklecha
    Hi All!
    I saw that there is no change since two years.
    I want to use it in .NET Core so I'm waiting for #232.
    @ButchersBoy Is there a change that you will add new commits?
    Anyway, control is great.
    Jérémy VIGNELLES
    @jeremyVignelles
    @danielklecha I don't think there will be any change anytime soon, his github profile states "taking a break from open source"
    krezs
    @krezs
    Hello!, Is there a way to make a vertical and horizontal organiser?
    Daniel Klecha
    @danielklecha
    @krezs I think that demo app contains example with horizontal and vertical tabs.
    But there is no option to group tabs or click some button to see list with all tabs.
    If somebody has a problem to combine dragablz with caliburn micro then I created sample with custom IInterLayoutClient and IInterTabClient.
    Happy coding!
    DragablzCaliburnDemo
    Dan Bourquin
    @bourquin.dan_gitlab
    Hey everyone, I don't understand how OrderChanged event work on VerticalPositionMonitor. I have binded the ItemsSource to my viewModel List and when I create the list I receive my list.count -1 event. Is there a way to not receive these event at initialization ?
    Jérémy VIGNELLES
    @jeremyVignelles
    How do you initialize your collection in your item source?
    Dan Bourquin
    @bourquin.dan_gitlab
    I tried diffents ways. By makind source = new List<object>(); then source.Add(new object()). Or by making var newSource = new List<object>() then newSource.Add(..) and finally source = newSource;
    Jérémy VIGNELLES
    @jeremyVignelles
    OK. Sorry, but I don't know
    Dan Bourquin
    @bourquin.dan_gitlab
    Do you think it's a normal behaviour?
    Jérémy VIGNELLES
    @jeremyVignelles
    I don't know how it's implemented... Does it work the same way in horizontal?
    however, I doubt you'd get any help if you post an issue on that project...
    Dan Bourquin
    @bourquin.dan_gitlab
    (Je suppose que c'est le même fonctionnement entre l'horizontal et le vertical, pourquoi je n'aurai pas de réponse pour ce projet?)
    Jérémy VIGNELLES
    @jeremyVignelles
    (Parce que le développeur principal n'est plus actif depuis plusieurs années à ce que je sais...)
    Dan Bourquin
    @bourquin.dan_gitlab
    Okay thank you for these informations =)
    Schachfigur
    @Schachfigur

    Hey, may a simple Question but i've tried all examples and dont get it...
    I Want to override the "ItemContainerStyle" (I think its the right property), because i want to change the tab header highlight. But i dont get it work...
    In my Application.xaml (vb.net project)

                <Style x:Key="DragItemContainerStyle" TargetType="{x:Type dragablz:DragablzItem}">
                    <!-- the changes are just to see if the style is applied, but i dont seem so -->
                    <Setter Property="FocusVisualStyle" Value="{StaticResource MaterialDesignFocusVisual}"/>
                    <Setter Property="Foreground" Value="{DynamicResource PrimaryHueMidForegroundBrush}"/>
                    <Setter Property="Background" Value="Red"/>
                    <Setter Property="BorderBrush" Value="Red"/>
                    <Setter Property="themes:MaterialDesignAssist.IndicatorBrush" Value="Red" />
                    <Setter Property="Margin" Value="0 0 0 0"/>
                    <Setter Property="Padding" Value="8"/>
                    <Setter Property="MinWidth" Value="80" />
                    <Setter Property="Height" Value="40" />
                    <Setter Property="HorizontalContentAlignment" Value="Center"/>
                    <Setter Property="VerticalContentAlignment" Value="Center"/>
                    <Setter Property="TextBlock.FontWeight" Value="Medium" />
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="{x:Type dragablz:DragablzItem}">
                                <!-- 1:1 from Dragablz Source copied -->
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
    
                <Style TargetType="{x:Type dragablz:TabablzControl}"
                       BasedOn="{StaticResource MaterialDesignTabablzControlStyle}" >
                    <Setter Property="ItemContainerStyle" Value="{StaticResource DragItemContainerStyle}" />
                </Style>

    The Material Design Dragablz Style is applied, but not my ItemContainerStyle. Do I Need to overwrite the complete template of the TabablzControl to set the itemContainer Style there? (It seems possible, but it would be a big block of copy-paste just for changing one singe line)...