How to disable the scrollview in LongListSelector in windows phone 7

How to disable the scrollview in LongListSelector in windows phone 7

By : Ryan Burns
Date : November 18 2020, 11:13 AM
I hope this helps you . You can disable scroll by setting the height of LongListSelector(LLS) more than the height of all your Items. You can set a maximum height to your LLS to avoid scrolling.
Having a LLS inside a ScrollViewer is not a good practice, both the scrolls will fight for their input events and result will not be as expected.
code :
            <StackPanel Name="Panel1"></StackPanel>
            <StackPanel Name="Panel2"></StackPanel>

Share : facebook icon twitter icon
windows phone 7 button in longlistselector

windows phone 7 button in longlistselector

By : user2869724
Date : March 29 2020, 07:55 AM
it fixes the issue I wouldn't take it for granted that the long list selector performs better than the listbox. The listbox uses a virtualizing stack panel when binding is involved and is pretty performant. I went down the road of using the list picker from the toolkit and ended up regretting it due to some bad performance problems. If it works with the listbox I'd say stick with the listbox and only move away if you find you have perfomance issues in the future.
How to disable a category in the popup grid of a longlistselector for windows phone

How to disable a category in the popup grid of a longlistselector for windows phone

By : Nguyễn Văn Cường
Date : March 29 2020, 07:55 AM
it fixes the issue Just bind your variable to IsHitTestVisible property of the main element in your GroupItemTemplate. Just like that:
code :
    <Border IsHitTestVisible="{Binding CategoryHasItems}">
        <TextBlock Text="{Binding CategoryTitle}"/>
How to Sort a LongListSelector in Windows Phone

How to Sort a LongListSelector in Windows Phone

By : American IT Help
Date : March 29 2020, 07:55 AM
it should still fix some issue Replace Recent.ItemsSource = App.PictureList.Pictures.OrderBy(x => x.DateTaken) as System.Collections.IList;
by Recent.ItemsSource = App.PictureList.Pictures.OrderBy(x => x.DateTaken).ToList()
Windows Phone 8.1 LongListSelector with Images

Windows Phone 8.1 LongListSelector with Images

By : user2728929
Date : March 29 2020, 07:55 AM
hope this fix your issue Use a Conveter
Assuming the assembly name of the phone project is: PhoneApp1
code :
using System;

namespace PhoneApp1.Converters
   using System.Globalization;
   using System.IO;
   using System.Windows.Data;
   using System.Windows.Media.Imaging;

public class ByteToImageConverter : IValueConverter
    public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        var data = value as byte[];

        if (data != null)
            using(var stream = new MemoryStream(data))
                var bitmapImage = new BitmapImage();
                return bitmapImage;
        return null;

    public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        throw new NotImplementedException();
<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <converters:ByteToImageConverter x:Key="ByteToImageConverter" />
       <phone:LongListSelector x:Name="lstTiles">
                    <Grid Margin="5,5,5,5" Background="{StaticResource PhoneAccentBrush}">
                        <Grid VerticalAlignment="Center" HorizontalAlignment="Center">
                            <Image Height="70" Width="70"  Margin="10,0,0,0" Source="{Binding Image, Converter={StaticResource ByteToImageConverter}}">
                        <StackPanel VerticalAlignment="Bottom" HorizontalAlignment="Center">
                            <TextBlock Margin="5,5,5,5" TextTrimming="WordEllipsis" TextWrapping="NoWrap" Text="{Binding Title}"></TextBlock>
 public partial class MainPage : PhoneApplicationPage
    // Constructor
    public MainPage()


    private void BindTiles()

        var data = new[]
            new AppTitle { Title = "Tile 1", Image = sampleRandomImageBytes }, new AppTitle { Title = "Tile 2", Image = sampleRandomImageBytes },
            new AppTitle { Title = "Tile 3", Image = sampleRandomImageBytes }, new AppTitle { Title = "Tile 4", Image = sampleRandomImageBytes }

        lstTiles.ItemsSource = data;

public class AppTitle
    public string Title { get; set; }

    public byte[] Image { get; set; }
LongListSelector grouping using CollectionView in Windows Phone 7 or Windows Phone 8

LongListSelector grouping using CollectionView in Windows Phone 7 or Windows Phone 8

By : Waigh
Date : March 29 2020, 07:55 AM
With these it helps It doesn't support ICollectionView by design. The control expects that a group implements IEnumerable which CollectionViewGroup doesn't. CollectionViewGroup is the base class for all ICollectionView groups.
So you have to make a wrapper around ICollectionView to provide support for the interfaces LongListSelector expects or modify the LongListSelector source code.
Related Posts Related Posts :
  • Why does C# also not allow empty conditions in while loops?
  • Unable to get a block of code into my regex match groups
  • What is difference between dbcontext.Add and dbcontext.AddObject
  • How do I update the file version number of C# DLL without recompiling?
  • Value for html control always null
  • HttpClient hangs when timeout is setting (Windows Phone)
  • Handle Multiple Form tag in asp.net page?
  • create word document with html content in c#
  • Confusion about Find And Replace
  • Format sms messages in Clickatell
  • Automated Function Overload
  • String to date in MS Access SQL statement gives type mismatch error
  • ShowDialog exiting on certain events
  • Is there a try Convert.ToInt32... avoiding exceptions
  • How to move wpf application into minimize tray at Window Start-up C#?
  • How to change display format of long variable?
  • How to use Addfields in MongoDB C# Aggregation Pipeline
  • MsTest TestCleanup method not called when an unhandled exception is thrown
  • missing last data when exporting gridview to excel
  • How to add array of objects to List in c#
  • Lambda Expression to order (sort) my list collection
  • Library for displaying music notation
  • How to compare two dictionaries in c# and get the output as True and False after validation
  • specify fields to be serialized with JSON
  • How do you obtain the content of a specific node using XmlDocument in C#?
  • How to ignore the first line in a csv file when you read the csv file in C#
  • c# - Problem calling public void from class
  • How to tell a class which objects it should create? Type vs. object confusion :(
  • Save CheckBox state to xml
  • WIX CAQuietExec NETSH Command Fails
  • Issues sending http put request every 60 seconds to RoR app
  • ConfigurationManager.ConnectionStrings.ConnectionString Issue
  • Real size WPF controls for printing
  • How to cancel properly?
  • C# String multiplication error
  • Using Solrnet and Assigning Attributes with Entity Framework Generated POCOs
  • Regex pattern for single backslash
  • TextBox: insert spaces for credit card number?
  • C# DLL loaded for exe-application is not found when launching similar DLL by rundll32.exe
  • Debug a Windows Service with WCF library
  • Open a file from an external assembly?
  • Servicestack RegistrationFeature Unable to bind request
  • Index was outside the bounds of the array confusion
  • Error in Xml to List code. The ':' character, hexadecimal value 0x3A, cannot be included in a name
  • I am trying to do a while loop with a string conditional statement in C#
  • C# 'Cannot access a disposed object. Object name: 'SslStream'.'
  • How to make Gecko use seperate CookieContainer per instance?
  • C# Advanced form "please wait"
  • Send and Receive data C# using network stream
  • How to discover that appsettings changed in C#?
  • Check what needs full trust
  • What is the execution order of an MVC Razor view/layout
  • Table designer (Entity Framework) is too resource intense
  • How to clean up an exception string so it can be displayed via Javascript Alert?
  • Configuring Amazon SES Feedback Notifications via Amazon SNS in ASP.NET MVC (C#)
  • C# api responce and request
  • Dynamodb putitem function not working properly
  • theme in windows phone(light or dark) using c#
  • Backup attached database file(.mdf) using c# and SQL Server
  • What is 'TextFile' and where it is uses in WPF project
  • shadow
    Privacy Policy - Terms - Contact Us © ourworld-yourmove.org