Click here to Skip to main content
15,888,286 members
Home / Discussions / C#
   

C#

 
QuestionSqlConnection in encrypted file Pin
Jassim Rahma23-Jan-12 21:44
Jassim Rahma23-Jan-12 21:44 
AnswerRe: SqlConnection in encrypted file Pin
Pete O'Hanlon23-Jan-12 22:18
mvePete O'Hanlon23-Jan-12 22:18 
GeneralRe: SqlConnection in encrypted file Pin
thatraja23-Jan-12 22:27
professionalthatraja23-Jan-12 22:27 
Questionprogrammatically change datagridviewbutton text property Pin
Mr.Kode23-Jan-12 14:03
Mr.Kode23-Jan-12 14:03 
AnswerRe: programmatically change datagridviewbutton text property Pin
Richard MacCutchan23-Jan-12 23:23
mveRichard MacCutchan23-Jan-12 23:23 
Questionxaml page as resource Pin
Giorgi Nistor23-Jan-12 4:50
Giorgi Nistor23-Jan-12 4:50 
AnswerRe: xaml page as resource Pin
dexterama23-Jan-12 5:55
professionaldexterama23-Jan-12 5:55 
GeneralRe: xaml page as resource Pin
Giorgi Nistor23-Jan-12 6:24
Giorgi Nistor23-Jan-12 6:24 
I put a Resource dictionary, declare there the page
and in MenuItem_Click showing the window.

It works..but I am wondering how to do this directly in XAML on click event.

HTML
<MenuItem Header="_Options" HorizontalAlignment="Left" Click="MenuItem_Click">
                        <MenuItem.Resources>
                            <ResourceDictionary>
                                <ResourceDictionary.MergedDictionaries>
                                    <ResourceDictionary Source="myDictionary.xaml"/>
                                </ResourceDictionary.MergedDictionaries>
                            </ResourceDictionary>
                        </MenuItem.Resources>
                    </MenuItem>


created a myDictionary.xaml file

HTML
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <Window x:Key="pageOptions" Name="Test">
        
    </Window>
    
</ResourceDictionary>

Questionrun the batch file code in C# Pin
Member 853472622-Jan-12 23:47
Member 853472622-Jan-12 23:47 
AnswerRe: run the batch file code in C# Pin
Richard MacCutchan22-Jan-12 23:50
mveRichard MacCutchan22-Jan-12 23:50 
AnswerRe: run the batch file code in C# PinPopular
phil.o23-Jan-12 3:19
professionalphil.o23-Jan-12 3:19 
AnswerRe: run the batch file code in C# Pin
lukeer23-Jan-12 4:24
lukeer23-Jan-12 4:24 
QuestionHow to resolve class type using enum Pin
emmmatty122-Jan-12 20:05
emmmatty122-Jan-12 20:05 
AnswerRe: How to resolve class type using enum Pin
OriginalGriff22-Jan-12 22:05
mveOriginalGriff22-Jan-12 22:05 
GeneralRe: How to resolve class type using enum Pin
emmmatty122-Jan-12 22:37
emmmatty122-Jan-12 22:37 
GeneralRe: How to resolve class type using enum Pin
OriginalGriff22-Jan-12 22:38
mveOriginalGriff22-Jan-12 22:38 
GeneralRe: How to resolve class type using enum Pin
PIEBALDconsult23-Jan-12 5:13
mvePIEBALDconsult23-Jan-12 5:13 
GeneralRe: How to resolve class type using enum Pin
jschell23-Jan-12 8:17
jschell23-Jan-12 8:17 
GeneralRe: How to resolve class type using enum Pin
BobJanova24-Jan-12 10:07
BobJanova24-Jan-12 10:07 
GeneralRe: How to resolve class type using enum Pin
jschell25-Jan-12 14:50
jschell25-Jan-12 14:50 
GeneralRe: How to resolve class type using enum Pin
Dean Oliver23-Jan-12 18:20
Dean Oliver23-Jan-12 18:20 
GeneralRe: How to resolve class type using enum Pin
BobJanova24-Jan-12 10:32
BobJanova24-Jan-12 10:32 
QuestionTask cancellation Pin
michaelgr122-Jan-12 3:59
michaelgr122-Jan-12 3:59 
AnswerRe: Task cancellation Pin
Dave Kreskowiak22-Jan-12 8:15
mveDave Kreskowiak22-Jan-12 8:15 
Questionhow to retrieve a single value from datatable Pin
mschotamaster21-Jan-12 22:01
mschotamaster21-Jan-12 22:01 

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.