cimbalino / cimbalino-phone-toolkit Goto Github PK
View Code? Open in Web Editor NEWCimbalino Windows Phone Toolkit
License: MIT License
Cimbalino Windows Phone Toolkit
License: MIT License
Is that possible?
Hi,
Just noticed a small issue: you have lots of links in a lots of places, which are forwaring to https://github.com/Cimbalino/Cimbalino-Phone-Toolkit/downloads
Though, it holds some outdated versions.
What about adding GoForward method and CanGoForward property to INavigationService?
Using the test AppId a476ab62-44b4-4cca-9763-e7e064a1cc26
XML deserialization fails due to empty DateTime nodes
App is for WP 7.1, using Cimbalino 3.1.0.
Just noted this stuff:
http://clip2net.com/s/5QFyF9
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:
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.
Please, add corresponding async methods which available in WP8 version of Cimbalino by adding dependency to Microsoft.Bcl.Async.
Screenshot: http://clip2net.com/s/61VijK
Using it like:
private readonly IPhoneNumberChooserService phoneNumberChooserService;
And then define it as c-tor parameters.
What drives me crazy is that it worked several weeks ago, when i was implementing it.
Actually, not an issue, just a reminder question.
Any updates on this field?
http://stackoverflow.com/questions/15987564/cimbalino-appbar-pivot-with-usercontrols/15987678
Short reminder: while having MainPivot with UserControls as PivotItems, it would be nice to define appbar inside UserControls. Or, at least, inside of pivot item. But not in the main page itself.
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?
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
At the moment MarketplaceInformationService returns correct application version even there is no internet connection, but it was some time ago. Probably it is because of WebRequest aggresive cache on WP7, see http://stackoverflow.com/questions/4461610/wp7-httpwebrequest-without-caching for details.
Invoke method of MessageBoxAction is not implemented, so it doesn't work
Please, add property dependency for SystemTrayService for show/hide controls binding to isvisible, enable/disable controls if SystemTrayService is show.
Thanks
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
The above screenshot is through Blend 2012 with a WP8 project.
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.
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.
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.
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.
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
Looks like that property bound with your nice control does not get updated if the model is updated
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;
}
}
If trying to update the tile data, you can't do something like this http://developer.nokia.com/Community/Wiki/How_to_stop_a_live_tile_from_flipping as there is no overload to take a string.
At first, i tried to use a "clone to esctop" button, but github app returned me an error like this: http://clip2net.com/s/5nynJB
I assume, something is wrong with settings, because i definitely have internet connection :)
Then, i tried "download zip", but after opening, i saw that wp7 projects are not loaded. I removed and added project again (Toolkit WP7) , and got this error: http://clip2net.com/s/5nyrdW
Remove leading "{" and ending "}" chars from ProductId before creating and using service url.
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
It is possible to add?
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
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?
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.
MarketplaceAppImageNode.ParseXml(reader) fails when the element is empty.
Reported by Lestyn Jones (twitter handle: bugail)
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]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.