These are chat archives for AvaloniaUI/Avalonia

19th
Jan 2017
Steven Kirk
@grokys
Jan 19 2017 22:24
hey @jkoritzinsky apologies again for the delay on checking out your PR - i got to SF and have been dog sick. starting to feel a bit better now, so will try to review asap
Jeremy Koritzinsky
@jkoritzinsky
Jan 19 2017 22:35
@grokys Don't worry about it. It's more important to get healthy than review my PR haha
danwalmsley
@danwalmsley
Jan 19 2017 23:22
@grokys I'm having problems with {Static } inside a template
trying to improve tab control a little
<Styles xmlns:local="clr-namespace:undiscloved.namespace" xmlns="https://github.com/avaloniaui">
    <Style Selector="local|DocumentTabControl">
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="Padding" Value="0"/>
        <Setter Property="Focusable" Value="True" />
        <Setter Property="Template">
            <ControlTemplate>
                <DockPanel>
                    <StackPanel DockPanel.Dock="Top">
                        <TabStrip Name="strip"  Items="{TemplateBinding Items}"  SelectedIndex="{TemplateBinding SelectedIndex, Mode=TwoWay}" ItemTemplate="{TemplateBinding HeaderTemplate}">
                            <TabStrip.ItemsPanel>
                                <ItemsPanelTemplate>
                                    <DockPanel  LastChildFill="false" />
                                </ItemsPanelTemplate>
                            </TabStrip.ItemsPanel>
                        </TabStrip>

                        <ContentControl Content="{TemplateBinding HeaderSeperatorContent}" />
                    </StackPanel>

                    <Carousel Items="{TemplateBinding Items}" SelectedIndex="{TemplateBinding Path=SelectedIndex}" MemberSelector="{Static local:DocumentTabControl.ContentSelector}" IsVirtualized="false" />
                </DockPanel>
            </ControlTemplate>
        </Setter>
    </Style>
</Styles>
can you see the MemberSelector
Static doenst seem to accept any namespace other than the local one
or is there a different syntax for this?
Steven Kirk
@grokys
Jan 19 2017 23:31
hmm no there shouldn't be. you should be able to debug into https://github.com/AvaloniaUI/Avalonia/blob/master/src/Markup/Avalonia.Markup.Xaml/MarkupExtensions/StaticExtension.cs however to debug
danwalmsley
@danwalmsley
Jan 19 2017 23:52
ok cheers