Click here to Skip to main content
15,512,908 members
Home / Discussions / C#
   

C#

 
SuggestionRe: Toast notification Collections crash when initializing. Pin
Richard Deeming9-May-22 23:00
mveRichard Deeming9-May-22 23:00 
GeneralRe: Toast notification Collections crash when initializing. Pin
Maximilien10-May-22 3:12
Maximilien10-May-22 3: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 3:13
professionalSatheesh N9-May-22 3: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 3:34
mveRichard Deeming9-May-22 3: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 N10-May-22 0:06
professionalSatheesh N10-May-22 0: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 2:36
mveDave Kreskowiak10-May-22 2: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 4:00
mveOriginalGriff9-May-22 4:00 
QuestionHow to validate an URI ? Pin
Maximilien2-May-22 9:05
Maximilien2-May-22 9: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 9:27
mveOriginalGriff2-May-22 9:27 
GeneralRe: How to validate an URI ? Pin
jsc422-May-22 23:38
professionaljsc422-May-22 23:38 
GeneralRe: How to validate an URI ? Pin
Dave Kreskowiak3-May-22 3:47
mveDave Kreskowiak3-May-22 3:47 
AnswerRe: How to validate an URI ? Pin
Richard Deeming2-May-22 22:45
mveRichard Deeming2-May-22 22:45 
GeneralRe: How to validate an URI ? Pin
Maximilien3-May-22 3:55
Maximilien3-May-22 3:55 
GeneralRe: How to validate an URI ? Pin
Richard Deeming3-May-22 4:19
mveRichard Deeming3-May-22 4:19 
GeneralRe: How to validate an URI ? Pin
Maximilien3-May-22 7:33
Maximilien3-May-22 7:33 
QuestionWPF C# Selected Row from a Listbox in the Database Pin
Diane Dolinski27-Apr-22 4:31
Diane Dolinski27-Apr-22 4:31 
AnswerRe: WPF C# Selected Row from a Listbox in the Database Pin
Gerry Schmitz27-Apr-22 7:17
mveGerry Schmitz27-Apr-22 7:17 
GeneralRe: WPF C# Selected Row from a Listbox in the Database Pin
Diane Dolinski27-Apr-22 9:42
Diane Dolinski27-Apr-22 9:42 
AnswerRe: WPF C# Selected Row from a Listbox in the Database Pin
Mycroft Holmes27-Apr-22 13:43
professionalMycroft Holmes27-Apr-22 13:43 
GeneralRe: WPF C# Selected Row from a Listbox in the Database Pin
Diane Dolinski27-Apr-22 20:47
Diane Dolinski27-Apr-22 20:47 
GeneralRe: WPF C# Selected Row from a Listbox in the Database Pin
Diane Dolinski28-Apr-22 2:24
Diane Dolinski28-Apr-22 2:24 
QuestionHow do I avoid ORM tools 'polluting' the model? Pin
Patrick Skelton26-Apr-22 22:47
Patrick Skelton26-Apr-22 22:47 
AnswerRe: How do I avoid ORM tools 'polluting' the model? Pin
Richard Deeming26-Apr-22 23:16
mveRichard Deeming26-Apr-22 23:16 
GeneralRe: How do I avoid ORM tools 'polluting' the model? Pin
Patrick Skelton27-Apr-22 22:18
Patrick Skelton27-Apr-22 22:18 
AnswerRe: How do I avoid ORM tools 'polluting' the model? Pin
Gerry Schmitz27-Apr-22 7:11
mveGerry Schmitz27-Apr-22 7: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.