ricosuter / mytoolkit Goto Github PK
View Code? Open in Web Editor NEWMyToolkit for .NET
Home Page: http://mytoolkit.io
License: Microsoft Public License
MyToolkit for .NET
Home Page: http://mytoolkit.io
License: Microsoft Public License
... and FixedHtmlTextBlock to HtmlView
Hi,
I am a newbie to xaml and creating a windows universal application. For displaying the data from database I am Using DataGrid. I my application I have black background and font color is white.
In datagrid I don't know how to change the background color of alternate row as it shows white text on somewhat whitish background color which is very hard to read.
How should I change the alternate row color or disable it all together.
And AsyncRelayCommand to AsyncCommand
Hi,
I need to use DataGrid without order on columns.
Is is possible?
Thank you
var youtube = await YouTube.GetVideoUriAsync("e-ORhEE9VVg", YouTubeQuality.Quality720P);
if (youtube != null)
{
Uri t = youtube.Uri;
}
....
catch (Exception ex)
{
var dialog = new MessageDialog(ex.Message);
await dialog.ShowAsync();
}
"var youtube" has return a ""Invalid URI: The format of the URI could not be determined.".
Like these html code
<p style="font-size:16">P1</p>
<p style="font-size:18">P2</p>
will the control can support such style when translate the html to xaml?
Error CS0433 Type "HttpUtilityExtensions" exists in "MyToolkit.Extended, Version = 2.5.0.0, Culture = neutral, PublicKeyToken = null", and the "MyToolkit, Version = 2.5.0.0, Culture = neutral, PublicKeyToken = 3e349a1360994d26"
Add a way to add alternating row coloring in the DataGrid
hello,
i like the toolkit and especially the datagrid, does it also have editing and deleting features?
I used it for a uwp app,here is the html
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<link href="ms-appx-web:///Html/Styles.css" rel="stylesheet" type="text/css"/>
<script src="ms-appx-web:///Html/jquery.min.js" type="text/javascript"></script>
<meta name="copyright" content="(c)2003-2014 cnBeta.COM"/>
</head>
<body >
<div>
<p>来自华尔街日报的最新报道,任天堂代号为NX的下一代游戏机产品为了与Xbox One和PS4竞争,将采用“行业领先的芯片”。这则报道在谈到这款神秘的设备时说,任天堂表示明年会揭露更多产品细节。</p><div id="xunlei_com_thunder_helper_plugin_d462f475-c18e-46be-bd10-327458d045bd"></div>
</div>
<div>
<p><a href="http://static.cnbetacdn.com/article/2015/1016/e25c1ba8dcbc9c9.png" target="_blank"><img src="http://static.cnbetacdn.com/thumb/article/2015/1016/e25c1ba8dcbc9c9.png_600x600.png" title="C2787525-1ACF-4938-B0AE-489FA954DB92.png" alt="http://static.cnbetacdn.com/article/2015/1016/e25c1ba8dcbc9c9.png"/></a></p><p>实际上,这款设备的形态现在都还不是特别确定。华尔街日报表示,NX“很可能既包含一台主机,同时也至少会有一个移动设备,可以跟主机一起用,也可以出街的时候单独使用”。报道同时还提到,第三方开发者当前已经拿到了开发套装。</p><p>这一点倒并不令人意外,今年早前Square Enix就宣布《勇者斗恶龙XI》除了要登陆3DS和PS4之外,还会登陆NX。</p><p>现在还不清楚NX何时发布,各位任天堂的粉丝们是否对这款游戏机非常期待呢?</p><div id="xunlei_com_thunder_helper_plugin_d462f475-c18e-46be-bd10-327458d045bd"></div>
</div>
</body>
</html>
It can only show the first div content.will there a fix for it ,as i know, winrt xaml Paragraphs cannot contain paragraphs.is this the reason?
If you sort a grid that has a column width set to 0 it causes the column to be shown but no the header.
I am trying to use the adaptive UI to only show a few columns that will fit onto the screen. unfortunately if you click on the header to sort a column it seems to show all columns. I would like for a column width to stay what it was before it was sorted. I am trying to look through the source code to see the sorting method and see if I can fix it myself but I haven't found it just yet.
Steps to recreate
Found out it only happens when you rotate the device first.
Hi am developing universal windows 10 app in that i wanna play youtube videos.have used my toolkit extended package from Nuget manager.When i give my youtube video id getting
"No matching YouTube video or audio stream URI could be found. The video may not be available in your country, is private or uses RTMPE (protected streaming)."
while play in the web getting content warning and asked signin to check age restriction.How to solve this issues in uwp??
Hi,
I'm using DataGrid on Windows 10 core (raspberry) and get exceptions for each column.
My code:
<controls:DataGrid x:Name="DataGrid" Margin="10,144,20,10" ScrollViewer.VerticalScrollBarVisibility="Auto" controls:DataGridExtensions.UseSingleSelectionAndDeselection="True" DefaultOrderIndex="3">
<controls:DataGrid.Columns>
<controls:DataGridTextColumn Width="*" Header="Date" Binding="{Binding Created}" />
<controls:DataGridTextColumn Width="2*" Header="Action" Binding="{Binding Action}" />
<controls:DataGridTextColumn Width="3*" Header="Extra Info" Binding="{Binding ExtraInfo}" />
<controls:DataGridTextColumn Width="0" Header="." Binding="{Binding na}" />
</controls:DataGrid.Columns>
</controls:DataGrid>
Error: BindingExpression path error: 'Header' property not found on 'Windows.Foundation.IReference
1<String>'. BindingExpression: Path='Header' DataItem='Windows.Foundation.IReference
1'; target element is 'Windows.UI.Xaml.Controls.ContentPresenter' (Name='null'); target property is 'Content' (type 'Object')
I get 4 times this exception when DataGrid.ItemsSource = source;
.
I'm doing something wrong?
Thank you
Here is the collection my DataGrid is bound to:
private ObservableCollection<VoiceoverWorkOrderListItemViewModel> _voiceoverWorkOrders;
public ObservableCollection<VoiceoverWorkOrderListItemViewModel> VoiceoverWorkOrders {
get { return _voiceoverWorkOrders; }
}
private void DisposeVoiceoverWorkOrders() {
if (VoiceoverWorkOrders == null) return;
foreach (var woli in VoiceoverWorkOrders) {
woli.Model.PropertyChanged -= WorkOrderPropertyChanged;
woli.Dispose();
}
// exception occurs at this line
VoiceoverWorkOrders.Clear();
}
I am getting an exception on Clear:
System.NullReferenceException occurred
HResult=-2147467261
Message=Object reference not set to an instance of an object.
Source=MyToolkit.Extended
StackTrace:
at MyToolkit.Controls.DataGridRow.UpdateRowBackgroundBrush()
at MyToolkit.Controls.DataGridRow.set_IsSelected(Boolean value)
at MyToolkit.Controls.DataGrid.ChangeItemSelection(Object item, Boolean isSelected)
at MyToolkit.Controls.DataGrid.OnSelectionChanged(Object sender, SelectionChangedEventArgs e)
at MyToolkit.Collections.ObservableCollectionViewBase1.OnInternalCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e) at System.Collections.ObjectModel.ObservableCollection
1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
at MyToolkit.Collections.MtObservableCollection1.OnCollectionChanged(NotifyCollectionChangedEventArgs e) at MyToolkit.Collections.MtObservableCollection
1.Initialize(IEnumerable1 collection) at MyToolkit.Collections.ObservableCollectionViewBase
1.Refresh()
at MyToolkit.Collections.ObservableCollectionViewBase1.OnOriginalCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e) at MyToolkit.Collections.ObservableCollectionViewBase
1.b__11(ObservableCollectionViewBase1 subscriber, Object s, NotifyCollectionChangedEventArgs e) at MyToolkit.Events.WeakEvent.<>c__DisplayClass6
3.b__5(Object s, TArgs e)
at MyToolkit.Collections.ObservableCollectionViewBase1.<>c__DisplayClass16.<TrackCollection>b__10(Object o, NotifyCollectionChangedEventArgs e) at System.Collections.ObjectModel.ObservableCollection
1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
at System.Collections.ObjectModel.ObservableCollection1.ClearItems() at System.Collections.ObjectModel.Collection
1.Clear()
at SightAndSay.ViewModels.PurchasesViewModel.DisposeVoiceoverWorkOrders()
InnerException:
It is necessary to change the Click Handler to my own version
Hi,
Just updated MyTookit to 2.5.8 and when I double click the MyToolkit or MyToolkit.Extended in References its saying "This project cannot be viewed in the object browser because it is unavailable or not yet built. Please ensure that the project is available and built.'
I don't know whether its a problem with 2.5.8 or any missing setting on my end.
I am using it in a Windows Universal Application with Target version: Windows 10 (10.0;Build 10240) and Min version: Windows 10(10.0 Build 10240)
I need to declare the MtPivot without items at XAML level, because the actual content will be added at runtime. The problem is that the MtPivot throws an exception when there's no content (both in the XAML editor and once the code is running).
My workaround is pretty simple: Adding a dummy item in the XAML. Then, the runtime adds the desired MtPivotItems (two in my case), and finally removes the first one (the dummy).
That's not so bad, however I must trigger the item selection in some way, because the "SelectedIndex" is already zero, but the visual result is a mixture of both the items added. That is, once I click on any of the headers everything goes all right.
Well, simply I'd patch the possibility to remove all the items (will result an empty Pivot), and in that context the SelectedIndex should be set to -1.
I tested it only for UWP: I believe it should be pretty easy to reproduce.
Hello, since today the YouTube.GetVideoUriAsync
Get a url but when i browse it with chrome its a blank page and viewing the source return a blank file.
This seems to be happening with Vevo only.
Here is how i use the script: https://github.com/hesa2020/Hesa-Twitch-Bot/blob/master/HESA%20Twitch%20Bot/Managers/MusicManager.cs
Hopefully this will be fixed.
Thanks and i enjoy MyToolKit :D
There appears to be an issue with the search bar in the Hamburger Menu on Windows Phone 10. The search bar appears when the search button or hamburger button are tapped, and you can enter a search string. But tapping enter on the virtual keyboard or tapping the on-screen search button next to the search string textbox does not appear to do anything. The Hamburger Menu stays expanded and no navigation occurs. Registered events on the searchItem.QuerySubmitted event do not appear to fire.
Can confirm this behavior is occurring on the SampleUwpApp when deployed to Windows Phone 10 build 10581 deployed to a Lumia 920. This behavior does not appear to happen on a desktop deployment of the app.
Unfortunately there are no messages in the VS console when the search option is tapped. However, when the Hamburger Menu is first expanded, the following message does appear in the console. Note that this may be unrelated to this issue, and this message also appears on a desktop deployment.
Error: BindingExpression path error: 'Content' property not found on 'Windows.Foundation.IReference
1<String>'. BindingExpression: Path='Content' DataItem='Windows.Foundation.IReference
1'; target element is 'Windows.UI.Xaml.Controls.ContentPresenter' (Name='null'); target property is 'Content' (type 'Object')
Let me know if you need more info and I will do my best to get it for you.
Hello I like your toolkit and was planing on using it in a Windows 1o UWP app, to get some YouTube files from links.
I tried it in a windows 8 app and it works no problem but when i try it on windows 10 I get the following error.
'youtubetest.exe' (CoreCLR: CoreCLR_UAP_Domain): Loaded 'c:\users\kasper\documents\visual studio 2015\Projects\youtubetest\youtubetest\bin\x86\Debug\AppX\System.Text.RegularExpressions.dll'. Cannot find or open the PDB file.
'youtubetest.exe' (CoreCLR: CoreCLR_UAP_Domain): Loaded 'c:\users\kasper\documents\visual studio 2015\Projects\youtubetest\youtubetest\bin\x86\Debug\AppX\System.Net.Http.dll'. Cannot find or open the PDB file.
'youtubetest.exe' (CoreCLR: CoreCLR_UAP_Domain): Loaded 'c:\users\kasper\documents\visual studio 2015\Projects\youtubetest\youtubetest\bin\x86\Debug\AppX\System.Net.Primitives.dll'. Cannot find or open the PDB file.
'youtubetest.exe' (CoreCLR: CoreCLR_UAP_Domain): Loaded 'c:\users\kasper\documents\visual studio 2015\Projects\youtubetest\youtubetest\bin\x86\Debug\AppX\System.Private.Networking.dll'. Cannot find or open the PDB file.
'youtubetest.exe' (CoreCLR: CoreCLR_UAP_Domain): Loaded 'c:\users\kasper\documents\visual studio 2015\Projects\youtubetest\youtubetest\bin\x86\Debug\AppX\System.Net.Requests.dll'. Cannot find or open the PDB file.
'youtubetest.exe' (CoreCLR: CoreCLR_UAP_Domain): Loaded 'c:\users\kasper\documents\visual studio 2015\Projects\youtubetest\youtubetest\bin\x86\Debug\AppX\System.Collections.NonGeneric.dll'. Cannot find or open the PDB file.
'youtubetest.exe' (CoreCLR: CoreCLR_UAP_Domain): Loaded 'c:\users\kasper\documents\visual studio 2015\Projects\youtubetest\youtubetest\bin\x86\Debug\AppX\Internal.Net.dll'. Cannot find or open the PDB file.
Exception thrown: 'System.Net.Http.HttpRequestException' in mscorlib.ni.dll
My test code looks like this.
private async void getyoutube()
{
try
{
var Url = await YouTube.GetVideoUriAsync("Z - TQ98mRAiw", YouTubeQuality.QualityLow);
}
catch (Exception ex)
{
}
}
I want to get more information from id_ youtube. Could Mytoolkit get information about "likes_count" "deslike_count" on youtube?
Hi, can you tell me how do I change the default purple color of a selected row of a datagrid?
To make it visible system tray on mobile devices
Need to replace: (MyToolkit/src/MyToolkit.Extended.Uwp/UI/ApplicationViewUtilities.cs)
private static void OnVisibleBoundsChanged(FrameworkElement rootElement)
{
var visibleBound = ApplicationView.GetForCurrentView().VisibleBounds;
var windowHeight = Window.Current.Bounds.Height;
var difference = Math.Ceiling(windowHeight - visibleBound.Height);
rootElement.Margin = new Thickness(0, 0, 0, difference);
}
On:
private static void OnVisibleBoundsChanged(FrameworkElement rootElement)
{
var visibleBound = ApplicationView.GetForCurrentView().VisibleBounds;
var windowBound = Window.Current.Bounds;
var top = Math.Ceiling(visibleBound.Top - windowBound.Top);
var bottom = Math.Ceiling(windowBound.Bottom - visibleBound.Bottom);
rootElement.Margin = new Thickness(0, top, 0, bottom);
}
#38 Was originally posted and said to be fixed.
Indeed now we can run the grid with forground binding, but it's still not picking up the correct color.
Cfr the example in #38 when the bool is True the foreground should be red, but we are not getting any red items in the grid.
Even though the value converter is returning color red.
When using an Image or SymbolIcon tag inside a DataTemplate I get a null reference exception when adding members to the bound ObservableObject.
For example
<mytoolkit:DataGrid.Columns>
<mytoolkit:DataGridTextColumn Width="200" Binding="{Binding Title}" >
<mytoolkit:DataGridTextColumn.Header>
<TextBlock Text="Title" FontSize="12" />
</mytoolkit:DataGridTextColumn.Header>
</mytoolkit:DataGridTextColumn>
<mytoolkit:DataGridTemplatedColumn>
<mytoolkit:DataGridTemplatedColumn.CellTemplate>
<DataTemplate>
<Image Source="/images/bg01.jpg" Width="50" Height="50"/>
</DataTemplate>
</mytoolkit:DataGridTemplatedColumn.CellTemplate>
</mytoolkit:DataGridTemplatedColumn>
</mytoolkit:DataGrid.Columns>
sorry I couldn't get the indenting to show up properly
Hello its me again :).
I noticed the Nuget package does not include the Youtube.GetVideoTitleAsync
I was wondering if it was intended or a "bug".
In order to get this function i have to manually download and compile the code and include the dll in my project, would just be easier for me to use nuget manager to update the dll.
I have Universal App project:
MainPage.xaml.cs
Frame.Navigate(typeof(PostPage),(Post)Item);
PostPage.xaml.cs
private void hwPostContent_Loaded(object sender, RoutedEventArgs e)
{
hwPostContent.FontSize = PostFontSize;
hwPostContent.Html = PostHTML;
}
private void HardwareButtons_BackPressed(object sender, BackPressedEventArgs e)
{
e.Handled = true;
Frame.GoBack();
}
private void SettingsButton_Click(object sender, RoutedEventArgs e)
{
Frame.Navigate(typeof(SettingsPage));
}
PostPage.xaml
<mytoolkit:ScrollableHtmlView x:Name="hwPostContent" ShowHeader="True" Html="..." Loaded="hwPostContent_Loaded">
<mytoolkit:ScrollableHtmlView.HeaderTemplate>
<DataTemplate>
<TextBlock Text="Smth"/>
</DataTemplate>
</mytoolkit:ScrollableHtmlView.HeaderTemplate>
</mytoolkit:ScrollableHtmlView>
SettingsPage.xaml.cs
private void HardwareButtons_BackPressed(object sender, BackPressedEventArgs e)
{
e.Handled = true;
Frame.GoBack();
}
There is no problem:
There is a problem:
Error message:
System.ArgumentException: Value does not fall within the expected range.
at Windows.UI.Xaml.Controls.ContentPresenter.put_Content(Object value)
at MyToolkit.Controls.ScrollableHtmlView.UpdateHeader()
at MyToolkit.Controls.ScrollableHtmlView.OnApplyTemplate()
at Windows.UI.Xaml.Controls.ContentPresenter.put_Content(Object value)
at MyToolkit.Controls.ScrollableHtmlView.UpdateHeader()
at MyToolkit.Controls.ScrollableHtmlView.OnApplyTemplate()
FooterTemplate is causing the same error. There are no errors in both cases if PostPage.xaml looks like this:
<mytoolkit:ScrollableHtmlView x:Name="hwPostContent" ShowHeader="True" Html="..." Loaded="hwPostContent_Loaded"></mytoolkit:ScrollableHtmlView>
Any ideas?
Hi
I have been using an old version of MyToolKit, 2.3.17, and when I updated to the newest version one of my DataGrids has been causing a crash that wasn't present with the old version.
After debugging a bit I found out that this line
Items.Ascending = SelectedColumn.IsAscending;
in the UpdateOrder method in DataGrid.cs is causing the issue.
Looking at the DataGrid I noticed that all columns were of type DataGridTemplatedColumn and that seems to be the reason SelectedColumn is null.
Regards, Pálmar
I've added following datagrid to my UWP app:
<myToolkitControls:DataGrid ItemsSource="{x:Bind Vm.Locations, Mode=OneWay}"
SelectionMode="Single"
SelectedItem="{x:Bind Vm.SelectedLocation, Mode=TwoWay, Converter={StaticResource XBindItemCastingConverter}}">
<myToolkitControls:DataGrid.Columns>
<myToolkitControls:DataGridTextColumn Header="Straat"
Binding="{Binding StreetFormatted}"
Width="2*" />
<myToolkitControls:DataGridTextColumn Header="Stad / gemeente"
Binding="{Binding CityFormatted}"
Width="2*" />
<myToolkitControls:DataGridTextColumn Header="Afstand"
Binding="{Binding Distance}"
Width="*" />
</myToolkitControls:DataGrid.Columns>
</myToolkitControls:DataGrid>
So Widths are based on * but if you look at the screenshot below, you'll notice that the header values from column 2 and 3 are each shifted several pixels to the right in reference to the data inside the columns itself.
Any idea why?
When I build the project (UWP build 10563):
Microsoft.Net.CoreRuntime.targets(237,5): error MSB3030:
failed to copy a file"C:\Users\asd40.nuget\packages\MyToolkit.Extended\2.5.0\lib\uap10.0\MyToolkit.Extended\Libraries\DotNetZip\Changes.txt" - file not Found.
failed to copy a file"C:\Users\asd40.nuget\packages\MyToolkit.Extended\2.5.0\lib\uap10.0\MyToolkit.Extended\Libraries\DotNetZip\License.zlib.txt" - file not Found.
Please add file uploading progress to MyToolkit.Http if possible. This will really make the library complete. Thanks
I'm having scrolling issue with ScrollableHtmlView then setting a big amount of HTML. It's connected with usability. So then slowly scrolling up a huge HTML page in ScrollableHtmlView from the page bottom, it's randomly jumping to the top of the page, like there is nothing in between (finger should be "on the screen" while scrolling).
I've found there is #region Scroll jumping fix
in ScrollableItemsControl.cs
file applied to WP8 || WP7
. Maybe something similar for WinRT/WM10 is needed?
Hi,
First off, we're on 2.3.21, so this may be an issue that's fixed in the latest build. We're in the middle of a very large project, so we tend to wait until we've hit a relative stability peak before upgrading libraries.
In any event, we've found that the following is happening:
Page1.OnNavigatingFrom()
and Page1.OnNavigatedFrom()
are correctly calledFrame.GoBackAsync()
Page1.OnNavigatingFrom()
and Page1.OnNavigatedFrom()
are called.I think this behavior is incorrect: since we're navigating from Page2 to Page1, Page1.OnNavigatingFrom()
and Page1.OnNavigatedFrom()
shouldn't be called. Thoughts?
I am getting error message (Invalid URI: The format of the URI could not be determined.) when i tried to access the youtube URL "https://www.youtube.com/watch?v=7M_jHUawccI".
Can you please check this issue.
try
{
var url = await YouTube.GetVideoUriAsync("7M_jHUawccI", YouTubeQuality.Quality720P);
player.Source = url.Uri;
player.Play();
}
catch
{
//
}
I'm trying to use binding with a converter in a UWP app for the Forground property of DataGridTextColumn.
By using following code:
Foreground="{Binding IsPrio, Converter={StaticResource BoolToColorConverter}}"
I'm always getting following exception: WinRT information: Failed to assign to property 'MyToolkit.Controls.DataGridTextColumn.Foreground'
I've added a repro to test.
TestMyToolkitGrid.zip
Hi,
I am using HtmlView in the following manner
<myToolkitExtended:HtmlView
Style="{StaticResource ArticleHtmlStyle}"
FontSize="{Binding ElementName=articlePage, Path=DataContext.ArticleDetailBodyFontSize}"
Margin="12.8"
Html="{Binding Content}" />
While this work, modifying the ArticleDetailBodyFontSize does not have any effect on rendered html content. scrolling up or down forcing rendering uses the new / modified font size. how can one ensure that font sizes changes are reflected immediately ?
Hermit
Visual state does not work when using MtPage but work with standard Page.
In this example border is always but should be green or blue depending on screen size.
<paging:MtPage
xmlns:paging="using:MyToolkit.Paging"
x:Class="someproject.Views.TestPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:someproject.Views"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
RequestedTheme="Light">
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<VisualStateManager.VisualStateGroups>
<VisualStateGroup>
<VisualState
x:Name="Normal">
<VisualState.Setters>
<Setter
Target="SomeControl.Background"
Value="Green"></Setter>
</VisualState.Setters>
<VisualState.StateTriggers>
<AdaptiveTrigger
MinWindowWidth="400"></AdaptiveTrigger>
</VisualState.StateTriggers>
</VisualState>
<VisualState
x:Name="Mobile">
<VisualState.Setters>
<Setter
Target="SomeControl.Background"
Value="Blue"></Setter>
</VisualState.Setters>
<VisualState.StateTriggers>
<AdaptiveTrigger
MinWindowWidth="0"></AdaptiveTrigger>
</VisualState.StateTriggers>
</VisualState>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
<Border
x:Name="SomeControl"
Width="100"
Height="100"
Background="Red" />
</Grid>
</paging:MtPage>
Hello !
I'm developing an universal application Windows 8.1 and I use your DataGrid Control in order to expose data.
But when I create a style, for example :
<Style TargetType="controls:DataGrid" x:Key="DataGridStyle">
<Setter Property="HeaderBackground" Value="{StaticResource BackgroundPageBrush}"/>
<Setter Property="FontFamily" Value="{StaticResource GothamBook}"/>
<Setter Property="FontSize" Value="8"/>
</Style>
The fontSize doesn't change ! I set the value to 8 or 48, and there is no change.
Can you help me please ?
Thanks :)
UWP project. MyToolkit 2.5.8.
_hamburgerFrameBuilder.Frame.ClearBackStack() - It does not clear BackStack.
Could not load file or assembly 'system.net, version=2.0.5.0' on VS2015 RC universal and system.net.http... when run mytoolkit
Also add a way to seamlessly support MtFrame
LongListSelector grouping items but jumping between them isn't working. Also if list is long scrolling doesn't work either. Am I missing something?
Just followed the wiki's instructions for setting a custom foreground colour for one of the HtmlView
's generators, in this case LinkGenerator
. It is advised to do that on the Loaded
event of the HtmlView
, however this is fired after the child controls have already been generated if the Html
field is bound in XAML.
Setting both the LinkGenerator.Foreground
and HtmlView.Html
in the Loaded
event works fine, though. This issue may affect other IControlGenerator
s but I haven't checked it.
After I changed to the MyToolkit MtPage my binding stop working, when checking the DataContext of the buttons they are all null, and even setting the DataContext directly on the CommandBar doesn't seam to fix.
Hey folks, I'll start by saying MyToolkit is pretty sweet and thanks for your hard work.
I'm in the process of converting my UWP app's Hamburger buttons from a SplitView over to your HamburgerFrameBuilder. Everything seems to be working great on Windows 10 desktop, but I run into some issues when I deploy on Windows Phone 10. Namely, whenever I tap any of the PageHamburgerItems, I get an error:
Error: Converter failed to convert value of type 'MyToolkit.Controls.PageHamburgerItem, MyToolkit.Extended, Version=2.4.2.0, Culture=neutral, PublicKeyToken=null' to type 'HamburgerItem'; BindingExpression: Path='SelectedTopItem' DataItem='MyToolkit.Controls.Hamburger'; target element is 'Windows.UI.Xaml.Controls.ListBox' (Name='null'); target property is 'SelectedItem' (type 'Object').
Here's the code I used to create the item in question:
new PageHamburgerItem
{
Content = "Home",
ContentIcon = new SymbolIcon(Symbol.Home),
Icon = new SymbolIcon(Symbol.Home),
PageType = typeof(MainPage)
}
I get a similar error with the search box.
I added MTK to my solution using Nuget about two days back so I'm pretty sure I've got the latest version.
Any suggestions? Happy to provide more details if necessary.
Update: I tried deploying your MtToolkit.VS2015 sample application to my phone; same results. The device is a Lumia 920 and I'm running build 10581.
ViewModelHelper.RegisterViewModelForStateHandling:
page.PageStateHandler is null
Exception
at MyToolkit.Mvvm.ViewModelHelper.RegisterViewModelForStateHandling(IStateHandlingViewModel viewModel, MtPage page)
at MyToolkit.Mvvm.ViewModelHelper.RegisterViewModel(ViewModelBase viewModel, FrameworkElement view, Boolean registerForStateHandling)
at MyToolkit.Paging.MtPage.RegisterViewModel(ViewModelBase viewModel, Boolean registerForStateHandling)
at MusicPlayer.UI.MainPage..ctor()
Why this control doesn't support auto generate columns?
I have opened an issue over with the XamlBehaviors team about this as well. I don't know who should be responsible. But, I wanted to make you were aware as well.
The new XamlBehaviors have some custom logic in the EventTriggerBehavior for Windows Runtime (UWP) apps. If the event handler delegate is defined in an assembly from the Windows Runtime, they assume the even will be handled in the runtime as well and will require marshalling.
this.isWindowsRuntimeEvent = EventTriggerBehavior.IsWindowsRuntimeType(info.EventHandlerType);
if (this.isWindowsRuntimeEvent)
{
this.addEventHandlerMethod = add => (EventRegistrationToken)info.AddMethod.Invoke(this.resolvedSource, new object[] { add });
this.removeEventHandlerMethod = token => info.RemoveMethod.Invoke(this.resolvedSource, new object[] { token });
WindowsRuntimeMarshal.AddEventHandler(this.addEventHandlerMethod, this.removeEventHandlerMethod, this.eventHandler);
}
else
{
info.AddEventHandler(this.resolvedSource, this.eventHandler);
}
This causes issues in the DataGrid which is reusing the SelectionChangedEventHandler delegate definition.
I was able to work around it easily in my application by copying and pasting the delegate definition into a copy of your source code. But, I am not sure if that is the most elegant solution, or how many other instances like that exist.
/// <summary>A data grid control. </summary>
public class DataGrid : Control
{
private Grid _titleRowControl;
private MtListBox _listControl;
private bool _initialized = false;
private object _initialSelectedItem;
private object _initialFilter;
public delegate void SelectionChangedEventHandler(System.Object sender, SelectionChangedEventArgs e);
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.