EisenbergEffect
Topic Author
Posts: 19
Joined: 22 Mar 2013, 15:09

Effects

25 Mar 2013, 22:16

Xaml has an effects mechanism which allows shaders to be plugged into any element. Out of the box only a couple of effects are supported, the most important of which is DropShadowEffect. In the documentation, I see that the Effect collection is supported and that you have an implementation of DropShadowEffect. However, I cannot get it to work.
<Border xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        VerticalAlignment="Stretch"
        HorizontalAlignment="Stretch">
     <Border DockPanel.Dock="Left"
                Width="50"
                BorderBrush="#3B1A12"
                Background="#4e2217" 
                Panel.ZIndex="2">
                <Border.Effect>
                    <DropShadowEffect BlurRadius="20" Color="Black" Opacity=".5" />
                </Border.Effect>
        </Border>
</Border>
I've confirmed the markup's validity with Kaxaml, but it renders without the shadow in Unity.
 
User avatar
sfernandez
Site Admin
Posts: 2983
Joined: 22 Dec 2011, 19:20

Re: Effects

25 Mar 2013, 22:46

The implementation of DropShadowEffect is empty right now :oops:
Effects is a feature that will be included in a future release, not for 1.0. I think we should remove everything related with effects to avoid confusion :roll:
 
mossyblog
Posts: 4
Joined: 13 Aug 2013, 02:19

Re: Effects

13 Aug 2013, 09:38

How about NoesisUI team add drop-shadow effects in exchange for Rob giving us Unity plebs Caliburn.Micro.Unity3D :)
 
Shildrak
Posts: 1
Joined: 06 Aug 2013, 16:58

Re: Effects

18 Aug 2013, 22:49

Yes, Rob. How about it? You already improved our lives in WPF with Caliburn and SPA's with Durandal. Time to improve on https://github.com/EisenbergEffect/UnityDatabinding and become another essential on that platform ;)
 
EisenbergEffect
Topic Author
Posts: 19
Joined: 22 Mar 2013, 15:09

Re: Effects

19 Aug 2013, 02:26

I've thought about it. Right now is not good timing for me. I think, maybe after the next release of Noesis, I'm going to look at what I can do there.
 
User avatar
jsantos
Site Admin
Posts: 3905
Joined: 20 Jan 2012, 17:18
Contact:

Re: Effects

20 Aug 2013, 15:52

Hi rob,

Having a framework like that in NoesisGUI would be amazing.

Let us know how we can help you with this.
 
Loden DarkStar
Posts: 1
Joined: 14 Sep 2014, 11:25

Re: Effects

14 Sep 2014, 11:28

Older thread but should I assume DropShadowEffect still isn't implemented?
 
User avatar
jsantos
Site Admin
Posts: 3905
Joined: 20 Jan 2012, 17:18
Contact:

Re: Effects

15 Sep 2014, 19:49

Effect yet not implemented sorry. It is planned to be included at some point in v1.2.x.

But if you need it for text it can be easily emulated but displaying the text twice. For example, we use that trick in the NGUI Examples Series
 
XaeroDegreaz
Posts: 29
Joined: 26 Nov 2013, 04:47

Re: Effects

14 Mar 2017, 08:08

Effect yet not implemented sorry. It is planned to be included at some point in v1.2.x.

But if you need it for text it can be easily emulated but displaying the text twice. For example, we use that trick in the NGUI Examples Series
Has there been any movement for DropShadowEffect?
<Grid.Effect>
    <DropShadowEffect Color="Black" Direction="320" ShadowDepth="25" Opacity=".5"/>
</Grid.Effect>
Nasty workaround :(
<Grid
    x:Name="PressNewKeyAlert"
    Visibility="Hidden"
    Grid.ZIndex="1"
    Width="200"
    Height="100"
    HorizontalAlignment="Center"
    VerticalAlignment="Center">
    <Grid
        HorizontalAlignment="Stretch"
        VerticalAlignment="Stretch"
        Background="Black"
        Opacity=".5" />
    <Grid
        Grid.ZIndex="1"
        HorizontalAlignment="Stretch"
        VerticalAlignment="Stretch"
        Margin="0,0,5,5"
        Background="{Binding ElementName=TabControl, Path=Background}">
        <Label Content="Press new key..." HorizontalAlignment="Center" VerticalAlignment="Center" />
    </Grid>
</Grid>
 
User avatar
ai_enabled
Posts: 231
Joined: 18 Jul 2013, 05:28
Contact:

Re: Effects

14 Mar 2017, 08:21

XaeroDegreaz, no, otherwise it will be noted in the release notes and docs https://www.noesisengine.com/docs/Gui.C ... fects.html
AtomicTorch Studio Pte. Ltd. http://atomictorch.com

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 36 guests