![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Xamarin
Sweet_Nail
这个作者很懒,什么都没留下…
展开
-
xaramin OnBackButtonPressed with confirm box
protected override bool OnBackButtonPressed() { Device.BeginInvokeOnMainThread(async () => { var result = await this.DisplayAlert("Alert!", "Do you really want to back to list page?", "Yes", "No");...原创 2021-04-08 16:47:34 · 106 阅读 · 0 评论 -
xamarin make editbox can scroll in scrollview
public class CustomEditorRenderer : EditorRenderer { public CustomEditorRenderer(Context context) : base(context) { AutoPackage = false; } protected override void OnElementChanged(ElementChangedEventArgs...原创 2021-04-08 16:45:30 · 96 阅读 · 0 评论 -
make CollectionView can scorll with datatemplate
<CollectionView.ItemsLayout> <GridItemsLayout Orientation="Vertical"/> </CollectionView.ItemsLayout>原创 2021-04-08 16:43:19 · 103 阅读 · 0 评论 -
xamarin NumberCompareValidationBehavior
public class NumberCompareValidationBehavior : Behavior<Entry> { public static readonly BindableProperty TextProperty = BindableProperty.Create("Text", typeof(string), typeof(NumberCompareValidationBehavior), null, BindingMod.原创 2021-03-22 17:12:08 · 77 阅读 · 0 评论 -
xamarin multi select
前端: <pages:PopupPage.Content> <Frame BackgroundColor="White" Margin="60" CornerRadius="6" Padding="0" VerticalOptions="Center" HorizontalOptions="Center"> <StackLayout> <Grid .原创 2021-03-22 17:08:58 · 82 阅读 · 0 评论 -
xamarin NumberValidationBehavior
public class NumberValidationBehavior : Behavior<Entry> { protected override void OnAttachedTo(Entry entry) { entry.TextChanged += OnEntryTextChanged; base.OnAttachedTo(entry); } protected ...原创 2021-03-22 16:57:05 · 96 阅读 · 0 评论 -
Xamarin Android添加Gallery存储权限
需要在AndroidMainfest.xml里添加android:requestLegacyExternalStorage="true"Like This:<application android:label="FactoryVisit.Debug" android:icon="@drawable/logo" android:requestLegacyExternalStorage="true">原创 2020-12-18 16:11:23 · 223 阅读 · 1 评论 -
Xaramin AutoCompleteView
最近用Xamarin开发APP时需要做一个AutoComplete,兜了一圈发现也没什么特别好用的,就根据一些经验重新写了一个public class AutoCompleteView : ContentView { private const int RowHeight = 30; public static readonly BindableProperty SearchTextProperty = BindableProperty原创 2020-12-18 16:06:26 · 152 阅读 · 2 评论