These are chat archives for ButchersBoy/Dragablz

Mar 2016
Mar 03 2016 02:16
Hi there, I'm having an issue where if i drag a tab out of the main window it spawns a new window which is expected but if you close the main parent window the child with the tab stays open, shouldn't it close when the main application closes(parent window)?
James Willock
Mar 03 2016 08:51
No. Not by default anyway. If you want to do that manage it yourself.
@barecool for example...your internet browser doesn't do that.
Mar 03 2016 08:56
Hi, I have a problem. I wrote in stackoverflow. Have you any idea?
I have been researching this last 1 week and I stuck. Nothing found
James Willock
Mar 03 2016 09:26
Do you have 1 tab, with a browser, that only loads when it gets keyboard focus?
So it's die kind of issue with the browser? Have you tried setting focus to it in code when it loads?
Mar 03 2016 09:30
Yes 1 tab. Yes loads only when tab focused with keyboard, mouse or codebehind.
I am opening a link in a new tab, tab is opening but my browser which is in a usercontrol doesnt load until i focused the tab
I want to create "open link in a new tab" option for my browser.
Viewmodel is being created when the tab created, but view doesnt created until I focus the tab with keyboard, mouse or codebehind
James Willock
Mar 03 2016 09:47
I'd hack in a code behind event hander for when it loads, then set focus in code...see what happens...
James Willock
Mar 03 2016 09:56
...and if that didn't work I'd Dispatcher.BeginInvoke the Focus... 😃 hackity hack
Mar 03 2016 11:41
My usercontrol constructor doesnt work. I got only the viewmodel not the view.
<dragablz:TabablzControl Margin="0 -1 -1 0" SelectionChanged="TabControl_SelectionChanged" IsSynchronizedWithCurrentItem="True" HeaderPrefixContent="{StaticResource WindowIcon}" AdjacentHeaderItemOffset="0" x:Name="TabControl">
            <Grid Width="135" OverridesDefaultStyle="True" HorizontalAlignment="Right">
                <Button Name="LoginWithWidget" 

                        <Style TargetType="Button" BasedOn="{StaticResource {x:Type Button}}">
                                <Trigger Property="IsMouseOver" Value="True">
                                    <Setter Property="Background" Value="Yellow"/>
                                <Trigger Property="IsPressed" Value="True">
                                    <Setter Property="Background" Value="Red"/>

                    <Image Source="/Vevo;component/Resources/user2.png"/>



        <DataTemplate DataType="{x:Type viewModel:BrowserTabViewModel}">
            <view:BrowserTabView />
            <DataTemplate DataType="{x:Type viewModel:BrowserTabViewModel}">
                <view:BrowserTabView />
<view:BrowserTabView /> constructor doesnt work