Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    mxvlshn
    @mxvlshn
    @jeremyVignelles hi
    Jérémy VIGNELLES
    @jeremyVignelles
    hi
    mxvlshn
    @mxvlshn
    @jeremyVignelles have you managed to create save/restore of tab orders in dragabz?z
    Jérémy VIGNELLES
    @jeremyVignelles
    I guess my PR does that, did you try it?
    mxvlshn
    @mxvlshn
    @jeremyVignelles what is PR?
    Jérémy VIGNELLES
    @jeremyVignelles
    it was a long time ago and never managed to have time to integrate it in my app
    mxvlshn
    @mxvlshn
    you mean pull request?
    Jérémy VIGNELLES
    @jeremyVignelles
    yes
    mxvlshn
    @mxvlshn
    i will check thanks
    Michael Heinrich
    @pinki
    Hi, I have a CompositeCollection as TabablzControl.ItemsSource. Inside this collection there are items of 2 different data types. How can I provide different DataTemplates for both TabablzControl.HeaderItemTemplate and TabablzControl.ContentTemplate?
    Michael Heinrich
    @pinki
    I realized it with a pair of ContentPresenters.
    EscoMar
    @EscoMar
    Hi ! Is there anybody ?
    I tried to apply this tutorial https://dragablz.net/2015/01/26/mdi-in-wpf-via-dragablz/ but my "Tile Grid", "Tile Horizontal" and "Tile Vertical" buttons are looking like enabled and nothing happened...
    How deals with that ? thanks
    pm64
    @pm64
    I noticed that when a tab is selected in codebehind, the selected tab is somewhat highlighted, but does not appear "fully selected", as it would if it were clicked on. Does anyone know how to make a tab that is selected in this manner appear as though it had actually been clicked?
    CapnKronic
    @CapnKronic
    Anyone know why I get a logical child exception when I try to add an existing floating item to the tab control? Is it somehow because I added them from the viewmodel constructor? I’m bound to two observable collections and can drag to the floating dock without problem. Taking a tool item the other way... not so much. I’m coding this in VB and having trouble extrapolating from the limited references I’ve found.
    Side note: I’m learning so please, any suggested reference sources are welcome. For anything you deem worthy. 👍😎👍
    CapnKronic
    @CapnKronic
    Guess this room isn't the spot to ask.... Anyone lingering around that could point me in the right direction?
    Usman Waheed
    @Usman_Waheed_KH_twitter

    @Usman_Waheed_KH_twitter
    connetionString.Close();
    LiveCharts.Wpf.Axis ax = new LiveCharts.Wpf.Axis()
    {
    Title = "Period Name",
    ShowLabels = true,
    FontWeight = System.Windows.FontWeights.Bold,

                    Foreground = new SolidColorBrush(Colors.Black),
                    Labels = LabelsX,
                };

    I am trying to print the List of years coming from database
    but the problem is it always gives a difference of 2 year
    2010 ---> 2012 on x axis
    i don't know how can i set the labels
    so it will not miss any year

    Jérémy VIGNELLES
    @jeremyVignelles
    This is not the LiveChart help chart
    CapnKronic
    @CapnKronic
    🙄 is that people?? I thought they had long since left.
    Jérémy VIGNELLES
    @jeremyVignelles
    I'm still here, but can't answer many questions because my knowledge about this library is quite limited
    CapnKronic
    @CapnKronic
    Mine as well. Although I have managed to get it all wrapped up. My project is in VB so examples have been few and far between.
    Ahmed Mohamed
    @ahmedflix25
    is there an example project for using dragablz with caliburn.micro? i did this but it does not work as intended https://github.com/ahmedflix25/Caliburn.Micro-Dragablz-Test
    Annotation 2019-05-17 215415.png
    Annotation 2019-05-17 215437.png
    Jérémy VIGNELLES
    @jeremyVignelles
    b
    Damn keyboard
    I can't really help you on that, never used caliburn and never saw such samples
    Ahmed Mohamed
    @ahmedflix25
    😥
    th851dan
    @th851dan

    Hi everyone, can anybody help me out with my problem:
    I have a TabablzControl. Its DataContext is bound to a "MainWindowViewModel". This "MainWindowViewModel" contains a property "ListViewModels" which is the ItemsSource of the TabablzControl. The ContentTemplate of the TabablzControl is a defined UserControl named DashBoard(thus the DataContext of each DashBoard is a item(call SmallViewModel) in ListViewModels ). Each DashBoard contains a ContentControl bound to a CurrentViewModel Property of the SmallViewModel, corresponding to each CurrentViewModel the ContentControl is represented differently depending on the type of the CurrentViewModel and how it is represented was defined in the eesource of the DashBoard(which is the ContentTemplate of the TabablzControl). I have some ViewModels(for example: ViewModel1 and ViewModel2). When CurrentViewModel ist ViewModel1, the Content which is bound to CurrentViewModel will display whatever defined in the resource (in this case some other UserControls).

    // The TabablzControl in MainWindow:

    <dragablz:TabablzControl ItemsSource="{Binding ListViewModels}">
    <dragablz:TabablzControl.ContentTemplate>
    <DataTemplate>
    <local:DashBoard/>
    </DataTemplate>
    </dragablz:TabablzControl.ContentTemplate>
    </dragablz:TabablzControl>

    //MainWindowViewModel is the DataContext of MainWindow has a ListViewModels of type ObservableCollection<SmallViewModel>

    //Dashboard.xaml is a UserControl and its DataContext is SmallViewModell:

    <UserControl.Resources>
    <DataTemplate DataType = "{x:Type local: ViewModel1}">
    <local: UserControl1/>
    </DataTemplate>
    <DataTemplate DataType = "{x:Type local: ViewModel2}">
    <local: UserControl2/>
    </DataTemplate>
    </UserControl.Resources>

    <ContentControl Content ="{Binding CurrentViewModel}"/>

    The problem is, each time when I drag out a tab the UserControl1 and UserControl2 keep refreshing thus the works of the dragged out tab before dragging get lost.

    Can anyone tell me why and how can i fix this?

    Thanks in advanced!!

    AndrewBrough1977
    @AndrewBrough1977
    can anyone tell me how bind the close button that shows on the showdefaultclosebutton="True" to a command on my viewmodel?
    CapnKronic
    @CapnKronic
    Is your data bound to properties in their respective view model? I’m still new to this but if the UI is a reflection of a property, what is causing it to refresh? Are you adding data and executing command to persist? Would it make sense to 2-way bind to a second set of properties and then save the data? I dunno... just thinking out loud. My help should be questioned at best.
    CapnKronic
    @CapnKronic
    I think you could use the custom header to put whatever you want in a tab header. You could bind that to a command that removes the item from your source or the close method for the tab.
    AndrewBrough1977
    @AndrewBrough1977
    @CapnKronic i was hoping there was a way to tie into it without having to create custom tab header, i'll keep looking
    CapnKronic
    @CapnKronic
    Anyone else having issues with layout branch not picking up the custom child window from the custom intertabclient? I see the questions but no real solutions.
    Dev Pro
    @devpro9219
    @devpro9219
    Hi.
    Nice to meet you everyone. I hope to ask some questions.
    When I try the material UI, I just found that the scollbar of datagrid are broken.
    Could you guide me how to solve that?
    DavidInvenio
    @DavidInvenio
    I am able to drag tabs around just fine, but as I'm trying to save their position I am stumped. Doing a foreach returns the tabs in their original order. What am I doing stupid this time?
    Jérémy VIGNELLES
    @jeremyVignelles
    I did an attempt a while ago to save tabs...
    That PR never got merged, and I don't remember how it worked, but you can probably find what you want there
    DavidInvenio
    @DavidInvenio
    Well so far I have yet to find any property indicating an ordinal (or logical) position. DragablzItem has a logical position but I am using the windows TabItem because I want my header to be an object not just text. (and I'm still learning WPF so I'm probably doing a lot of stuff wrong) I've been trying stuff all night and have yet to either 1: determine the actual position of each tab or 2: handle ANY event from the drag process - on any object (control, header, or item) I'm baffled. j
    On a related note, the dragging stuff in the demo and dragging tabs into new windows - all works great. But I can't expect my users to drag stuff where they want it and then the app doesn't save it LOL
    Jérémy VIGNELLES
    @jeremyVignelles
    @DavidInvenio : As far as I remember, there is a tree structure in Dragablz. You start with a window, a window has a split configuration, horizontal or vertical, and inside that are tabs controls or other splits (which in turns contains tabs or other splits...)
    If you can save that structure, you're done
    DavidInvenio
    @DavidInvenio
    Well I figured it out, which is awesome because I'm about to fall down asleep as I am in my 28th straight hour :-) LOL (not all on this issue of course) ANYWAY - I found a way to loop through all the tabs in a control returning a DragablzItem instead of a syswin TabItem! And that means it has the .LogicalIndex property which is accurate! Simply really, but I would never have guessed at the method call - thankfully I have the source so it was just reading the code that got me the solution.
    So here is the call TabControl.GetOrderedHeaders() - which returns an IEnumerable that you can use foreach() on - cast it to a DragablzItem and there you have access to everything you may have put into that tab item.
    So now - saving the configuration of the tabs is dead simple (I am using xml serialization to store the app state data - using a simple extension lib).
    Thanks for the replies - Cheers!
    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