View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0003632 | NoesisGUI | Studio | public | 2024-08-14 18:15 | 2024-10-25 18:32 |
| Reporter | fllorens | Assigned To | sfernandez | ||
| Priority | normal | Severity | minor | ||
| Status | resolved | Resolution | fixed | ||
| Product Version | Studio_Alpha | ||||
| Target Version | Studio_Alpha | ||||
| Summary | 0003632: Creating a template inside a Style don't allow to edit it | ||||
| Description | (0.0.137) Using the 'Create' command in the Template section of the properties panel, inside a newly created control style, does indeed allow to create a template as a 'Setter Property="Template" '. But upon opening the style again, it does not appear in the dropdown selector nor is editable with the Edit command of said Template section. An inspection of the code reveals that is created perfectly well. In fact, other styles containing templates not created with the Studio are also not shown. Attached slider with style and template created with the Studio. | ||||
| Attached Files | StyleTemplate.xaml (3,569 bytes)
<Page
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
d:DesignWidth="1920"
d:DesignHeight="1080"
Background="#FF4D5052">
<Page.Resources>
<Style x:Key="Slider.Style.001" TargetType="{x:Type Slider}" BasedOn="{StaticResource {x:Type Slider}}">
<Setter Property="Background">
<Setter.Value>
<SolidColorBrush Color="#FF000000"/>
</Setter.Value>
</Setter>
<Setter Property="Foreground">
<Setter.Value>
<SolidColorBrush Color="#FFFF00F1"/>
</Setter.Value>
</Setter>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Slider">
<ControlTemplate.Resources>
<Style x:Key="RepeatButtonStyle" TargetType="RepeatButton">
<Setter Value="False" Property="IsTabStop"/>
<Setter Value="False" Property="Focusable"/>
<Setter Value="Press" Property="ClickMode"/>
<Setter Value="250" Property="Delay"/>
<Setter Value="100" Property="Interval"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="RepeatButton">
<Border Background="#00FFFFFF"/>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="ThumbStyle" TargetType="Thumb">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Thumb">
<Ellipse x:Name="Thumb" Fill="#FF4682B4" Height="20" Width="20"/>
<ControlTemplate.Triggers>
<Trigger Value="True" Property="IsMouseOver">
<Setter TargetName="Thumb" Property="Fill" Value="#FF778899"/>
</Trigger>
<Trigger Value="True" Property="IsDragging">
<Setter TargetName="Thumb" Property="Fill" Value="#FF708090"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ControlTemplate.Resources>
<Grid>
<Rectangle Fill="#FF2F3F4F" Height="5" Margin="10,0"/>
<Track x:Name="PART_Track" Orientation="Horizontal">
<Track.IncreaseRepeatButton>
<RepeatButton Style="{StaticResource RepeatButtonStyle}" Command="Slider.IncreaseLarge"/>
</Track.IncreaseRepeatButton>
<Track.DecreaseRepeatButton>
<RepeatButton Style="{StaticResource RepeatButtonStyle}" Command="Slider.DecreaseLarge"/>
</Track.DecreaseRepeatButton>
<Track.Thumb>
<Thumb Style="{StaticResource ThumbStyle}"/>
</Track.Thumb>
</Track>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Page.Resources>
<Grid>
<Slider Height="171.49402" Margin="0,0,300.61,171.494" Width="688" HorizontalAlignment="Center" VerticalAlignment="Center" Style="{DynamicResource Slider.Style.001}"/>
</Grid>
</Page> | ||||
| Platform | Any | ||||
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2024-08-14 18:15 | fllorens | New Issue | |
| 2024-08-14 18:15 | fllorens | File Added: StyleTemplate.xaml | |
| 2024-08-16 10:44 | jsantos | Assigned To | => sfernandez |
| 2024-08-16 10:44 | jsantos | Status | new => assigned |
| 2024-08-16 10:44 | jsantos | Target Version | => Studio_Alpha |
| 2024-10-25 18:32 | dfranjic | Status | assigned => resolved |
| 2024-10-25 18:32 | dfranjic | Resolution | open => fixed |