flat assembler
Message board for the users of flat assembler.
Index
> Windows > Manifest style. How apply my style for buttons ? |
Author |
|
Roman 30 Oct 2018, 10:54
Code: section '.rsrc' resource data readable directory RT_MANIFEST, manifest resource manifest, 1, LANG_NEUTRAL, xpstyle resdata xpstyle file 'winxpstyle.xml' ;file 'xmlstyle.txt' ;get me error endres Error: The application could not be started because its parallel configuration is incorrect. Sxstrace.exe for more information. If i comment file 'xmlstyle.txt' my program run but not have my style. I found msdn https://docs.microsoft.com/en-us/windows/uwp/design/basics/xaml-basics-style style button: Code: ;in xmlstyle.txt <Page.Resources> <Style x:Key="PurpleStyle" TargetType="Button"> <Setter Property="FontFamily" Value="Lucida Sans Unicode"/> <Setter Property="FontStyle" Value="Italic"/> <Setter Property="FontSize" Value="14"/> <Setter Property="Foreground" Value="MediumOrchid"/> </Style> <Style TargetType="Button"> <Setter Property="Foreground" Value="Orange"/> </Style> </Page.Resources> <Grid x:Name="LayoutRoot"> <Button Content="Button" Style="{StaticResource PurpleStyle}"/> <Button Content="Button" /> </Grid> |
|||
30 Oct 2018, 10:54 |
|
Roman 30 Oct 2018, 12:46
My OS Windows 7 64 bit.
Info: manifest: app name goes here,processorArchitecture="*",type="win32",version="1.0.0.0" Error: line 12: the Page.Resources element is a child of the urn: schemas-microsoft-com: asm.v1 ^ description, which is not supported by this version of Windows. |
|||
30 Oct 2018, 12:46 |
|
Roman 30 Oct 2018, 16:16
What do uxtheme.dll ?
|
|||
30 Oct 2018, 16:16 |
|
Roman 31 Oct 2018, 02:27
I put in manifest.xml
Code: <Window x:Class="WindowStateTest2.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Window1" Height="300" Width="300"> <Grid> <Grid.RowDefinitions> <RowDefinition Height="Auto"></RowDefinition> <RowDefinition Height="*"></RowDefinition> </Grid.RowDefinitions> <Button Click="btnClear_Click" Grid.Row="0" x:Name="btnClear">Clear</Button> <TextBox Name="txt" VerticalScrollBarVisibility="Visible" Grid.Row="2"></TextBox> </Grid> </Window> Now my program run but not hapens on my window. I see only my siple white window. In my Windows 7 instal Net 4.0. And without: xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" manifest.xml get error and my program not run ! |
|||
31 Oct 2018, 02:27 |
|
Roman 31 Oct 2018, 02:37
In my program i do:
Code: icex INITCOMMONCONTROLSEX sizeof.INITCOMMONCONTROLSEX, ICC_ALL_CLASSES invoke InitCommonControlsEx, icex |
|||
31 Oct 2018, 02:37 |
|
Roman 31 Oct 2018, 03:08
I download XamlPadX 4.0
And do: Code: <Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:sys="clr-namespace:System;assembly=mscorlib" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" > <Button Height="200" Width="100"> </Button> </Page> And i see button 200x100 size in XamlPadX 4.0. But if i put this code in manifest.xml i see nothing on my program window. |
|||
31 Oct 2018, 03:08 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.