Rounded images for WPF application using xamarin.forms - wpf

I want rounded images for my WPF application and I'm developing my WPF Application using xamarin.forms not through native code.I am goggling this for the last 2 hours and couldn't find any solution. I've found some solutions that works for android using renders or the solution that works for native wpf code.
And,found a Plugin for circle images but I'm unable to initialize this plugin in my WPF application.
Can anyone please help me with this.
Thank you.

You don't need a plugin or a custom renderer to do that. It's simpler than you might think. Here is how to do it:
<Frame HasShadow="False" WidthRequest="70" HeightRequest="70" CornerRadius="35">
<Image Source="yourImageNameGoesHere" />
</Frame>

Related

Does the new SvgImageSource class designed for UWP can be used in WPF project

It seems that a relatively new class: SvgImageSource can only be used in UWP. Is there any way to use it in a WPF project and how?
Please take a look at this framework:
SharpVectors
The other way is to convert your SVG files to XAML path geometry and using them easily.
It will be possible to use any UWP XAML UI in WPF using XAML Islands. This is currently available as a preview using the WindowsXamlHost control which is part of the Windows Community Toolkit. Also note, that when using UWP controls in WPF apps, the app will then work only on Windows 10 client PCs.

AutomationProperties in WPF

Can anyone give an example as to how AutomationProperties.LiveSettings work?
I have been working on a WPF application and I want a Text Block to be made live. In Html its easy to do, but using an aria-live tag, however I have been struggling to do the same in WPF.
AutomationProperties.LiveSetting cannot be used in WPF. It can be used with XAML only for developing windows store app or mobile app. In case of a store/phone app, a different library of AutomationProperties is used which supports the usage of LiveSettings. In case of WPF app, there is a different library of AutomationProperties which doesn't have the LiveSettings property.

Using font icons in WP8.1 Silverlight ApplicationBar

I'm trying to figure out why I can't use the glyphicons that are available to WP8 XAML apps in my Silverlight 8.1 Application.
As you can see from the fragment below, I have to specify an image to use as the icon compared to the ease of using one of the glyph icons.
<phone:PhoneApplicationPage.ApplicationBar>
<shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
<shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Button 2"/>
Does anyone know how I can simply use the icons without needing to go through the extra work of creating images?
In WP8.1 Silverlight you need to use an image. The symbol enumeration with those glyphicons are only available for Windows (Phone) Store apps only, see the documentation:
Minimum supported Phone: Windows Phone 8.1 [Windows Runtime apps only]

Building a presentation display for big screen using Silverlight

Our company wants to replace the powerpoint presentation (company info, etc) displayed on the big screen TV in the lobby with something more professional. I can do that easily using ASP.NET/HTML and JQuery (use JQuery to cycle through the DIVs), but I want to develop it in Silverlight - basically a web-based Silverlight application that fades in/out through the different "slides". It'll be tied to a SQL server database.
I'm new to Silverlight (my 1st project) and am not sure how to proceed (I'm pretty conversant with ASP.NET). I'm not sure which container (stackpanel, grid, canvas) to use in building the slides. I tried using stackpanels but couldn't get it to fade from one stackpanel to another.
Can someone please help me out??
Thanks.
My answer at "Animation target not specified issue - Silverlight storyboards." will do the trick at
Animation target not specified issue - Silverlight storyboards
When placing your Dia in a Grid you can easy use the PlaneProjection to move it around animating the LocalOffsetX property of the PlaneProjection for example.
<Grid>
<Grid.Projection>
<PlaneProjection />
</Grid.Projection>
<Dia />
</Grid>
If you need more explanation, let me know. I will be happy to elaborate in more detail.
Please let me know if this helped you.

ANIMATING Page Transition in WP7 in C#

Can anyone tell me how to animate a page transition in windows phone 7 by using C#. I have seen some samples which explain this in xaml. But I need to do it in C#.
you can follow this awesome tutorial: http://windowsphonegeek.com/articles/Windows-Phone-7-Navigation-Transitions-Step-By-Step-guide

Resources