These are chat archives for ButchersBoy/Dragablz

3rd
Mar 2016
barecool
@barecool
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
@ButchersBoy
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.
okatip1
@okatip1
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
@ButchersBoy
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?
okatip1
@okatip1
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
@ButchersBoy
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
@ButchersBoy
Mar 03 2016 09:56
...and if that didn't work I'd Dispatcher.BeginInvoke the Focus... 😃 hackity hack
okatip1
@okatip1
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">
        <dragablz:TabablzControl.HeaderSuffixContent>
            <Grid Width="135" OverridesDefaultStyle="True" HorizontalAlignment="Right">
                <Button Name="LoginWithWidget" 
                        Click="LoginWithWidget_Click"
                        HorizontalAlignment="Right" 
                        Margin="0,-2,100,0"
                        Background="Transparent" 
                        VerticalAlignment="Top" 
                        OverridesDefaultStyle="True"
                        Width="26"
                        Height="28">

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

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

                </Button>

            </Grid>
        </dragablz:TabablzControl.HeaderSuffixContent>

        <dragablz:TabablzControl.InterTabController>
            <dragablz:InterTabController>
            </dragablz:InterTabController>
        </dragablz:TabablzControl.InterTabController>
        <DataTemplate DataType="{x:Type viewModel:BrowserTabViewModel}">
            <view:BrowserTabView />
        </DataTemplate>
        <dragablz:TabablzControl.ContentTemplate>
            <DataTemplate DataType="{x:Type viewModel:BrowserTabViewModel}">
                <view:BrowserTabView />
            </DataTemplate>
        </dragablz:TabablzControl.ContentTemplate>
    </dragablz:TabablzControl>
<view:BrowserTabView /> constructor doesnt work