Click here to Skip to main content
15,881,559 members
Home / Discussions / C#
   

C#

 
SuggestionRe: Toast notification Collections crash when initializing. Pin
Richard Deeming9-May-22 22:00
mveRichard Deeming9-May-22 22:00 
GeneralRe: Toast notification Collections crash when initializing. Pin
Maximilien10-May-22 2:12
Maximilien10-May-22 2:12 
QuestionAccess of simple activex component with only one method created in .net (using vb.net/c#) from child object created using window.open causes Catastrophic failure. Pin
Satheesh N9-May-22 2:13
professionalSatheesh N9-May-22 2:13 
SuggestionRe: Access of simple activex component with only one method created in .net (using vb.net/c#) from child object created using window.open causes Catastrophic failure. Pin
Richard Deeming9-May-22 2:34
mveRichard Deeming9-May-22 2:34 
GeneralRe: Access of simple activex component with only one method created in .net (using vb.net/c#) from child object created using window.open causes Catastrophic failure. Pin
Satheesh N9-May-22 23:06
professionalSatheesh N9-May-22 23:06 
GeneralRe: Access of simple activex component with only one method created in .net (using vb.net/c#) from child object created using window.open causes Catastrophic failure. Pin
Dave Kreskowiak10-May-22 1:36
mveDave Kreskowiak10-May-22 1:36 
AnswerRe: Access of simple activex component with only one method created in .net (using vb.net/c#) from child object created using window.open causes Catastrophic failure. Pin
OriginalGriff9-May-22 3:00
mveOriginalGriff9-May-22 3:00 
QuestionHow to validate an URI ? Pin
Maximilien2-May-22 8:05
Maximilien2-May-22 8:05 
EDI : Fixed by changing the pack with "mx-appx" as per documentation example.

Is there a way to check or validate if an URI is valid ?

The Assets folder is in my solution
System.Uri icon = new System.Uri("pack://application:,,,/Assets/icon.png");

This is part of this code which crashes at the instantiation of the ToastCollection.
public async void CreateToastCollection()
        {
            string displayName = "Is Potato";
            string launchArg = "NavigateToPotato";
            System.Uri icon = new System.Uri("pack://application:,,,/Assets/icon.png");

            // CRASH here
            ToastCollection licensingManagerToastCollection = new ToastCollection(
                "MyToastCollection",
                displayName,
                launchArg,
                icon);

            // Calls the platform to create the collection
            await ToastNotificationManager.GetDefault().GetToastCollectionManager().SaveToastCollectionAsync(licensingManagerToastCollection);
        }

Thanks.
CI/CD = Continuous Impediment/Continuous Despair


modified 3-May-22 8:56am.

AnswerRe: How to validate an URI ? Pin
OriginalGriff2-May-22 8:27
mveOriginalGriff2-May-22 8:27 
GeneralRe: How to validate an URI ? Pin
jsc422-May-22 22:38
professionaljsc422-May-22 22:38 
GeneralRe: How to validate an URI ? Pin
Dave Kreskowiak3-May-22 2:47
mveDave Kreskowiak3-May-22 2:47 
AnswerRe: How to validate an URI ? Pin
Richard Deeming2-May-22 21:45
mveRichard Deeming2-May-22 21:45 
GeneralRe: How to validate an URI ? Pin
Maximilien3-May-22 2:55
Maximilien3-May-22 2:55 
GeneralRe: How to validate an URI ? Pin
Richard Deeming3-May-22 3:19
mveRichard Deeming3-May-22 3:19 
GeneralRe: How to validate an URI ? Pin
Maximilien3-May-22 6:33
Maximilien3-May-22 6:33 
QuestionWPF C# Selected Row from a Listbox in the Database Pin
Diane Dolinski27-Apr-22 3:31
Diane Dolinski27-Apr-22 3:31 
AnswerRe: WPF C# Selected Row from a Listbox in the Database Pin
Gerry Schmitz27-Apr-22 6:17
mveGerry Schmitz27-Apr-22 6:17 
GeneralRe: WPF C# Selected Row from a Listbox in the Database Pin
Diane Dolinski27-Apr-22 8:42
Diane Dolinski27-Apr-22 8:42 
AnswerRe: WPF C# Selected Row from a Listbox in the Database Pin
Mycroft Holmes27-Apr-22 12:43
professionalMycroft Holmes27-Apr-22 12:43 
GeneralRe: WPF C# Selected Row from a Listbox in the Database Pin
Diane Dolinski27-Apr-22 19:47
Diane Dolinski27-Apr-22 19:47 
GeneralRe: WPF C# Selected Row from a Listbox in the Database Pin
Diane Dolinski28-Apr-22 1:24
Diane Dolinski28-Apr-22 1:24 
QuestionHow do I avoid ORM tools 'polluting' the model? Pin
Patrick Skelton26-Apr-22 21:47
Patrick Skelton26-Apr-22 21:47 
AnswerRe: How do I avoid ORM tools 'polluting' the model? Pin
Richard Deeming26-Apr-22 22:16
mveRichard Deeming26-Apr-22 22:16 
GeneralRe: How do I avoid ORM tools 'polluting' the model? Pin
Patrick Skelton27-Apr-22 21:18
Patrick Skelton27-Apr-22 21:18 
AnswerRe: How do I avoid ORM tools 'polluting' the model? Pin
Gerry Schmitz27-Apr-22 6:11
mveGerry Schmitz27-Apr-22 6:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.