This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
|
|
|
Good afternoon. I try to connect your themes for a form on which there is a standard control TabControl. But the topic was not taken up. I do the following: 1. connect to the reference Mindscape.WpfElements 2. And indicate
< Window x:Class="WpfApplication1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:sample="clr-namespace:WpfApplication1"
xmlns:ms="http://namespaces.mindscape.co.nz/wpf"
xmlns:themes="clr-namespace:Mindscape.WpfElements.Themes;assembly=Mindscape.WpfElements"
Title="MainWindow" Height="350" Width="756">
<Window.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<themes:OfficeBlue />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Window.Resources>
<TabControl Height="177" Name="tabControl1" Width="278">
<TabItem Header="tabItem1" Name="tabItem1"> <Grid />
</TabItem>
</TabControl>
</ Window>
What should be done that would connect your topic. |
|
|
Sorry.
Good afternoon. I try to connect your themes for a form on which there is a standard control TabControl. But the topic was not taken up. I do the following: 1. connect to the reference Mindscape.WpfElements 2. And indicate
<Window x:Class="WpfApplication1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:sample="clr-namespace:WpfApplication1" xmlns:ms="http://namespaces.mindscape.co.nz/wpf" xmlns:themes="clr-namespace:Mindscape.WpfElements.Themes;assembly=Mindscape.WpfElements" Title="MainWindow" Height="350" Width="756" > <Window.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <themes:OfficeBlue /> </ResourceDictionary.MergedDictionaries> </ResourceDictionary> </Window.Resources> <TabControl Height="177" Name="tabControl1" Width="278"> <TabItem Header="tabItem1" Name="tabItem1"> <Grid /> </TabItem> </TabControl> </Window>
What should be done that would connect your topic.
|
|
|
Hello Sorry for the confusion. The themes for the standard WPF controls are only available with a full copy of WPF Elements. If you've got the full copy then you will find all the source code for the standard WPF themes in this folder on your computer: Mindscape\WPF Elements\Themes\WPF Built-In Controls. Using the source code and the provided Themes.csproj project, you can build the themes dll and included it in your application. In the code you posted, the themes namespace your using only contains the themes for our WPF Elements controls and not the standard WPF controls. By building the dll I mentioned, you can use the following namespace instead: Let me know if you have any troubles getting it to work. Regards |
|