Posts

Showing posts with the label xaml

Error with lastest version Xamarin.Forms Button.CornerRadius

Error with lastest version Xamarin.Forms Button.CornerRadius [Update: Code worked on Android 8.0 simulator] I keep receive error No CornerRadius property found for the type Button My code behind public TabbedPage1 () { InitializeComponent(); this.FindByName<Button>("runButton").CornerRadius = screenX / 5; } My xaml <?xml version="1.0" encoding="utf-8" ?> <TabbedPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="FuckThis.TabbedPage1"> <ContentPage x:Name="Page1"> <RelativeLayout> <Button xmlns:android="http://schemas.android.com/apk/res/android" x:Name="runButton" Text="Run" RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent,Propert...

VS2017 DesignInstance Intellisense not working

Image
VS2017 DesignInstance Intellisense not working For some reason the intellisense in VS2017 is not showing the properties of my viewmodels, even though I used the d:DataContext="{d:DesignInstance Type=local:TestVm, IsDesignTimeCreatable=True}" method. d:DataContext="{d:DesignInstance Type=local:TestVm, IsDesignTimeCreatable=True}" Example of my class: public class TestVm { private int _test; public int Test { get { return _test; } set { _test = value; } } } Yet the property Test isn't showing up in my intellisense: What could be the reason behind this? hope this help to you stackoverflow.com/questions/45720439/… – Sachith Jun 30 at 19:03 I tried them out but none seemed to fix it – user2657943 Jul 1 at 8:28 ...