Page 1 of 1

[SOLVED] Silverlight vs. Moonlight

PostPosted: Sep 26th, '11, 20:07
by zugunder
Hi guys,

Right after I put Mageia on my laptop I immediately installed various multimedia packages like Flash and Moonlight.
However, I discovered recently that I have pre-installed (correct me if it is not true, but I just can't remember installing these packages) Mono and Silverlight Mozilla plugin.
Actually, I had some issues with watching online TV, so I start to dig into that (I have a Moonlight logo in the player's frame, but almost all the attempts to play result in freezes). I suppose, it may be because of the conflict of those two engines.
As far as I remember, neither Mandriva nor Suse have ever preinstalled Silverlight by default. Why do I have it here?
So I need an advice - what do you think is better to keep? Which one is more reliable?

Re: Silverlight vs. Moonlight

PostPosted: Sep 26th, '11, 20:27
by isadora
Pre-installed MS-Silverlight, no way José.
I think (actually am sure) without interactivity by the user, this won't be installed.
Moonlight is an open-source-implementation for Silverlight, and is part of the Mono-project.
You can read extensive information at:
http://www.mono-project.com/Moonlight

Concerning reliability, no idea, don't use it myself.

Re: Silverlight vs. Moonlight

PostPosted: Sep 26th, '11, 20:43
by zugunder
Well, so it means that I installed that Silverlight plugin myself?.. That is very very strange, because I have always known that I had Moonlight installed and, moreover, HOW was it possible?
Will try to uninstall it or at least to disable.

P.S. Can anyone check if the silverlight plugin is present in FF 6.0.2 installation?

Thank you.

UPD. It looks like the plugin is a part of Moonlight installation - without it FF doesn't even try to play any silverlight stream. With the plugin activated it tries, but can't load the stream. In the list of plugins for FF (usr/lib64/mozilla/plugins) there is one called "libmoonloader.so" which is apparently what is shown in Mozilla plugins list as "Silverlight plugin". Funny...

Re: Silverlight vs. Moonlight

PostPosted: Sep 26th, '11, 22:44
by eonwir
I believe that the moonlight extension advertises itself as "Silverlight". I have installed the moonlight package (version 2.4.1, on Mageia 1) , and looking into Firefox, i see that the plugin Silverlight version 3.0.40818.0 is showing up. Moreover, if you write "about:plugins" in the URL area, you can see that the Silverlight plugin is described as "Novell moonlight", and is implemented by the file libmoonloader.so which belongs to the moonlight package.

So, this is normal i think.

Re: Silverlight vs. Moonlight

PostPosted: Sep 26th, '11, 23:14
by zugunder
Thank you, eonwir,
The name of the plugin is really puzzling :-).

Re: Silverlight vs. Moonlight

PostPosted: Jan 31st, '12, 07:23
by zugunder
Sorry for returning to this thread... :oops:
I have installed Moonlight 2.4.1 but unable to watch any Silverlight streams. As far as I understand, Moonlight plugin is "free", but it requires proprietary Microsoft codecs to display video. So when I am trying to start a stream, I am suggested to install MICROSOFT MEDIA PACK 2.0, it is downloaded automatically but fails to install - "Permission denied".
Does anyone has any idea what the problem may be?
Thank you.

Re: Silverlight vs. Moonlight

PostPosted: Jan 31st, '12, 07:41
by wilcal
Is there anything of worth using Silver/Moon-Light?
From what I am understanding it's not very popular.
I rarely run into it.

Re: Silverlight vs. Moonlight

PostPosted: Jan 31st, '12, 11:38
by PiElle
Moonlight is no more updated since aprile 2011.
It doesn't work with the up to date version of Firefox ...

Re: Silverlight vs. Moonlight

PostPosted: Jan 31st, '12, 12:53
by Max
That might be fixed by editing the config file for the plugin.
That's what I did with several addons that didn't accept FF's rapid upgrades.

Re: Silverlight vs. Moonlight

PostPosted: Jan 31st, '12, 15:36
by wilcal
PiElle wrote:Moonlight is no more updated since aprile 2011.
It doesn't work with the up to date version of Firefox ...

Kinda reflects on the popularity of Silverlight.

Re: Silverlight vs. Moonlight

PostPosted: Jan 31st, '12, 17:52
by PiElle
wilcal wrote:
PiElle wrote:Moonlight is no more updated since aprile 2011.
It doesn't work with the up to date version of Firefox ...

Kinda reflects on the popularity of Silverlight.


You're right! ;)

Re: Silverlight vs. Moonlight

PostPosted: Jan 31st, '12, 18:58
by zugunder
Hi guys,
I value your opinion on Moonlight a lot, but it is not what I asked about. :D
So, no one has any experience of M$ codec pack installation?

Re: Silverlight vs. Moonlight

PostPosted: Feb 24th, '12, 18:38
by zugunder
Hi,

I am back to this topic after I updated Firefox to 10.0.2 and it finally supports lots of "older" extensions.
I was finally able to install a Moonlight extension from http://go-mono.com/moonlight/download.aspx and ran it. However I faced exactly the same problem as with previous versions of FF and Moonlight: after I agree with license, etc, downloading of codecs starts and completes, but installation stops with an error.
Looks like it is a system error or a compatibility issue of the installer and Mageia.
How can I check what causes this problem?

Thank you.

P.S. I managed to install it and it seems to work... sometimes :mrgreen: .
For some reason the folder .mozilla/plugins in /home/user has a root owner, the other 2 folders in .mozilla are owned by user... :shock:
I do not know why it is done that way and for what, but after I changed ownership to me, the installation was completed. Then I changed the ownership back to root...
Can anyone explain why the plugins folder is owned by root?

Thank you.

Re: Silverlight vs. Moonlight

PostPosted: Feb 25th, '12, 11:36
by doktor5000
zugunder wrote:I do not know why it is done that way and for what, but after I changed ownership to me, the installation was completed. Then I changed the ownership back to root...
Can anyone explain why the plugins folder is owned by root?


This is not done by the firefox package, as RPM has no access to your /home.
You have accidentaly changed it yourself, that's my guess. As plugin installations also run as user,
they can't even change ownership to root. So can't have been done by a faulty plugin installation,
otherwise it would have asked you for the root password.

Re: Silverlight vs. Moonlight

PostPosted: Feb 25th, '12, 20:25
by zugunder
doktor5000 wrote:This is not done by the firefox package, as RPM has no access to your /home.
You have accidentaly changed it yourself, that's my guess.

So, in other words, yours ./mozilla/plugins owner is you, not root?
If so, it seems to be my fault indeed, though of course I do not remember changing anything there :?
Thank you.

Re: [SOLVED] Silverlight vs. Moonlight

PostPosted: Feb 25th, '12, 21:52
by mauro
OT
In Italy you can't watch public television on the web, unless you use silverlight. :evil:

Re: Silverlight vs. Moonlight

PostPosted: Feb 26th, '12, 01:00
by doktor5000
zugunder wrote:So, in other words, yours ./mozilla/plugins owner is you, not root?

Uhmm, by design everything in your /home should be owned by you, not root.
(~/.gvfs being the only exception, as it has really weird permissions, but you don't use that directly)

Re: [SOLVED] Silverlight vs. Moonlight

PostPosted: Feb 28th, '12, 08:21
by PiElle
Seems that there has been an update on Feb, 27th. :lol:
Now it works with all kinds of Silverlight streams! :D
Tested in Fedora16 and Mint 12 KDE... :) ;)

Re: [SOLVED] Silverlight vs. Moonlight

PostPosted: Feb 28th, '12, 12:10
by mauro
PiElle wrote:Seems that there has been an update on Feb, 27th. :lol:
Now it works with all kinds of Silverlight streams! :D
Tested in Fedora16 and Mint 12 KDE... :) ;)


Where did you find that? In the official repositories of those distributions?
I can't find anything at http://go-mono.com/moonlight/, no package, nor news...

Re: [SOLVED] Silverlight vs. Moonlight

PostPosted: Feb 28th, '12, 13:38
by PiElle
The address is correct.
It has been updated (despite of the date reported on the site itself). :?
Now it reproduces RAI programs (the Italian state owned public service broadcaster) and even Silverlight streams from Microsoft sites!
I couldn't believe to my eyes! :D

Re: [SOLVED] Silverlight vs. Moonlight

PostPosted: Feb 28th, '12, 14:38
by mauro
You're right! firefox 10.0.2 + moonlight works! :shock: At the moment... ;)
Now I can watch RAI News!

I wonder what happened.

Re: [SOLVED] Silverlight vs. Moonlight

PostPosted: Feb 28th, '12, 14:44
by PiElle
All's well what ends well! ;)

Re: [SOLVED] Silverlight vs. Moonlight

PostPosted: Mar 3rd, '13, 14:19
by WW3Veteran
Hello,

I've installed moonlight on Firefox from this link: http://www.go-mono.com/moonlight/download.aspx, but i can get to work with this dynamic page https://www.favorit.hr/Live/Default.aspx. I get the loading bubbles, like in windows, but after just black. I right-clicked to get into the moonlight seeting and installed the vc-1 codecs in the prompt box, and it says they are installed. I'm running a fresh install of Mageia 2 KDE 32bit CD, so i wonder if i maybe be missing some other stuff that i have to install on my part.

This is what i get from the terminal:

Code: Select all
(firefox:2838): Gtk-WARNING **: Locale not supported by C library.
        Using the fallback 'C' locale.

(firefox:2838): Gdk-WARNING **: locale not supported by C library

(process:2894): Gtk-WARNING **: Locale not supported by C library.
        Using the fallback 'C' locale.
Moonlight: 3.99.0.3
Moonlight: Attempting to load libmoonloaderxpi
debug_get_option: GALLIUM_DRIVER = softpipe
Moonlight: Installing signal handlers for crash reporting.
Moonlight: Enabling MONO_DEBUG=keep-delegates,reverse-pinvoke-exceptions and MOONLIGHT_ENABLE_CONSOLE=1
Moonlight: Loaded mscodecs from: /home/jimmygestapo/.mozilla/plugins/moonlight/silverlight-media-pack-linux-x86-21-1.so.
Moonlight: browser bridge not found for your browser (likely not needed). User agent = 'Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20100101 Firefox/17.0'
Moonlight: Plugin AppDomain Creation: OK
Moonlight: URL = https://www.favorit.hr/Live/Default.aspx
Moonlight: OpenGL vendor string: VMware, Inc.
Moonlight: OpenGL renderer string: Gallium 0.4 on llvmpipe (LLVM 0x300)
Moonlight: OpenGL version string: 2.1 Mesa 8.0.4
Mono.MoonException: Error while loading the 'sr/FavoritBookingSilverlightUI.resources.dll' assembly : Culture name sr is not supported.
Parameter name: name
  at System.Windows.Deployment.LoadAssemblies () [0x00000] in <filename unknown>:0
  at System.Windows.Deployment.InitializeDeployment (IntPtr plugin, System.String xapPath, System.String culture, System.String uiCulture) [0x00000] in <filename unknown>:0
Moonlight: ErrorEventArgs created with message: 'Error while loading the 'sr/FavoritBookingSilverlightUI.resources.dll' assembly : Culture name sr is not supported.
Parameter name: name'

(plugin-container:2894): Moonlight-WARNING **: (plugin-class.cpp:610):static void Moonlight::EventListenerProxy::proxy_listener_to_javascript(Moonlight::EventObject*, Moonlight::EventArgs*, void*): runtime check failed: (js_sender != NULL)
not implemented: (ErrorEventArgs.charPosition) plugin-class.cpp:851
not implemented: (ErrorEventArgs.charPosition) plugin-class.cpp:851
Using managed xaml parser.
Exception while parsing string (44:6)
System.Windows.Markup.XamlParseException: Could not convert attribute value 'System_Windows_Controls_Primitives:CalendarItem' on element Style for property TargetType.
  at Mono.Xaml.XamlParser.ParseAttributeValue (Mono.Xaml.XamlObjectElement element, Mono.Xaml.XamlPropertySetter property, XamlAttribute ai) [0x00000] in <filename unknown>:0
  at Mono.Xaml.XamlParser.ParseAttribute (Mono.Xaml.XamlObjectElement element, XamlAttribute ai) [0x00000] in <filename unknown>:0
  at Mono.Xaml.XamlParser.XamlNode_OnAttribute (Mono.Xaml.XamlNode node, XamlAttribute ai) [0x00000] in <filename unknown>:0
  at Mono.Xaml.XamlNode.Parse (System.Xml.XmlReader reader, Mono.Xaml.XamlNode parent, Mono.Xaml.XamlNode node, Mono.Xaml.NodeEvent evstart, Mono.Xaml.NodeEvent evend, Mono.Xaml.AttributeEvent evattr, Boolean skip) [0x00000] in <filename unknown>:0
  at Mono.Xaml.XamlNode.Parse (System.Xml.XmlReader reader, Mono.Xaml.XamlNode parent, Mono.Xaml.XamlNode node, Mono.Xaml.NodeEvent evstart, Mono.Xaml.NodeEvent evend, Mono.Xaml.AttributeEvent evattr, Boolean skip) [0x00000] in <filename unknown>:0
  at Mono.Xaml.XamlNode.Parse (Mono.Xaml.NodeEvent evstart, Mono.Xaml.NodeEvent evend, Mono.Xaml.AttributeEvent evattr) [0x00000] in <filename unknown>:0
  at Mono.Xaml.XamlNode.Parse (System.String xml, Mono.Xaml.NodeEvent evstart, Mono.Xaml.NodeEvent evend, Mono.Xaml.AttributeEvent evattr) [0x00000] in <filename unknown>:0
  at Mono.Xaml.XamlParser.ParseString (System.String str) [0x00000] in <filename unknown>:0
string:
<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
    xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows"
    xmlns:controls="clr namespace:System.Windows.Controls;assembly=System.Windows.Controls"
    xmlns:System_Windows_Controls_Primitives="clr-namespace:System.Windows.Controls.Primitives;assembly=System.Windows.Controls"
    xmlns:basics="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls">

    <Style x:Key="customCalendarStyle" TargetType="sdk:Calendar">
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="Background">
            <Setter.Value>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#404040" Offset="0"/>
                    <!--<GradientStop Color="#000000" Offset="0.05"/>
                    <GradientStop Color="#000000" Offset="0.1"/>-->
                    <GradientStop Color="#404040" Offset="1"/>
                </LinearGradientBrush>
            </Setter.Value>
        </Setter>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="BorderBrush">
            <Setter.Value>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="Transparent" Offset="0"/>
                    <!--<GradientStop Color="#454545" Offset="0.375"/>
                    <GradientStop Color="#454545" Offset="0.375"/>-->
                    <GradientStop Color="Transparent" Offset="1"/>
                </LinearGradientBrush>
            </Setter.Value>
        </Setter>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="sdk:Calendar">
                    <StackPanel x:Name="Root" HorizontalAlignment="Center">
                        <System_Windows_Controls_Primitives:CalendarItem x:Name="CalendarItem" BorderBrush="Transparent" BorderThickness="0" Background="{TemplateBinding Background}"/>
                    </StackPanel>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="customCalendarItemStyle" TargetType="System_Windows_Controls_Primitives:CalendarItem">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="System_Windows_Controls_Primitives:CalendarItem">
                    <Grid>
                        <Grid.Resources>
                            <SolidColorBrush x:Key="DisabledBrush" Color="#8CFFFFFF" />
                        </Grid.Resources>
                        <vsm:VisualStateManager.VisualStateGroups>
                            <vsm:VisualStateGroup x:Name="CommonStates">
                                <vsm:VisualState x:Name="Normal" />
                                <vsm:VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetName="DisabledVisual" Storyboard.TargetProperty="Opacity" To="1" Duration="0" />
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                        </vsm:VisualStateManager.VisualStateGroups>

                        <Border BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" Margin="0,2,0,2">
                            <Border BorderBrush="#00000000" BorderThickness="2">
                                <Grid>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                        <RowDefinition Height="*" />
                                    </Grid.RowDefinitions>
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>

                                    <Grid.Resources>
                                        <ControlTemplate x:Key="HeaderButtonTemplate" TargetType="Button">
                                            <Grid Cursor="Arrow">
                                                <vsm:VisualStateManager.VisualStateGroups>
                                                    <vsm:VisualStateGroup x:Name="CommonStates">
                                                        <vsm:VisualState x:Name="Normal" />
                                                        <vsm:VisualState x:Name="MouseOver">
                                                            <!--<Storyboard>
                                                                <ColorAnimation Storyboard.TargetName="Content" Storyboard.TargetProperty="(ContentControl.Foreground).(SolidColorBrush.Color)" To="#FF73A9D8" Duration="0" />
                                                            </Storyboard>-->
                                                        </vsm:VisualState>
                                                        <vsm:VisualState x:Name="Disabled">
                                                            <Storyboard>
                                                                <DoubleAnimation Storyboard.TargetName="Content" Storyboard.TargetProperty="Opacity" To=".5" Duration="0" />
                                                            </Storyboard>
                                                        </vsm:VisualState>
                                                    </vsm:VisualStateGroup>
                                                </vsm:VisualStateManager.VisualStateGroups>

                                                <ContentControl x:Name="Content" IsTabStop="False" Foreground="#F0F0F0" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" Margin="1,5,1,9" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
                                            </Grid>
                                        </ControlTemplate>

                                        <DataTemplate x:Name="DayTitleTemplate">
                                            <TextBlock FontWeight="Normal" Foreground="#909090" FontSize="10" Text="{Binding}" Margin="10,4,0,4" HorizontalAlignment="Center" VerticalAlignment="Center" />
                                        </DataTemplate>

                                        <ControlTemplate x:Key="PreviousButtonTemplate" TargetType="Button">
                                            <Grid Cursor="Hand" Opacity="0">
                                                <vsm:VisualStateManager.VisualStateGroups>
                                                    <vsm:VisualStateGroup x:Name="CommonStates">
                                                        <vsm:VisualState x:Name="Normal" />
                                                        <vsm:VisualState x:Name="MouseOver">
                                                            <!--<Storyboard>
                                                                <ColorAnimation Storyboard.TargetName="IconPath" Storyboard.TargetProperty="(Path.Fill).(SolidColorBrush.Color)" To="#FF73A9D8" Duration="0" />
                                                            </Storyboard>-->
                                                        </vsm:VisualState>
                                                        <vsm:VisualState x:Name="Disabled">
                                                            <Storyboard>
                                                                <DoubleAnimation Storyboard.TargetName="IconPath" Storyboard.TargetProperty="(Path.Fill).(SolidColorBrush.Opacity)" To=".5" Duration="0" />
                                                            </Storyboard>
                                                        </vsm:VisualState>
                                                    </vsm:VisualStateGroup>
                                                </vsm:VisualStateManager.VisualStateGroups>

                                                <Rectangle Fill="#11E5EBF1" Stretch="Fill" Opacity="0" />
                                                <Grid>
                                                    <Path x:Name="IconPath" Fill="#F0F0F0" Margin="14,-6,0,0" Height="10" Width="6" VerticalAlignment="Center" HorizontalAlignment="Left" Stretch="Fill" Data="M288.75,232.25 L288.75,240.625 L283,236.625 z" />
                                                </Grid>
                                            </Grid>
                                        </ControlTemplate>

                                        <ControlTemplate x:Key="NextButtonTemplate" TargetType="Button">
                                            <Grid Cursor="Hand" Opacity="0">
                                                <vsm:VisualStateManager.VisualStateGroups>
                                                    <vsm:VisualStateGroup x:Name="CommonStates">
                                                        <vsm:VisualState x:Name="Normal" />
                                                        <vsm:VisualState x:Name="MouseOver">
                                                            <Storyboard>
                                                                <ColorAnimation Storyboard.TargetName="IconPath" Storyboard.TargetProperty="(Path.Fill).(SolidColorBrush.Color)" To="#FF73A9D8" Duration="0" />
                                                            </Storyboard>
                                                        </vsm:VisualState>
                                                        <vsm:VisualState x:Name="Disabled">
                                                            <Storyboard>
                                                                <DoubleAnimation Storyboard.TargetName="IconPath" Storyboard.TargetProperty="(Path.Fill).(SolidColorBrush.Opacity)" To=".5" Duration="0" />
                                                            </Storyboard>
                                                        </vsm:VisualState>
                                                    </vsm:VisualStateGroup>
                                                </vsm:VisualStateManager.VisualStateGroups>

                                                <Rectangle Fill="#11E5EBF1" Stretch="Fill" Opacity="0" />
                                                <Grid>
                                                    <Path x:Name="IconPath" Fill="#F0F0F0" Margin="0,-6,14,0" Height="10" Width="6" Stretch="Fill" VerticalAlignment="Center" HorizontalAlignment="Right" Data="M282.875,231.875 L282.875,240.375 L288.625,236 z" />
                                                </Grid>
                                            </Grid>
                                        </ControlTemplate>
                                    </Grid.Resources>

                                    <Button x:Name="PreviousButton" Height="20" Width="28" Visibility="Collapsed" Template="{StaticResource PreviousButtonTemplate}" HorizontalAlignment="Left" />

                                    <Button x:Name="HeaderButton" Grid.Column="0" FontWeight="Normal" FontSize="11" Template="{StaticResource HeaderButtonTemplate}" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="15 0 0 0"  />

                                    <Button x:Name="NextButton" Grid.Column="2" Height="20" Width="28" Visibility="Collapsed" Template="{StaticResource NextButtonTemplate}" HorizontalAlignment="Right" />

                                    <Grid x:Name="MonthView" Grid.Row="1" Grid.ColumnSpan="3" Visibility="Collapsed" Margin="6,-1,6,6">
                                        <Grid.RowDefinitions>
                                            <RowDefinition Height="Auto" />
                                            <RowDefinition Height="Auto" />
                                            <RowDefinition Height="Auto" />
                                            <RowDefinition Height="Auto" />
                                            <RowDefinition Height="Auto" />
                                            <RowDefinition Height="Auto" />
                                            <RowDefinition Height="Auto" />
                                        </Grid.RowDefinitions>
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="Auto" />
                                            <ColumnDefinition Width="Auto" />
                                            <ColumnDefinition Width="Auto" />
                                            <ColumnDefinition Width="Auto" />
                                            <ColumnDefinition Width="Auto" />
                                            <ColumnDefinition Width="Auto" />
                                            <ColumnDefinition Width="Auto" />
                                        </Grid.ColumnDefinitions>
                                    </Grid>

                                    <Grid x:Name="YearView" Grid.Row="1" Grid.ColumnSpan="3" Visibility="Collapsed" Margin="6,-3,7,6">
                                        <Grid.RowDefinitions>
                                            <RowDefinition Height="Auto" />
                                            <RowDefinition Height="Auto" />
                                            <RowDefinition Height="Auto" />
                                        </Grid.RowDefinitions>
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="Auto" />
                                            <ColumnDefinition Width="Auto" />
                                            <ColumnDefinition Width="Auto" />
                                            <ColumnDefinition Width="Auto" />
                                        </Grid.ColumnDefinitions>
                                    </Grid>
                                </Grid>
                            </Border>
                        </Border>

                        <Rectangle x:Name="DisabledVisual" Opacity="0" Visibility="Collapsed" Stretch="Fill" RadiusX="2" RadiusY="2" StrokeThickness="1" Stroke="{StaticResource DisabledBrush}" Fill="{StaticResource DisabledBrush}" Margin="0,2,0,2" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="customCalendarDayButtonStyle" TargetType="System_Windows_Controls_Primitives:CalendarDayButton">
        <Setter Property="Background" Value="Transparent" />
        <Setter Property="Cursor" Value="Hand" />
        <Setter Property="FontSize" Value="11" />
        <Setter Property="FontWeight" Value="Bold"/>
        <Setter Property="HorizontalContentAlignment" Value="Center" />
        <Setter Property="VerticalContentAlignment" Value="Center" />
        <Setter Property="MinWidth" Value="5" />
        <Setter Property="MinHeight" Value="5" />
        <Setter Property="Width" Value="20" />
        <Setter Property="Height" Value="20" />
        <Setter Property="Margin" Value="10 0 0 12" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="System_Windows_Controls_Primitives:CalendarDayButton">
                    <Grid>
                        <vsm:VisualStateManager.VisualStateGroups>
                            <vsm:VisualStateGroup x:Name="CommonStates">
                                <vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualTransition GeneratedDuration="0:0:0.1" />
                                </vsm:VisualStateGroup.Transitions>
                                <vsm:VisualState x:Name="Normal" />
                                <vsm:VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <!--<DoubleAnimation Storyboard.TargetName="Background" Storyboard.TargetProperty="Opacity" To="1" Duration="0" />-->
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <!--<DoubleAnimation Storyboard.TargetName="Background" Storyboard.TargetProperty="Opacity" To="1" Duration="0" />-->
                                        <!--<ColorAnimation Storyboard.TargetName="Content" Storyboard.TargetProperty="(ContentControl.Foreground).(GradientBrush.GradientStops)[2].(GradientStop.Color)" To="#F7BE02" Duration="0" />
                                        <ColorAnimation Storyboard.TargetName="Content" Storyboard.TargetProperty="(ContentControl.Foreground).(GradientBrush.GradientStops)[3].(GradientStop.Color)" To="#F7BE02" Duration="0" />-->
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetName="Background" Storyboard.TargetProperty="Opacity" To="1" Duration="0" />
                                        <!--<DoubleAnimation Storyboard.TargetName="Content" Storyboard.TargetProperty="Opacity" To=".35" Duration="0" />-->
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                            <vsm:VisualStateGroup x:Name="SelectionStates">
                                <vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualTransition GeneratedDuration="0" />
                                </vsm:VisualStateGroup.Transitions>
                                <vsm:VisualState x:Name="Unselected" />
                                <vsm:VisualState x:Name="Selected">
                                    <Storyboard>
                                        <!--<DoubleAnimation Storyboard.TargetName="SelectedBackground" Storyboard.TargetProperty="Opacity" To="1" Duration="0" />-->
                                        <!--<DoubleAnimation Storyboard.TargetName="Content" Storyboard.TargetProperty="ContentControl.FontSize" To="14" Duration="0" />-->
                                        <ColorAnimation Storyboard.TargetName="Content" Storyboard.TargetProperty="(ContentControl.Foreground).(GradientBrush.GradientStops)[2].(GradientStop.Color)" To="#000000" Duration="0" />
                                        <ColorAnimation Storyboard.TargetName="Content" Storyboard.TargetProperty="(ContentControl.Foreground).(GradientBrush.GradientStops)[3].(GradientStop.Color)" To="#000000" Duration="0" />
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Background" Storyboard.TargetProperty="Fill">
                                            <ObjectAnimationUsingKeyFrames.KeyFrames>
                                                <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                                    <DiscreteObjectKeyFrame.Value>
                                                        <SolidColorBrush Color="#F1DD00"/>
                                                    </DiscreteObjectKeyFrame.Value>
                                                </DiscreteObjectKeyFrame>
                                            </ObjectAnimationUsingKeyFrames.KeyFrames>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                            <vsm:VisualStateGroup x:Name="CalendarButtonFocusStates">
                                <vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualTransition GeneratedDuration="0" />
                                </vsm:VisualStateGroup.Transitions>
                                <vsm:VisualState x:Name="CalendarButtonFocused">
                                    <Storyboard>
                                        <!--<ColorAnimation Storyboard.TargetName="Content" Storyboard.TargetProperty="(ContentControl.Foreground).(GradientBrush.GradientStops)[2].(GradientStop.Color)" To="#F7BE02" Duration="0" />
                                        <ColorAnimation Storyboard.TargetName="Content" Storyboard.TargetProperty="(ContentControl.Foreground).(GradientBrush.GradientStops)[3].(GradientStop.Color)" To="#F7BE02" Duration="0" />-->
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="CalendarButtonUnfocused">
                                    <!--<Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Visibility" Duration="0">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed" />
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>-->
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                            <vsm:VisualStateGroup x:Name="ActiveStates">
                                <vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualTransition GeneratedDuration="0" />
                                </vsm:VisualStateGroup.Transitions>
                                <vsm:VisualState x:Name="Active" />       
                                <vsm:VisualState x:Name="Inactive">
                                    <Storyboard>
                                        <ColorAnimation Storyboard.TargetName="Content" Storyboard.TargetProperty="(ContentControl.Foreground).(GradientBrush.GradientStops)[2].(GradientStop.Color)" To="#FF777777" Duration="0" />
                                        <ColorAnimation Storyboard.TargetName="Content" Storyboard.TargetProperty="(ContentControl.Foreground).(GradientBrush.GradientStops)[3].(GradientStop.Color)" To="#FF777777" Duration="0" />
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                            <vsm:VisualStateGroup x:Name="DayStates">
                                <vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualTransition GeneratedDuration="0" />
                                </vsm:VisualStateGroup.Transitions>
                                <vsm:VisualState x:Name="RegularDay" />
                                <vsm:VisualState x:Name="Today">
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetName="TodayBackground" Storyboard.TargetProperty="Opacity" To="1" Duration="0" />
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                            <vsm:VisualStateGroup x:Name="BlackoutDayStates">
                                <vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualTransition GeneratedDuration="0" />
                                </vsm:VisualStateGroup.Transitions>
                                <vsm:VisualState x:Name="NormalDay" />
                                <vsm:VisualState x:Name="BlackoutDay">
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetName="Content" Storyboard.TargetProperty="Opacity" To="0.2" Duration="0" />
                                        <!--<DoubleAnimation Storyboard.TargetName="Content" Storyboard.TargetProperty="(ContentControl.Foreground).(GradientBrush.GradientStops)[2].(GradientStop.Offset)" To="1" Duration="0" />-->
                                        <!--<DoubleAnimation Storyboard.TargetName="BlackoutVisual" Storyboard.TargetProperty="Opacity" To=".2" Duration="0" />-->
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                        </vsm:VisualStateManager.VisualStateGroups>

                        <Rectangle x:Name="TodayBackground" Opacity="0" Fill="Transparent" Stroke="#F1DD00" StrokeThickness="1"/>
                        <Rectangle x:Name="SelectedBackground" RadiusX="2" RadiusY="2" Opacity="0" Fill="Transparent" Stroke="#F7BE02"/>
                        <Rectangle x:Name="Background" Opacity="1" Fill="#5A5C5D" Stroke="Transparent" StrokeThickness="1"/>

                        <ContentControl x:Name="Content" IsTabStop="False" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" FontSize="{TemplateBinding FontSize}" Margin="0,1,0,1">
                            <ContentControl.Foreground>
                                <LinearGradientBrush>
                                    <GradientStop Offset="0" Color="#FFFFFFFF" />
                                    <GradientStop Offset="0" Color="#FFFFFFFF" />
                                    <GradientStop Offset="0" Color="#F0F0F0" />
                                    <GradientStop Offset="1" Color="#F0F0F0" />
                                </LinearGradientBrush>
                            </ContentControl.Foreground>
                        </ContentControl>

                        <Path x:Name="BlackoutVisual" Opacity="0" Margin="2" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" RenderTransformOrigin="0.5,0.5" Fill="#FFFFFFFF" Stretch="Uniform" Data="M8.1772461,11.029181 L10.433105,11.029181 L11.700684,12.801641 L12.973633,11.029181 L15.191895,11.029181 L12.844727,13.999395 L15.21875,17.060919 L12.962891,17.060919 L11.673828,15.256231 L10.352539,17.060919 L8.1396484,17.060919 L10.519043,14.042364 z" />
                        <Rectangle x:Name="FocusVisual" Visibility="Collapsed" IsHitTestVisible="false" RadiusX="2" RadiusY="2" Stroke="Transparent" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="customCalendarButtonStyle" TargetType="System_Windows_Controls_Primitives:CalendarButton">
        <Setter Property="Background" Value="#FFBADDE9" />
        <Setter Property="FontSize" Value="10" />
        <Setter Property="HorizontalContentAlignment" Value="Center" />
        <Setter Property="VerticalContentAlignment" Value="Center" />
        <Setter Property="MinWidth" Value="40" />
        <Setter Property="MinHeight" Value="42" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="System_Windows_Controls_Primitives:CalendarButton">
                    <Grid>
                        <vsm:VisualStateManager.VisualStateGroups>
                            <vsm:VisualStateGroup x:Name="CommonStates">
                                <vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualTransition GeneratedDuration="0:0:0.1" />
                                </vsm:VisualStateGroup.Transitions>
                                <vsm:VisualState x:Name="Normal" />
                                <vsm:VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetName="Background" Storyboard.TargetProperty="Opacity" To=".5" Duration="0" />
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetName="Background" Storyboard.TargetProperty="Opacity" To=".5" Duration="0" />
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                            <vsm:VisualStateGroup x:Name="SelectionStates">
                                <vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualTransition GeneratedDuration="0" />
                                </vsm:VisualStateGroup.Transitions>
                                <vsm:VisualState x:Name="Unselected" />
                                <vsm:VisualState x:Name="Selected">
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetName="SelectedBackground" Storyboard.TargetProperty="Opacity" To=".75" Duration="0" />
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                            <vsm:VisualStateGroup x:Name="ActiveStates">
                                <vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualTransition GeneratedDuration="0" />
                                </vsm:VisualStateGroup.Transitions>
                                <vsm:VisualState x:Name="Active" />
                                <vsm:VisualState x:Name="Inactive">
                                    <Storyboard>
                                        <ColorAnimation Storyboard.TargetName="Content" Storyboard.TargetProperty="(ContentControl.Foreground).(SolidColorBrush.Color)" To="#FF777777" Duration="0" />
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                            <vsm:VisualStateGroup x:Name="CalendarButtonFocusStates">
                                <vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualTransition GeneratedDuration="0" />
                                </vsm:VisualStateGroup.Transitions>
                                <vsm:VisualState x:Name="CalendarButtonFocused">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Visibility" Duration="0">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="CalendarButtonUnfocused">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Visibility" Duration="0">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed" />
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                        </vsm:VisualStateManager.VisualStateGroups>

                        <Rectangle x:Name="SelectedBackground" RadiusX="1" RadiusY="1" Opacity="0" Fill="{TemplateBinding Background}" />
                        <Rectangle x:Name="Background" RadiusX="1" RadiusY="1" Opacity="0" Fill="{TemplateBinding Background}" />

                        <ContentControl x:Name="Content" IsTabStop="False" Foreground="#FF333333" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" FontSize="{TemplateBinding FontSize}" Margin="1,0,1,1" />

                        <Rectangle x:Name="FocusVisual" Visibility="Collapsed" IsHitTestVisible="false" RadiusX="1" RadiusY="1" Stroke="#FF6DBDD1" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>

Error while parsing xaml referred to in ResourceDictionary::Source property '/FavoritBookingSilverlightUI;component/Resources/CalendarStyleResources.xaml'.
System.Windows.Markup.XamlParseException: Could not convert attribute value 'System_Windows_Controls_Primitives:CalendarItem' on element Style for property TargetType.
  at Mono.Xaml.XamlParser.ParseAttributeValue (Mono.Xaml.XamlObjectElement element, Mono.Xaml.XamlPropertySetter property, XamlAttribute ai) [0x00000] in <filename unknown>:0
  at Mono.Xaml.XamlParser.ParseAttribute (Mono.Xaml.XamlObjectElement element, XamlAttribute ai) [0x00000] in <filename unknown>:0
  at Mono.Xaml.XamlParser.XamlNode_OnAttribute (Mono.Xaml.XamlNode node, XamlAttribute ai) [0x00000] in <filename unknown>:0
  at Mono.Xaml.XamlNode.Parse (System.Xml.XmlReader reader, Mono.Xaml.XamlNode parent, Mono.Xaml.XamlNode node, Mono.Xaml.NodeEvent evstart, Mono.Xaml.NodeEvent evend, Mono.Xaml.AttributeEvent evattr, Boolean skip) [0x00000] in <filename unknown>:0
  at Mono.Xaml.XamlNode.Parse (System.Xml.XmlReader reader, Mono.Xaml.XamlNode parent, Mono.Xaml.XamlNode node, Mono.Xaml.NodeEvent evstart, Mono.Xaml.NodeEvent evend, Mono.Xaml.AttributeEvent evattr, Boolean skip) [0x00000] in <filename unknown>:0
  at Mono.Xaml.XamlNode.Parse (Mono.Xaml.NodeEvent evstart, Mono.Xaml.NodeEvent evend, Mono.Xaml.AttributeEvent evattr) [0x00000] in <filename unknown>:0
  at Mono.Xaml.XamlNode.Parse (System.String xml, Mono.Xaml.NodeEvent evstart, Mono.Xaml.NodeEvent evend, Mono.Xaml.AttributeEvent evattr) [0x00000] in <filename unknown>:0
  at Mono.Xaml.XamlParser.ParseString (System.String str) [0x00000] in <filename unknown>:0
Exception while parsing string (44:6)
System.Windows.Markup.XamlParseException: Could not convert attribute value 'System_Windows_Controls_Primitives:CalendarItem' on element Style for property TargetType.
  at Mono.Xaml.XamlParser.ParseAttributeValue (Mono.Xaml.XamlObjectElement element, Mono.Xaml.XamlPropertySetter property, XamlAttribute ai) [0x00000] in <filename unknown>:0
  at Mono.Xaml.XamlParser.ParseAttribute (Mono.Xaml.XamlObjectElement element, XamlAttribute ai) [0x00000] in <filename unknown>:0
  at Mono.Xaml.XamlParser.XamlNode_OnAttribute (Mono.Xaml.XamlNode node, XamlAttribute ai) [0x00000] in <filename unknown>:0
  at Mono.Xaml.XamlNode.Parse (System.Xml.XmlReader reader, Mono.Xaml.XamlNode parent, Mono.Xaml.XamlNode node, Mono.Xaml.NodeEvent evstart, Mono.Xaml.NodeEvent evend, Mono.Xaml.AttributeEvent evattr, Boolean skip) [0x00000] in <filename unknown>:0
  at Mono.Xaml.XamlNode.Parse (System.Xml.XmlReader reader, Mono.Xaml.XamlNode parent, Mono.Xaml.XamlNode node, Mono.Xaml.NodeEvent evstart, Mono.Xaml.NodeEvent evend, Mono.Xaml.AttributeEvent evattr, Boolean skip) [0x00000] in <filename unknown>:0
  at Mono.Xaml.XamlNode.Parse (Mono.Xaml.NodeEvent evstart, Mono.Xaml.NodeEvent evend, Mono.Xaml.AttributeEvent evattr) [0x00000] in <filename unknown>:0
  at Mono.Xaml.XamlNode.Parse (System.String xml, Mono.Xaml.NodeEvent evstart, Mono.Xaml.NodeEvent evend, Mono.Xaml.AttributeEvent evattr) [0x00000] in <filename unknown>:0
  at Mono.Xaml.XamlParser.ParseString (System.String str) [0x00000] in <filename unknown>:0
string:
<Application xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             x:Class="FavoritBookingSilverlightUI.App"
             >
    <Application.Resources>

        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="Resources/CommonResources.xaml"/>
                <ResourceDictionary Source="Resources/ButtonResources.xaml"/>
                <ResourceDictionary Source="Resources/CustomButtonResources.xaml"/>
                <ResourceDictionary Source="Resources/ComboBoxResources.xaml"/>
                <ResourceDictionary Source="Resources/ToggleButtonResources.xaml"/>
                <ResourceDictionary Source="Resources/CheckBoxResource.xaml"/>
                <ResourceDictionary Source="Resources/HyperlinkButtonResources.xaml"/>
                <ResourceDictionary Source="Resources/CalendarStyleResources.xaml"/>
                <ResourceDictionary Source="Resources/ChildWindowResources.xaml"/>
                <ResourceDictionary Source="Resources/Styles/BlackScrollViewerResources.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Application.Resources>
</Application>

Moonlight: ErrorEventArgs created with message: 'Error while creating the instance of type FavoritBookingSilverlightUI.App'

(plugin-container:2894): Moonlight-WARNING **: (plugin-class.cpp:610):static void Moonlight::EventListenerProxy::proxy_listener_to_javascript(Moonlight::EventObject*, Moonlight::EventArgs*, void*): runtime check failed: (js_sender != NULL)



I hope someone can get a workaround for this, because it's annoying to switch to my win7 partition just to run this page. I also thought about installing IE on Wine and istalling silverlight there, but i failed that miserably as well. Tried Chrome too with no success.