Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
410
Styles - how to get them working?
posted

I have a number of issues with styles.

Besides no proper documentation seem to find about how they look (quite hard to try them out one by one) it seems that regardless what I add, they only style infragistics, not standard windows elements.

This means all standard .NET WPF controls are not changed in style, and that just sucks. Sorry. or I do something wrong.

My App.Xaml:

    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <igTheme:Primitives/>
                <igTheme:Editors/>
                <igTheme:DataPresenter/>
                <igTheme:Ribbon/>
                <igTheme:DockManager/>
                <igTheme:MonthCalendar/>
                <igTheme:OutlookBar/>
                <igTheme:Tiles/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Application.Resources>

That is all I found.

The window has a ribbon and some WPF stuff, but also sub elements using standard controls. Testbox, Combobox, , Buttons, Status bar etc.
And everything except the ribbon is ugly grey. Ouch.

For examepl, in a window I use an ig Ribbon and then some status below:
 <StatusBar DockPanel.Dock="Bottom">
            <Label>Test</Label>
            <Separator />
            <Button Name="ConnectionStatusCode" Click="ConnectionStatusCode_Click">
                <Label Content="{Binding Path=Connection.ClientConnection.Status.Code, Mode=OneWay}" />
            </Button>
            <Popup Name="ConnectionInfoPopup" PopupAnimation="Slide" PlacementTarget="{Binding ElementName=ConnectionStatusCode}" Placement="Top" StaysOpen="False">
                <local:ConnectionEditor />
            </Popup>
            <Button Content="Save" Click="ButtonSave_Click" />
            <Button Content="Load" Click="ButtonLoad_Click" />
            <Button Content="Clear" Click="ButtonClear_Click" />
        </StatusBar>

The StatusBar and the content are not styled.
Is that by design? Are the standard controls not replaced? if that is so, is there soem documentation what to replace with what other control? Because seriously, this puts styles quite close to "not worth looking at" for any application. I can understand missing stfuff for non embedded controls, but all MS controls should get the styles also.

Parents Reply Children
No Data