15,892,005 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by AghaKhan (Top 31 by date)
AghaKhan
26-Dec-13 22:55pm
View
Dear Brother:
Your comments are greatly appreciated. Someone should have to courage to say that. I have no problem with when you suggested “Have some shame”. Please guide me more. I love it. As you suggested "Implementation inheritance is not allowed in WinRT" is gibberish, but that is the error I received from my compiler and I am not making it up. I tried to implement solution but inheritance didn’t let me do so. I can send you the picture of my visual studio to show you that error if you wish. As you understand mistakes are the foundation of success and I do make mistakes. Please be my guide. Many times we write which is not following any design patterns but it works. Just Google “C# games by Agha Khan”. You will see about 4000 download.
Happy holidays
Best regards
Sergey Alexandrovich Kryukov
Thanks for help
AghaKhan
26-Dec-13 16:03pm
View
Thank you for your emails/reply.
Before I received your replies I started to look internal Constructor, but found out that
public sealed class CtrlCoreDispatcher : CoreDispatcher
{
}
Implementation inheritance is not allowed in WinRT. So I have to look something else to resolve this problem. I have to look something else beside inheritance.
Thanks for reply.
Best regards
Agha
AghaKhan
26-Dec-13 14:22pm
View
:-) Thank you.
var coreDispatcher = new CoreDispatcher();
The type 'Windows.UI.Core.CoreDispatcher' has no constructors defined
What todo now?
Thanks for help.
AghaKhan
26-Dec-13 3:38am
View
public event PropertyChangedEventHandler PropertyChanged;
private async void NotifyChanged(string propertyName)
{
if (this.PropertyChanged != null)
{
var ignored = await CoreDispatcher.RunAsync(CoreDispatcherPriority.Normal,
() => { PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); });
}
}
Error:
Error 1 An object reference is required for the non-static field, method, or property 'Windows.UI.Core.CoreDispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority, Windows.UI.Core.DispatchedHandler)' C:\Apps\CSharp\Nuts\VisualControls\FlipViewModel.cs 36 37 VisualControls
AghaKhan
26-Dec-13 0:28am
View
C# Window store Application
AghaKhan
25-Dec-13 20:41pm
View
Thank you kind email. In my solution I am using MVVM design pattern where all the ModelView are in DLL, but I am supplying data to DataContext (ModelViw) from main application. ModelView is creating a timer thread which updates the UI, which try to update the UI and get exception. Now how or where I have to call the CoreDispatcher.RunAsync function. Before your answer I looked http://mikaelkoskinen.net/fixing-coredispatcher-invoke-how-to-invoke-method-in-ui-thread-in-windows-8-release-preview/ and tried to supply ModelView to DLL object with RunAsync function which failed. DLL doesn't know anything about main application and how can (I can't) we update UI thread from DLL? It is a small application and if you want I can send you the application to look at it. Thanks for email.
Best regards
Agha Khan
AghaKhan
19-Dec-13 18:29pm
View
Where you have created vals. Why are you doing that. This can be done with list<int>. Even your for loop is wrong.
It should be
for (int i = size - 1; i <= 1; I--)
{
vals[i - 1] = vals[i];
}
AghaKhan
19-Dec-13 2:16am
View
Got it. Thanks for help. I didn't add in CPP file. :-(
AghaKhan
19-Dec-13 2:13am
View
It is linker error. I am calling this class to my C++ Window Store Application
AghaKhan
8-Apr-13 2:50am
View
This is strange. I just included simple scrollbar in this application and it is behaving the same.
AghaKhan
8-Apr-13 2:32am
View
ScrollViewer.VerticalScrollBarVisibility="Visible" Now I see it design time correctly but Run time same 2 arrows.
AghaKhan
8-Apr-13 2:02am
View
My control is ListView
<ListView Name="ListViewSegments" ItemsSource="{Binding SelectedList}" Margin="400,49,18,0" Height="159" VerticalAlignment="Top" ScrollViewer.VerticalScrollBarVisibility="Auto" >
It does not work. Still top right two arrows. The height of the controls is about 150.
AghaKhan
30-Mar-13 0:01am
View
Thank you
AghaKhan
29-Mar-13 1:22am
View
I created a phone app and it works for me.
AghaKhan
28-Mar-13 17:30pm
View
Deleted
I have created a whole project for you. (Quick and dirty) and it works as I explained. But I don't know how to send it.
You may send email at agha.khan@hotmail.com
AghaKhan
28-Mar-13 8:08am
View
It is 5 AM and I just saw your reply. Today I will write a solution for you. Having said that it is very easy to fix. When text box Textchanged its value (One char) (override TextChanged something like this) put focus to next(Lisbox.SelectedIndex)item. Now your next char will be on next TextBox. I hope it will help. Try that if it does not work just let me know. Thank you for asking.
AghaKhan
27-Mar-13 23:56pm
View
Because it is sample and does not deal the real problem. In fact I want to write something on the image which (The way MSDN explained) will not help. I was not aware MSDN provided that solution but I told in my question that it works in a Task function as MSDN explained. The real solution is what I have provided.
AghaKhan
27-Mar-13 21:35pm
View
I NOT have to wait because ContinueWith means the Task is compleated. I posted the solution. It works now.
AghaKhan
27-Mar-13 21:24pm
View
I can write a solution with no problem, but have to understand the question. It is not clear I click "A" letter for the first Textbox and then I want to go to int next TextBox.
It looks like you have listbox and every listboxitem has a TextBox. How many ListboxItem do you have? Is each textBox take only one char as a input? I am not sure what is your question. Please make it clear and I will post the solution! Thanks for asking.
AghaKhan
27-Mar-13 19:49pm
View
Update:
It looks like I can't add anything to my canvas.
I added this code in callback function as well as in my main function.
Rectangle r2 = new Rectangle();
r2.Height = 100;
r2.Width = 100;
r2.Fill = new SolidColorBrush(Colors.Red);
MyCanvas.Children.Add(r2);
I am unable to add any object to my canvas in my callback funtion. :-(
AghaKhan
27-Mar-13 19:19pm
View
Who told you that Textboxes are created automatically. That is a wrong information. You don't see it because there is none.
AghaKhan
25-Mar-13 21:22pm
View
I got it.
WriteableBitmapEx is extension to WriteableBitmap. So just use as WriteableBitmap image.
It works fine.
void MainPage_Loaded(object sender, RoutedEventArgs e)
{
WriteableBitmap writeableBmp = new WriteableBitmap(512, 512);
writeableBmp.Clear(Colors.White);
writeableBmp.DrawLine(1, 2, 30, 40, Colors.Green);
ImageName.Source = writeableBmp;
}
AghaKhan
25-Mar-13 20:57pm
View
Dear Sergey Alexandrovich Kryukov:
unable to find any sample where it shows how to use this lib. Do you have idea?
Best regards
Agha Khan
AghaKhan
18-Mar-13 13:54pm
View
Update: Reply from CodePlex.
This is not an issue with the lib. See the samples you can download here in the Source Code repository how to include the lib in your project correctly. Also note that most WBX code is in the Windows.UI.Xaml.Media.Imaging namepsace.
I have to check again. How to add the lib!
AghaKhan
18-Mar-13 2:55am
View
Update. Now I included WriteablebitmapEx.WinRT project in my solution. Even then I am unable to use it. It has the same problem I can see inside my object browser but I will not able to use it. Very strange
AghaKhan
18-Mar-13 2:38am
View
I tried to build it from source code. It has same problem. There are 3 samples and I tried to run all 3 of them one at a time. Unfortunately none of them worked.
AghaKhan
16-Mar-13 3:03am
View
I have sent you cut/paste from my application. I just looked in my Object Browser and copy this path. Assembly WriteableBitmapEx.WinRT
C:\Apps\App2\packages\WriteableBitmapEx.1.0.7.0\lib\NetCore45\WriteableBitmapEx.WinRT.dll
This text is from my output window.
Added file 'WriteableBitmapEx.1.0.7.0.nupkg' to folder 'WriteableBitmapEx.1.0.7.0'.
Successfully installed 'WriteableBitmapEx 1.0.7.0'.
Added reference 'WriteableBitmapEx.WinRT' to project 'App2'
Added file 'packages.config'.
Added file 'packages.config' to project 'App2'
Successfully added 'WriteableBitmapEx 1.0.7.0' to App2.
I don't have any missunderstanding that my namespace is WriteableBitmapEx.WinRT. But I tried all combinations like WriteableBitmapEx wb = new WriteableBitmapEx() and
WriteableBitmapEx.WinRT wbr = new WriteableBitmapEx.WinRT(), but with no luck.
When I send you that is all cut/paste Not my code. Only the above line is my code.
Have you tried to add this lib any of your test application?
Thank you very much for prompt reply.
Best regards
Agha Khan
AghaKhan
16-Mar-13 2:18am
View
My MainPage.xaml.cs start looks like this
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;
Next I would like to add Using “using WriteableBitmapEx.WinRT;”
I am using Microsoft visual studio 12. When you start typing Microsoft visual studio 12 will pop up a list where you could find appropriate list of word, but I could not find it and wrote it in anyway. When I compile I get the message
Error 1 The type or namespace name 'WriteableBitmapEx' could not be found (are you missing a using directive or an assembly reference?) C:\Apps\ImageTest\ImageTest\MainPage.xaml.cs 14 7 ImageTest
Because I have written (To test it) there or four application you can produce on your machine. I don't think you have any problem what so ever not to reproduce it.
Thank you prompt reply
Best regards
AghaKhan
16-Mar-13 1:55am
View
I created a new blank store application.
Clicked on Manage NuGet packages…
Search for WriteableBitmapEx and found and pressed install button.
Installed on my app and now I see the green check button.
Successfully installed 'WriteableBitmapEx 1.0.7.0'.
Added reference 'WriteableBitmapEx.WinRT' to project 'App2'
Added file 'packages.config'.
Added file 'packages.config' to project 'App2'
Successfully added 'WriteableBitmapEx 1.0.7.0' to App2.
Looked in my references and I see in my Object Browser it is there. I can see the path as well.
Assembly WriteableBitmapEx.WinRT
C:\Apps\App2\packages\WriteableBitmapEx.1.0.7.0\lib\NetCore45\WriteableBitmapEx.WinRT.dll
Goto to MainPage.xaml.cs and try to add using WriteableBitmapEx name space which VS 2012 unable to find it.
I am not sure how I can write code when I don’t have any reference to the library.
Thank you for prompt reply.
AghaKhan
16-Mar-13 1:34am
View
It will not let me add
My code look something like this
using Windows.UI.Xaml.Controls;
using System.Collections.ObjectModel;
using GameTools;
using Windows.UI.Xaml.Media.Imaging;
using System.Threading.Tasks;
using Windows.Storage.Streams;
using System.IO;
using System.Reflection;
using Windows.Storage;
using WriteableBitmapEx.WinRT;
There is RED line under using WriteableBitmapEx.WinRT;
I am unable to make any reference to that WriteableBitmapEx.
For example I want to create an image of such type I will not able to do so.
You may create a dummy project and try to add it. You will be able to see that in your reference but you will NOT able to use it.
Thank you very much for replying back.
AghaKhan
31-Jan-13 4:18am
View
Thank you for your reply. FYI: You may add any database for authentication. Please check this. http://vantsuyoshi.wordpress.com/2012/02/24/create-simplemembership-with-asp-net-mvc-4-beta-sql-compact-edition-4ef-4-3-code-first/
Show More