Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    okatip1
    @okatip1
    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
    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
    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
    I'd hack in a code behind event hander for when it loads, then set focus in code...see what happens...
    James Willock
    @ButchersBoy
    ...and if that didn't work I'd Dispatcher.BeginInvoke the Focus... 😃 hackity hack
    okatip1
    @okatip1
    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
    barecool
    @barecool
    im having issues making the content inside a tabitem scroll vertically , if i resize the horizontal tab scroll viewer is enabled but no vertical scroll
    Magnus Lindhe
    @mgnslndh
    20.1K downloads for a Nuget with version number 0.0.3.157. Not bad :)
    James Willock
    @ButchersBoy
    Ha. 😃. Still a little way off version 1 too...
    barecool
    @barecool
    @ButchersBoy how can i get the scroll bars to come up on a tab item, i have tried everything setting the property content can scroll, setting the scrollbar to visible and i cant get them to come up
    James Willock
    @ButchersBoy
    Yeah, I think I've had this problem even with a normal tab control
    ended up binding the max width/height to one of the relative source ancestors
    barecool
    @barecool
    on each tab item or in the tabcontrol?
    James Willock
    @ButchersBoy
    havent got that code in front of me, but i think I had ascrollviewer in the tab item content, and bound the maxwidth to the ancestor contentcontrol
    ...something like that
    barecool
    @barecool
    ill give it a try thanks
    barecool
    @barecool
    It worked
    yanghongliang
    @yanghongliang
    Hi,How can i use Dragablz in user control?
    James Willock
    @ButchersBoy
    @yanghongliang your question is a bit vague...
    CCRed95
    @CCRed95
    Aye bb im obsessed with your clock control, its beautiful
    (From the md toolkit, wrong room haha whoops)
    James Willock
    @ButchersBoy
    @CCRed95 yeah, it's one of my personal favourites :smile:
    amoamare
    @amoamare

    @ButchersBoy, this is the error i'm getting when trying to tear away from the main window.
    Unable to ascrtain tab control.

    at Dragablz.DefaultInterTabClient.GetNewHost(IInterTabClient interTabClient, Object partition, TabablzControl source) in C:\projects\dragablz\Dragablz\DefaultInterTabClient.cs:line 21
    at Dragablz.TabablzControl.MonitorBreach(DragablzDragDeltaEventArgs e) in C:\projects\dragablz\Dragablz\TabablzControl.cs:line 1170
    at Dragablz.TabablzControl.ItemDragDelta(Object sender, DragablzDragDeltaEventArgs e) in C:\projects\dragablz\Dragablz\TabablzControl.cs:line 1087

    its something in my project for sure causing the issue. I build a small controlled version and it is working as expected.
    amoamare
    @amoamare
    Also is there a way to prevent tearing? Just allow re-arrange.
    James Willock
    @ButchersBoy
    @amoamare yes, most likely that indicates a problem with your code, it can't find the TabControl in your new window.
    If you want to disable tearing remove the InterTabController
    Christopher F.
    @foxbot
    what's the best way to handle setting tab header from a viewmodel? I tried using an ItemTemplate and that didn't change the header; it only displays the class of the viewmodel
    James Willock
    @ButchersBoy
    @420foxbot HeaderItemTemplate
    Christopher F.
    @foxbot
    ah, cool, thanks

    Have found a bug though:

    When using an EventTrigger on "SelectionChanged", the "SelectedItem" path shows the previously selected tab, rather than the one that I just switched to

    James Willock
    @ButchersBoy
    @420foxbot could you log that as an issue with all the details?
    Shawn Anderson
    @shawnmanderson
    Is there an easy/preferred way to specify the window height/width when tearing off a tab, instead of defaulting to the size of the parent window? I checked a few places and couldn't find anything obvious. The only way I've done it so far is on DragCompleted... which looks a little wonky?
    James Willock
    @ButchersBoy
    @shawnmanderson yeah...that's not really supported...if you raise an issue i can have a think of a nice way to make it part of the API
    amoamare
    @amoamare
    @ButchersBoy, looks like IsEnabled on a tabitem does not effectively disable or enable a tab, neither does Visibility
    amoamare
    @amoamare
    I see a open ticket already, looks like it may not be added. I changed the function to cancel the task when switching tabs, seems to work for now.
    sdPaul
    @sdPaul
    Hey @ButchersBoy, I need to be able to intercept the closing of a tab, i.e. show a messagebox before it closes and base the closing on User input.
    James Willock
    @ButchersBoy
    ClosingItemCallback.
    sdPaul
    @sdPaul
    Thank you for your help, but how can I implement that easily?
    I already viewed your BoundExample on github, but that wasn't helping much.
    James Willock
    @ButchersBoy
    define "easily"
    are you using MVVM?
    James Willock
    @ButchersBoy
    I reckon you probably want to cancel the close in the event, but grab the item, show your message box, and then close your it manually afterwards via .RemoveFromSource()