Giter Club home page Giter Club logo

cimbalino-phone-toolkit's People

Contributors

brunomlopes avatar pedrolamas avatar rikkit avatar scottisafool avatar semihokur avatar xperiandri avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cimbalino-phone-toolkit's Issues

No Intellisense hint for a single appbar MenuItems

I have an appbar with a BarIconButton:

<i:Interaction.Behaviors>
    <cimbalino:ApplicationBarBehavior
        BackgroundColor="{StaticResource MyAppBarBackgroundColor}" 
        ForegroundColor="{StaticResource MyAppBarForegroundColor}" 
        Opacity="0.99">

        <cimbalino:ApplicationBarIconButton 
            Text="Proceed"
            IconUri="/Resources/Icons/appbar.check.rest.png"
            Command="{Binding ProceedCommand}"
            IsEnabled="{Binding IsBusy, Converter={StaticResource BooleanInversedConverter}}"
            />

    </cimbalino:ApplicationBarBehavior>
</i:Interaction.Behaviors>

Now, i want to add a MenuItem there. I'm setting a cursor at the next line after ApplicationBarIconButton, start typing <cimbalino and Intellisense offers me 2 possibilities:

  • ApplicationBarMenuItem (after adding, highlights it with "invalid type: ApplicationBarItemBase is expected, actual is ApplicationBarMenuItem")
  • ApplicationBarIconButton (which works fine, but i need MenuItem)

After some googling, i found a correct solution

       <cimbalino:ApplicationBarBehavior.MenuItems>
            <cimbalino:ApplicationBarMenuItem>

            </cimbalino:ApplicationBarMenuItem>
        </cimbalino:ApplicationBarBehavior.MenuItems>

However, looking like this thing can be improved.
I'm using a wp7 project with MSVS 2012 Pro.

DeviceInfo nuget package depends on main toolkit

Even though it doesn't actually need it, the dependency is there which prevents this package from being used in a background agent. If there is a dependency needed, surely it's with the Background package?

Can't get value in MultiBindingBehavior

I used MultiBindingBehavior in wp7.5,
the xaml is here:

            <ListBox Height="510" Name="lb1">
                <ListBox.ItemTemplate>
                    <DataTemplate>
                        <StackPanel Width="432" Orientation="Horizontal">
                            <TextBlock TextWrapping="Wrap" Text="{Binding name}" FontSize="32" Width="200" x:Name="t12" />
                            <TextBlock TextWrapping="Wrap" Text="{Binding number,Mode=TwoWay}" FontSize="32" Margin="0" x:Name="t11" DataContext="{Binding}">
                                    <i:Interaction.Behaviors>
                                        <cimbalinoBehaviors:MultiBindingBehavior Converter="{StaticResource ColorConverter}" PropertyName="Foreground" >
                                            <cimbalinoBehaviors:MultiBindingItem Value="{Binding name}" />
                                            <cimbalinoBehaviors:MultiBindingItem Value="{Binding ElementName=listpicker1, Path=SelectedItem.Content}" />                                                
                                        </cimbalinoBehaviors:MultiBindingBehavior>
                                    </i:Interaction.Behaviors>
                            </TextBlock>
                        </StackPanel>
                    </DataTemplate>
                </ListBox.ItemTemplate>                 
            </ListBox>

but in "public override object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)", the values[0] is null...

how can I get the value in databinding?

Thinks

Windows Phone 8 looses ability to do everything through Blend Designer

Hi
I was playing around with the Cimbalino app toolbar first in Windows phone 7 and then in Windows Phone 8. I noticed that Windows Phone 8 last some functionality

screenshot001

The above screenshot is through Blend 2012 with a WP8 project.

screenshot002

Now the above is the same area but now a WP7 project. It can't find any of the behavior stuff.

I really like using the designer to do it. Would be great if this got fixed and worked again.

On change of AppBar buttons, button that bound to a command that can't be executed is not disabled

Imagine that we have 3 buttons on AppBar (Start, Pause and Reset)
Start and Reset are visible
All buttons bound to commands
Reset command can't be executed
When I click on Start button, it become invisible while Pause becomes visible. Reset still can't be executed. AppBar updates. Everything is OK.
Then I click on Pause button, it becomes invisible while start button becomes visible. Reset becomes executable.
Then I click on Start button and everything works the same, except Reset button is not disabled now while command definitely is not executable in this case!

So I guess that there is a bug where when buttons become visible and invisible and AppBar updates, it does not disable buttons that must be disabled because of command can't be executed.

Error Installing Cimbalino

Trying to install this in Visual Studio 2012. I need the extensions for us of MD5. I get the following error:

You are trying to install this package into a project that targets 'portable-win+net45+wp80', Attempting to resolve dependency 'Cimbalino.Phone.Toolkit.Background (≥ 3.2.3)'.
Installing 'Cimbalino.Phone.Toolkit.Background 3.2.3'.
Installing 'Cimbalino.Phone.Toolkit 3.2.3'.
Successfully installed 'Cimbalino.Phone.Toolkit 3.2.3'.
Adding 'Cimbalino.Phone.Toolkit.Background 3.2.3' to Project.Common.
Uninstalling 'Cimbalino.Phone.Toolkit.Background 3.2.3'.
Successfully uninstalled 'Cimbalino.Phone.Toolkit.Background 3.2.3'.
Install failed. Rolling back...
Could not install package 'Cimbalino.Phone.Toolkit.Background 3.2.3'. You are trying to install this package into a project that targets 'portable-win+net45+wp80', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

Issue with AutoFocusBehavior

Ok, this is serious.

I have a pivot with 2 pivotitems: textbox (TabIndex = 10) + passwordbox (TabIndex = 11) on first, textbox (TabIndex = 20)+ 2 passwordboxes (TabIndex = 21,22) on second.

When i'm changing pivot items, i'm also setting corresponding IsTabStop for all boxes to true/false.

However, when i'm at second pivot page, when i'm selecting first textbox and press Enter, it switches to passwordbox from pivot 1.

The only workaround i found so far is to set not IsTabStop, but IsEnabled. Though, i dont like it, because while starting transition between pivots, boxes are invisible.

I dont have enough time for now to make a demo right now, i'll make it closer to the end of this week.

MarketplaceInformationService.WebRequestEndGetResponse throws System.Xml.XmlException

Sometime this code throws an exception:

                var _informationService = new MarketplaceInformationService();
                var result = await _informationService.GetAppInformationAsync();

The exception message is: System.Xml.XmlException: '�', hexadecimal value 0x1F, is an invalid character. Line 1, position 1.

Unfortunately I am not able to reproduce this error but it happens to 28% of my users app

Multibinding issue

Looks like that property bound with your nice control does not get updated if the model is updated

Appbar doesn't change when theme is selected within the app

If you change the app theme in runtime (e.g using Jeff Wilcox thememanager) the appbar behavior don't change to the new theme. I Implemented the following on my apps if you want to add it ;)

public class ThemeAwareApplicationBarBehavior : ApplicationBarBehavior
{
public ThemeAwareApplicationBarBehavior()
{
}

    protected override void OnAttached()
    {
        base.OnAttached();
        BackgroundColor = ApplicationResources.Instance.GetResource<SolidColorBrush>("PhoneChromeBrush").Color;
        ForegroundColor = ApplicationResources.Instance.GetResource<SolidColorBrush>("PhoneForegroundBrush").Color;
    }
}

Issue with Multibinding: ConvertBack()

I have an ItemsControl with the following ItemTemplate:

<ItemsControl.ItemTemplate>
    <DataTemplate>
        <Grid Width="40" Height="40">
            <Ellipse>
                <i:Interaction.Behaviors>
                    <cimbalinoBehaviors:MultiBindingBehavior Converter="{StaticResource PageIndicatorSizeConverter}" PropertyName="Width">
                        <cimbalinoBehaviors:MultiBindingItem Value="{Binding}" />
                        <cimbalinoBehaviors:MultiBindingItem Value="{Binding SelectedIndex, ElementName=CardsPivot}" />
                    </cimbalinoBehaviors:MultiBindingBehavior>
                    <cimbalinoBehaviors:MultiBindingBehavior Converter="{StaticResource PageIndicatorSizeConverter}" PropertyName="Height">
                        <cimbalinoBehaviors:MultiBindingItem Value="{Binding}" />
                        <cimbalinoBehaviors:MultiBindingItem Value="{Binding SelectedIndex, ElementName=CardsPivot}" />
                    </cimbalinoBehaviors:MultiBindingBehavior>
                </i:Interaction.Behaviors>
            </Ellipse>
        </Grid>
    </DataTemplate>
</ItemsControl.ItemTemplate>

You see I have an Ellipse where the Width and Height are dynamically determined by two values: one is the current DataContext and the other is the SelectedIndex of a Pivot control on the same page.
This is all working well.
But now I want to add a SizeChanged event handler to the Ellipse, in order to animate the Width and Height change. Here things go wrong, since the animation triggers the ConvertBack() method of the converter (which of course is not implemented). How can this be solved? The binding is supposed to be one way?

Thanks for a great toolkit,
bas-jan

System.NullReferenceException

I tried to bind the IsVisible property of an applicationbariconbutton to a property in a ViewModel but didn't work, so I then tried to control the visibility and it's IsEnabled property in the code behind but it throws a System.NullReferenceException and tells me to check to see if it null

Navigation Service Query Parameter Problem

Hi
I am not sure if this is an issue or limitation or what it is. I wanted to to grab a parameter while in the constructor but I don't seem to be able to do this.

public class MainViewModel : ViewModelBase
{

    private readonly INavigationService navigationService = null;
    public MainViewModel(INavigationService navigationService)
    {
        this.navigationService = navigationService;
        NavigateToPg2WithParmsCmd = new RelayCommand(() => NaviagateToPg2WithParms()); 
    }

    private void NaviagateToPg2WithParms()
    {

        navigationService.NavigateTo(new Uri("/Views/SecondPg.xaml?parameter=1&parm2=2", UriKind.Relative));
    }


    public RelayCommand NavigateToPg2Cmd
    {
        get;
        private set;
    }


    public RelayCommand NavigateToPg2WithParmsCmd
    {
        get;
        private set;

}       


    private readonly INavigationService navigationService = null;
    public SecondVM(INavigationService navigationService)
    {
        this.navigationService = navigationService;


        if (IsInDesignMode)
        {
            Message = "Design Mode";
        }
        else
        {
            if (navigationService.QueryString.ContainsKey("paramter"))
            {
                 Message = navigationService.QueryString["parameter"];
            }

        }

but it is always blank. Am I doing something wrong?

Using brushes in Cimbalino appbar

I have a quite large project and right now i'm sorting templates, styles, brushes, colors, etc.

I end up with idea to keep colors as they are
< Color x:Key="Black100Color">#000000

and keep brushes as they used
< SolidColorBrush Color="{StaticResource Black100Color}" x:Key="PressedStateWithOpacityMaskClearButtonBackgroundFillBrush"/>

In this way, i'd be able to deal with theming easily, just by setting another colors to the brushes.

Is it possible to use ColorBrush for cimbalino appbar, instead of colors? I dont think i'll customize it, but it is still good to keep things in the similar manner.

MultiBindingBehavior Crash In UWA

I use MultiBindingBehavior in xaml,but if run the project it`s crash.

xaml like this:

            <Grid Background="#e4e4e4" >
                <Interactivity:Interaction.Behaviors>
                        <Behaviors:MultiBindingBehavior
                            Converter="{StaticResource LessonLockVisibilityConverter}" 
                            PropertyName="Visibility"  >
                        <Behaviors:MultiBindingItem Value="{Binding order}" />
                  </Interactivity:Interaction.Behaviors>
            </Grid>

even crash like this:

            <Grid Background="#e4e4e4" >
                <Behaviors:MultiBindingBehavior/>
            </Grid>

error message:
Cannot deserialize XBF metadata type list as '%1' was not found in namespace '%0'. [Line: 0 Position: 0]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.