Quantcast
Channel: Building Windows Store apps with C# or VB (archived) forum
Viewing all 7782 articles
Browse latest View live

WACK Test Failed for Supported APIs for sqlite3.dll

$
0
0

Hi,

My recent WACK tests get the following error message: The supported APIs test detected the following errors:

API __C_specific_handler in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API. 
API __CppXcptFilter in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API. 
API __clean_type_info_names_internal in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API. 
API __dllonexit in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API. 
API _amsg_exit in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API. 
API _calloc_crt in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API. 
API _initterm in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API. 
API _initterm_e in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API. 
API _localtime64_s in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API. 
API _lock in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API. 
API _malloc_crt in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API. 
API _msize in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API. 
API _onexit in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API. 
API _unlock in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API. 
API free in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API. 
API malloc in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API. 
API memcmp in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API. 
API memcpy in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API. 
API memmove in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API. 
API memset in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API. 
API qsort in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API. 
API realloc in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API. 
API strcmp in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API. 
API strncmp in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API. 

The same application package was tested successfully on one machine while on another machine, it fails with the above error message. How could SQLite extension become unsupported APIs? Could this be an issue with the WACK tool itself?

Thanks,



Re_target Windows Store app from 8.1 to 8.0

$
0
0

Hi

I have just published my first app “MyDailyHandicap” to the Store in Windows8.1 and Windows Phone 8.1 using VS Express 2013.

1) Is it possible to develop apps using VS Express 2013 for Windows in both 8.1 and 8.0 and lower versions.

2) If not; how can I develop apps for the Store in lower versions of Windows [both Phone and Windows].

Thanks

Wendel

Content compliance certification with error code 0xc000027b. Cant debug to source code.

$
0
0

Hi experts,

I have developed an App and submitted to the app store. My app passed all Windows Certification kit tests but failed certification for Content Compliance with an error code 0xc000027b. Though not an expert I tried to debug the information from the Crash Dump and I couldn't relate the crash to any of the source code. But I saw that it was an unhandled exception and I wrapped all my Homepage functions with the hope to catch the exception. I couldnt catch it on any PC or Surface. I handled all the exceptions and resubmitted it but it failed again on the same error and I am totally lost now. I would appreciate any help on how to go from here. The crash dump report is stored at :

https://onedrive.live.com/redir?resid=E32E591049EADA91!58275&authkey=!AJHxKg4VfiwP8PI&ithint=folder%2czip



Rebinding ItemsControl in DataTemplate

$
0
0
I have the following Pivot control in my XAML:
<Pivot x:Name="pivRecipients" Grid.Row="1" Background="Transparent"><Pivot.ItemContainerStyle><Style TargetType="PivotItem"><Setter Property="Margin" Value="0"/></Style></Pivot.ItemContainerStyle><Pivot.HeaderTemplate><DataTemplate><TextBlock Text="{Binding Name}" FontSize="60" FontFamily="Arial"/></DataTemplate></Pivot.HeaderTemplate><Pivot.ItemTemplate><DataTemplate><ScrollViewer><ItemsControl ItemsSource="{Binding Gifts,Converter={StaticResource GiftsWithIndex}}"><ItemsControl.ItemsPanel><ItemsPanelTemplate><StackPanel/></ItemsPanelTemplate></ItemsControl.ItemsPanel><ItemsControl.ItemTemplate><DataTemplate><RadioButton Style="{StaticResource GiftRadioButtonStyle}" Content="{Binding}" Checked="Gift_Checked" Tag="{Binding Index}" Loaded="Gift_Loaded"/></DataTemplate></ItemsControl.ItemTemplate></ItemsControl></ScrollViewer></DataTemplate></Pivot.ItemTemplate></Pivot>
You will notice that the Pivot's ItemTemplate contains an ItemsControl. When the Pivot's SelectionChanged event occurs, I want to rebind the ItemsControl for that specific ItemsControl (so that the Loaded event of each item is triggered). I could, of course, just rebind the whole Pivot, but that seems somewhat inefficient. Can anybody tell me how to rebind the ItemsControl for only the current selection? Thanks.

Nathan Sokalski njsokalski@hotmail.com http://www.nathansokalski.com/

Universal, MVVM : Creating Controls at Run Time in XAML(View)

$
0
0

Hi ,

I am new in MVVM. I want to add control in in view from viem model at Run time. If i am using without mvvm then in code behind I can write

 public BlankPage()
        {
            this.InitializeComponent();
            addcontrol();

        }

        public void addcontrol()
        {
            TextBlock tb = new TextBlock();
            tb.Text = "Hello..!!";
            tb.FontSize = 25;
            tb.VerticalAlignment = VerticalAlignment.Top;
            tb.HorizontalAlignment = HorizontalAlignment.Right;
            LayoutRoot.Children.Add(tb);

        }

then how can I write this thing from view-model so TextBlock can be added in view.

Thank You.


shah


Hi also check these links please Passing parameters to View-Model from View with command.

Pass-trough touch detection through transparent part of image

$
0
0

I am building a Windows 8.1 app, using C#/XAML, and have many images in the screen, all different shapes, partially transparent. They all handle the tapped() and manipulation events.

When the user touches the images, the touch is detected on the topmost element, even if the user touches the transparent part of the image. I don't want that to happen. I would like the touch event to 'pass-through' an image if the user is touching the transparent part, and then the image below catches the event.

I have not been able to do that.

1) I've looked at this post, but the code does not compile:

http://stackoverflow.com/questions/4800597/wpf-detect-image-click-only-on-non-transparent-portion

2) I've tried detecting in the tapped() function if the user is touching transparent part of the image, and then set e.Handled=false, but then there is no other image behind it that gets any tapped() calls.

Any suggestions?

Thank you

-B


el_ber

Moving a StorageFile throws COMException

$
0
0

Hi all!

I am developing an Windows 8.1 app, which interacts with Windows filesystem and all folders are correctly added to FutureAccessList.

I am copying a StorageFile to some folder like this:

await file.CopyAsync(destinationFolder, newFileName, NameCollisionOption.ReplaceExisting);

Then I am trying to move exactly the same file with exactly the same name into exactly the same folder (after a while and in another method) like this:

await file.MoveAsync(destinationFolder, newFileName, NameCollisionOption.ReplaceExisting);
This method raises following COMException:
Error HRESULT E_FAIL has been returned from a call to a COM component.
I have no clue why this takes place, except some kind of bug in CopyAsync internally, maybe, that method doesn't release the copy or somewhat else. Please, describe this strange behavior.



Fault Exeption 1

$
0
0

I got this error faultException1. i got no idea what wrong with it.

My web service code

public interface IService
{

[OperationContract]
string GetData(int value);

[OperationContract]
CompositeType GetDataUsingDataContract(CompositeType composite);

// TODO: Add your service operations here
    [OperationContract]
    string GetEbook(string eTitle);
}

public class Service : IService
{
    public string GetData(int value)
    {
        return string.Format("You entered: {0}", value);
    }

    public CompositeType GetDataUsingDataContract(CompositeType composite)
    {
        if (composite == null)
        {
            throw new ArgumentNullException("composite");
        }
        if (composite.BoolValue)
        {
            composite.StringValue += "Suffix";
        }
        return composite;
    }
    public string GetEbook(string eTitle)
    {
        string connString = ConfigurationManager.ConnectionStrings["LibraryDB"].ToString();
        string etitle = "Blank";
        try{
            using (SqlConnection conn = new SqlConnection(connString))
            {
                using (SqlCommand myCommand = new SqlCommand("select eTitle from eBook", conn))
                //using (SqlCommand myCommand = new SqlCommand("select eTitle from eBook where eBookID ='" + ebookid + "'", conn))
                {
                    conn.Open();
                    SqlDataReader myReader = myCommand.ExecuteReader();
                    while (myReader.Read())
                    {
                        etitle = myReader[0].ToString();
                    }
                    myReader.Close();
                    conn.Close();
                }
            }

        }
        catch(SqlException ex)
        {
            if (ex.Data !=null)
            { etitle = "Not found";}
        }

        return etitle;
    }

My Windows Phone App code 

private void Button_Click(object sender, RoutedEventArgs e)
        {
            string eTitle = "Windows";
            ServiceReference1.ServiceClient ebookSvc = new ServiceReference1.ServiceClient();
            ebookSvc.GetEbookCompleted += ebook_getEbookCompleted;
            ebookSvc.GetEbookAsync(eTitle);

        }

        void ebook_getEbookCompleted(object sender, ServiceReference1.GetEbookCompletedEventArgs e)
        {
            if (e.Error != null)
            { MessageBox.Show(e.Error.ToString()); }
            else
            {
                tbTitle.Text = e.Result.ToString();
            }

          
        }


system.AccessviolationException in wp8 c# while trying to retrieving phone number

$
0
0

Hi,

I am trying to retrieve phone number from device to export to excel sheet. But phone number and email id is getting in Emmulator but it is not comming at ARM (Release) showing exception System.AccessViolationException.

Here is my code.

try
            {
                count = e.Results.Count();
                var list = e.Results;
                if (count != null)
                {
                    foreach (var li in list)
                    {
                        AllContacts cont = new AllContacts();
                        cont.displayname = li.DisplayName;
                        cont.firstname = li.CompleteName.FirstName;
                        cont.lastname = li.CompleteName.LastName;
                        var phonenum = li.PhoneNumbers.FirstOrDefault();
                        cont.phonenumber = li.PhoneNumbers.ElementAt(0).PhoneNumber;
                        cont.email = li.EmailAddresses.ElementAt(0).EmailAddress;
                        string workemail = li.EmailAddresses.ElementAt(0).Accounts.ElementAt(0).Name;

                        contactsList.Add(cont);
                    }
                }
                ContactsCount.Text = Convert.ToString(count) + "/" + Convert.ToString(count);
            }
            catch (Exception ex) { MessageBox.Show(ex.InnerException.ToString()); }

Please help me to come out from this issue.

 

In-App Downloads with in-app storage

$
0
0

Hello everyone, I'm new in windows development. I want to sell design elements and themes in windows store but can't find a way to store files in windows app. Short of what I'm seeking - I want that people could download windows store app, preview files in it and save them to local machine. 

Maybe there is some samples?

Thank you!

consruction intializaion error,please help

$
0
0

using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Windows; using System.Windows.Controls; using System.Windows.Navigation; using Microsoft.Phone.Controls; using Microsoft.Phone.Shell; using PhoneApp2.Resources; using Windows.Networking.Connectivity; namespace PhoneApp2 { public partial class MainPage : PhoneApplicationPage { // Constructor CellularApnContext cellularApncontext; public MainPage() { InitializeComponent(); // Sample code to localize the ApplicationBar //BuildLocalizedApplicationBar(); } protected override void OnNavigatedTo(NavigationEventArgs e) { base.OnNavigatedTo(e); cellularApncontext =new CellularApnContext();/*the type "windows.networking.connectivity.cellularapncontext' has no constructors defined-IS THE ERROR */ } } }

when I try to intialize cellularapncontext using above its showing- The type "windows.networking.connectivity.cellularapncontext' has no constructors defined



How to i make my longlistselector clickable?

$
0
0

How to i make my longlistselector clickable?

i want to hyberlink each of the unique item to different URI. 

How do i do that?

Create and Move Eclipse as value change in TextBlock

$
0
0

Hi

I am working on app in which I have to change the position of Eclipse  as value in text-block change. For this I create eclipse in Programmatically but it not appearing on design when I run the application 

   

private void Ellispse() { Ellipse nn = new Ellipse(); nn.Height = 145; nn.Width = 145; //nn.Margin.Left = 164; //nn.Margin.Top = 44; CompositeTransform ct = new CompositeTransform(); ct.CenterX = 100; ct.TranslateX = 66; nn.RenderTransform = ct; nn.Margin = new Thickness(164, 44, 0, 0); MoonGrid.Children.Add(nn); }

Calling this method on page load event


How to move Video from Isolated Storage to SD card wp8

$
0
0

hi,

I want to move Downloaded Video from Shared/Transfer to Phone Video.

Passing QueryString Using XAML in windows phone 8

$
0
0

Dear Community members can you please tell me if there is any way to pass the query string between two pages using XAML when i press a button.. i know to do this using Click Event in my back End C# File.. but i want to know that is it possible by using only XAML of a button?

 Here is my code which im using to navigate to other page , its working properly but im unable to send query string through this..

<Button Content="Button" FontFamily="Portable User Interface" Foreground="IndianRed"><i:Interaction.Triggers><i:EventTrigger EventName="Click"><ec:NavigateToPageAction TargetPage="/Page2.xaml"/></i:EventTrigger></i:Interaction.Triggers></Button>

here is my page2 method that is expecting  query string from page1

protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);

            string msg = "";

            if (NavigationContext.QueryString.TryGetValue("msg", out msg))
            {
                MessageBox.Show(msg);

            }

Please note that i want to do this using XAML code of my Button only, not in backend C# event of that Button


Why does RenderTargetBitmap.RenderAsync() keep throwing ArgumentException?

$
0
0

Hi, I am using RenderTargetBitmap to capture a snapshot of a UIElement in WinRT and save the image file, but the RenderTargetBitmap.RenderAsync() keeps throwing ArgumentException. Below is the code snipet:

            RenderTargetBitmap renderTargetBitmap = new RenderTargetBitmap();
            await renderTargetBitmap.RenderAsync(this.RootGrid);

in which, RootGrid is the root Grid of current page. The Grid cantais three ListViews and some other stuff. The error message is:

A first chance exception of type 'System.ArgumentException' occurred in mscorlib.dll
Additional information: Value does not fall within the expected range.

I've done lots of search, but can't find one workaround.

Any idea would be appreciated!


ProjectionManager.StartProjectingAsync throws ArgumentException

$
0
0

Projection sample app: https://code.msdn.microsoft.com/Projection-sample-526b3c1d/view/Discussions

I have downloaded this sample app and am getting the below exception.  I have tried with multiple types of monitors.  I also had a colleague download and run the sample, and he also received the same exception; so to validate on another Win8.1 system.  What may be causing this?

Scenario1.xaml.cs - Line 71 :

await ProjectionManager.StartProjectingAsync(rootPage.ProjectionViewPageControl.Id, thisViewId);

Throws:

{System.ArgumentException: Value does not fall within the expected range.
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   at Projection.Scenario1.<StartProjecting_Click>d__3.MoveNext()}

Visual Studio 2013 For Windows Designer not loading

$
0
0

I was Working when all of a sudden  the designer gave me an Error. I Restarted windows, Repaired the installation of VS2013 and even Re installed windows 8.1 and still the same old Error. This happens even if a create a new project.

here are the long error Details:

System.Runtime.InteropServices.COMException
Error HRESULT E_FAIL has been returned from a call to a COM component.
   at Windows.Foundation.IAsyncOperation`1.GetResults()
   at Microsoft.Expression.WindowsXamlPlatform.Views.RuntimeResourceManager.GetStorageFileForPath(String indexPath)
   at Microsoft.Expression.WindowsXamlPlatform.Views.RuntimeResourceManager.ProcessIndexUpdates()
   at Microsoft.Expression.WindowsXamlPlatform.Views.RuntimeResourceManager.OnNewIndex(String newFileName, String newResourceMapName)
   at Microsoft.Expression.WindowsXamlPlatform.Views.XamlUIPresenterHostServices.OnResourceIndexUpdated(HostResourceIndexUpdatedEventArgs args)
   at Microsoft.Expression.WindowsXamlPlatform.Views.WindowsUIXamlResourceIndexProvider.OnResourceIndexUpdated(EventArgs args)
   at Microsoft.Expression.DesignSurface.DesignerService.CreateDesigner(IHostSourceItem item, IHostTextEditor editor, CancellationToken cancelToken)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.<>c__DisplayClass13.<Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner>b__12(CancellationToken cancelToken)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.<>c__DisplayClass3`1.<MarshalInWithCancellation>b__2()
   at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()

System.Runtime.InteropServices.COMException
Error HRESULT E_FAIL has been returned from a call to a COM component.

Server stack trace: 
   at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContext nestedCallContext, BlockingCall call, WaitHandle timeoutSignal)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalInSynchronous(Action action, Int32 targetApartmentId, CancellationToken cancelToken, CallModality callModality, String methodName, String filePath, Int32 lineNumber)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalIn(Action action, Int32 targetApartmentId, CancellationToken cancelToken, CallSynchronizationMode syncMode, CallModality callModality, String methodName, String filePath, Int32 lineNumber)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalIn(IRemoteObject targetObject, Action action, CancellationToken cancelToken, CallSynchronizationMode syncMode, CallModality callModality, ApartmentState apartmentState, String memberName, String filePath, Int32 lineNumber)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.MarshalInWithCancellation[TResult](IRemoteCancellationToken remoteToken, Func`2 func, ApartmentState apartmentState)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner(IRemoteHostProject remoteProject, IRemoteHostSourceItem remoteItem, IRemoteHostTextEditor remoteEditor, IRemoteCancellationToken remoteToken)
   at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)

Exception rethrown at [0]: 
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner(IRemoteHostProject remoteProject, IRemoteHostSourceItem remoteItem, IRemoteHostTextEditor remoteEditor, IRemoteCancellationToken cancelToken)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.CreateDesignerImpl(IRemoteDesignerService ds, IHostSourceItem item, IHostTextEditor editor, RemoteCancellationToken remoteCancelToken)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.<>c__DisplayClass19.<Microsoft.Expression.DesignHost.IDesignerService.CreateDesigner>b__18(IRemoteDesignerService ds, RemoteCancellationToken remoteToken)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.<>c__DisplayClass5`1.<MarshalOutWithCancellation>b__4(IRemoteDesignerService ds)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.<>c__DisplayClass1`1.<MarshalOut>b__0()
   at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()

System.Runtime.InteropServices.COMException
Error HRESULT E_FAIL has been returned from a call to a COM component.
   at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContext nestedCallContext, BlockingCall call, WaitHandle timeoutSignal)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOutSynchronous(Action action, Int32 targetApartmentId, WaitHandle aborted, WaitHandle timeoutSignal, CancellationToken cancelToken, String methodName, String filePath, Int32 lineNumber)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOut(Action action, Int32 targetApartmentId, WaitHandle aborted, CancellationToken cancelToken, CallSynchronizationMode syncMode, WaitHandle timeoutSignal, String methodName, String filePath, Int32 lineNumber)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut[TValue](RemoteHandle`1 targetObject, Action action, CancellationToken cancelToken, CallSynchronizationMode syncMode, ApartmentState apartmentState, String methodName, String filePath, Int32 lineNumber)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut[TValue](RemoteHandle`1 targetObject, Action`1 action, CancellationToken cancelToken, CallSynchronizationMode syncMode, ApartmentState apartmentState, String methodName, String filePath, Int32 lineNumber)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.MarshalOutWithCancellation[TResult](CancellationToken cancelToken, Func`3 func, ApartmentState apartmentState)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.Microsoft.Expression.DesignHost.IDesignerService.CreateDesigner(IHostSourceItem item, IHostTextEditor editor, CancellationToken cancelToken)
   at Microsoft.Expression.DesignHost.IsolatedDesignerService.IsolatedDesignerView.CreateDesignerViewInfo(CancellationToken cancelToken)



----

Thank you!!


Rogelio Rios

How to access MainPage.xaml controls from another page

$
0
0

i have an image element in the MainPage.xaml and a flyout in SettingsContract1.xaml, when the flyout item is clicked the filepicker is opened and i want to set them image source of the image in the Mainpage with the file picked from the filepicker. How can i access the image from SettingsContract1.xaml

image in MainPage.xaml

<Image x:Name="img" HorizontalAlignment="Left" Height="332" VerticalAlignment="Top" Width="778" Margin="349,406,0,0"/>

menuflyout sub in SettingsContract1.xaml.vb

Private Sub chooseFile_Click(sender As Object, e As RoutedEventArgs) Handles chooseFile.Click
    Dim filePicker As FileOpenPicker
    filePicker = New FileOpenPicker()
    filePicker.ViewMode = PickerViewMode.Thumbnail
    filePicker.SuggestedStartLocation = PickerLocationId.PicturesLibrary
    filePicker.FileTypeFilter.Add(".png")
    Dim file As StorageFile = Await filePicker.PickSingleFileAsync()

    Using filestream As Streams.IRandomAccessStream = Await file.OpenAsync(FileAccessMode.Read)
        Dim bitmapImage As Windows.UI.Xaml.Media.Imaging.BitmapImage = New BitmapImage
        bitmapImage.SetSource(filestream)
        img.Source = bitmapImage 'gives an error
    End Using

End Sub

Implementing pull to refresh behaviour

$
0
0

I am trying to implement pull to refresh behaviour similiar to how it has been implemented in the Windows Phone Facebook app.

I am able to get triggering and animation behaviour using manipulation deltas but I cannot see how to have the ListView hide the refresh symbol above the top element.

What is the recommended way to achieve this?

Viewing all 7782 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>