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
    Can you log an issue?
    Artur
    @l1pton17
    @ButchersBoy maybe there is no an issue
    @ButchersBoy Is it OK to use tababalz in this way:
            <dragablz:TabablzControl Grid.Column="0"
                                     ShowDefaultAddButton="False"
                                     ShowDefaultCloseButton="False"
                                     Padding="0">
                <dragablz:TabablzControl.Items>
                    <TabItem Header="{Binding SimplePresenterHubViewModel.HeaderInfo}">
                        <vr:SimplePresenterHubView Margin="10" DataContext="{Binding SimplePresenterHubViewModel}"/>
                    </TabItem>
                    <TabItem Header="{Binding CombinationHubViewModel.HeaderInfo}">
                        <v:CombinationHubView Margin="10" DataContext="{Binding CombinationHubViewModel}"/>
                    </TabItem>
                    <TabItem Header="{Binding EmulationHubViewModel.HeaderInfo}">
                        <v:EmulationHubView Margin="10" DataContext="{Binding EmulationHubViewModel}"/>
                    </TabItem>
                    <TabItem Header="{Binding SourceCodeViewModel.HeaderInfo}">
                        <vr:SourceCodeView Margin="10" DataContext="{Binding SourceCodeViewModel}"/>
                    </TabItem>
                </dragablz:TabablzControl.Items>
            </dragablz:TabablzControl>
    cuz only this tabablzcontrol lead to memory leak
    James Willock
    @ButchersBoy
    Well...it should be ok...
    Have another look...if there's a leak log it
    Slávek Rydval
    @SlavekRydval
    This message was deleted
    Slávek Rydval
    @SlavekRydval

    Hello, I am playing with this tab control and run into this beginer's problem. I have a document on each tabitem and I want to show to a user if the document is modified. If yes, the background color should be other then standard one.

    XAML:

            <dragablz:TabablzControl Grid.Row="1" x:Name="rkEditFilesTabControl"  ScrollViewer.CanContentScroll="True" ScrollViewer.VerticalScrollBarVisibility="Auto">
            </dragablz:TabablzControl>

    On text change event I have this code:

                if (Editor.IsModified) 
                    Tab.Background = new SolidColorBrush(Color.FromArgb(0xFF, 0xE6, 0xD4, 0x64)); 
                else
                    Tab.Background = null;

    Unfortunatelly, the color is not changed even the code is executed. What should I do to take the desired effect?

    Thanks.

    James Willock
    @ButchersBoy
    What are you trying to affect? the tab header or the tab content?
    Slávek Rydval
    @SlavekRydval
    Tab header.
    Abdul Rauf
    @abdulraooof
    how can I focus on tabitem if it is already open?
    Magnus Lindhe
    @mgnslndh
    @ButchersBoy you there?
    I think I might have found a memory issue with the TabablzControl
    James Willock
    @ButchersBoy
    Yeah, I'm here, but on phone
    Magnus Lindhe
    @mgnslndh
    Stay on the phone! :)
    I'll write up what I've found and you can check it later
    Magnus Lindhe
    @mgnslndh
    The TabablzControl listens to the Closing event on the parent Window. https://github.com/ButchersBoy/Dragablz/blob/master/Dragablz/TabablzControl.cs#L831
    It removes this event handler properly when the window is closing. https://github.com/ButchersBoy/Dragablz/blob/master/Dragablz/TabablzControl.cs#L836
    I am having some memory issues in my application that I am troubleshooting right now. I can see in Visual Studio memory snapshot tool that there is a reference between the tabablzcontrol and the main window after I have removed my view. So it seems my view is kept in memory because it has a ref chain to the main window which is still alive and kicking.
    Magnus Lindhe
    @mgnslndh
    blob
    I'll make a patch and see if that works but I'd like your take on this so I am not misunderstanding the TabablzControl
    It could be that the event handler will be cleaned up as soon as there are no references to the View and thats was causing my problem. Not sure though
    Magnus Lindhe
    @mgnslndh
    Ok, I can at least confirm that the ref goes away if I remove the event handler on the window by disposing the _windowSubscription on Unload
    Submitted a tiny PR for this ButchersBoy/Dragablz#111
    feinstein
    @feinstein
    Hi, I am new to the project, I was going over the examples, but I can't find some documentation explaining the different parts in detail, like when the dockblz should be used and these basic things
    Am I missing some website with this kind of introduction?
    James Willock
    @ButchersBoy
    @feinstein no, there isn't really such a summary at the moment. The Dockablz.Layout is only needed if you want to have horizontal/vertical splitting, and floating windows.
    feinstein
    @feinstein
    What do you mean by splitting?
    Like visual Studio docking you
    Docking? *
    James Willock
    @ButchersBoy
    @feinstein it's a simplified version of docking
    feinstein
    @feinstein
    OK, thanks!
    mbowles201
    @mbowles201
    Did a simple cut and paste of the example with 2 tabs. If I am careful, i can drag the tabs side to side and change order, if I miss or purposely try to tear out to its own window, it throws an error: "Exception has been thrown by the target of an invocation. Unable to ascrtain tab control" Anyone getting this right out the gate?
    James Willock
    @ButchersBoy
    @mbowles201 usually means that when it creates a new window it can't find the TabablzControl. So usually means that the setup is quite right... anything different with your Window etc compared to the examples?
    Magnus Lindhe
    @mgnslndh
    @ButchersBoy sorry to bother you with this, but have you had time to look at #111 yet? Simple change to remove event handler on Unload as described above.
    James Willock
    @ButchersBoy
    Yeah sorry... Will try and look this week..
    mbowles201
    @mbowles201
    It seems all of the examples are in a Window, I assume they can be used in a UserControl as well? The examples work locally, so need to figure out what I am missing, other that I use the dragablz in a usercontrol that is used by a window after the splash screen.
    mbowles201
    @mbowles201
    Ok, same example works in my own app if the dragablz are in a window and not a userControl. Looks like I have some work in front of me.
    Suman Dhakal
    @sdhakal
    I have a question for all the wpf developers regarding material design dialoghost in wpf. When I open a certain dialog box, some parts of the background (I mean outside of the dialog box) are not dimmed(2 buttons in my case) whereas all the other buttons are dimmed out(opacity decreased as it should be). Is this a material design dialog host issue? Is there anyone with the same issue?
    Suman Dhakal
    @sdhakal
    This message was deleted
    Andre Rosenthal
    @camou23
    hi is there a posibilty to use dragablz with mahapps animated tabcontrol?
    James Willock
    @ButchersBoy
    @camou23 ... Two different controls... So no direct compatibility
    muktiwww
    @muktiwww
    why tab header event mouse up dragabalz not working??
    James Willock
    @ButchersBoy
    Because it does a lot more with mouse than the standard tab control... It doesn't all behave the same...
    Seyden
    @Seyden
    can i make a togglebutton looks like a cube?
    instead of a circle?
    theparker
    @theparker
    hi @ButchersBoy , i just downloaded the Dragablz Sample app from Github and after restoring nuget packages, i get the following errors:
    1. 'MainWindow' does not contain a definition for InitialTabablzControl in InterTabClient.cs
    2. The InitializeComponent does not exist in the current context in StylezApp
      does this have to do with the package version?
    James Willock
    @ButchersBoy
    @theparker /all. --summer holidays--